Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • S Search
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3
    • Issues 3
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 2
    • Merge requests 2
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • prozorro-sale
  • Search
  • Issues
  • #29

Closed
Open
Created Apr 08, 2021 by Olga Kochubynska@olga.kochubynskaDeveloper

api/search/byText/ doesn't work at sandbox and staging env

it's decided that full-text search should be switched off:

  • it actually doesn't work
  • no active usage of the feature (2 tries for last month)
  • overload on elastic indexes

curl https://procedure-staging.prozorro.sale/api/search/byText/abrvalg response:

{"message": "Can not parse query parameters, check their format"}
{"type": "server", "timestamp": "2021-04-06T11:08:05,076Z", "level": "DEBUG", "component": "o.e.a.s.TransportSearchAction", "cluster.name": "prozorro-sale-elastic", "node.name": "prozorro-sale-elastic-master-1", "message": "[procedures][0], node[THc_RkPkQXC190il2qMmJA], [R], s[STARTED], a[id=1FI_st_CRvicdi9yu1z40Q]: Failed to execute [SearchRequest{searchType=QUERY_THEN_FETCH, indices=[procedures], indicesOptions=IndicesOptions[ignore_unavailable=false, allow_no_indices=true, expand_wildcards_open=true, expand_wildcards_closed=false, expand_wildcards_hidden=false, allow_aliases_to_multiple_indices=true, forbid_closed_indices=true, ignore_aliases=false, ignore_throttled=true], types=[], routing='null', preference='null', requestCache=null, scroll=null, maxConcurrentShardRequests=0, batchedReduceSize=512, preFilterShardSize=null, allowPartialSearchResults=true, localClusterAlias=null, getOrCreateAbsoluteStartMillis=-1, ccsMinimizeRoundtrips=true, source={\"size\":10,\"query\":{\"simple_query_string\":{\"query\":\"abrvalg\",\"flags\":-1,\"default_operator\":\"or\",\"analyze_wildcard\":false,\"auto_generate_synonyms_phrase_query\":true,\"fuzzy_prefix_length\":0,\"fuzzy_max_expansions\":50,\"fuzzy_transpositions\":true,\"boost\":1.0}},\"sort\":[{\"_score\":{\"order\":\"desc\"}},{\"dateModified\":{\"order\":\"desc\"}}]}}]", "cluster.uuid": "RyT54myOTzeif8TvDMgP9A", "node.id": "H7FX9FjvRHaTbRZlygMNDA" , 
"stacktrace": ["org.elasticsearch.transport.RemoteTransportException: [prozorro-sale-elastic-master-0][10.198.200.159:9300][indices:data/read/search[phase/query]]",
"Caused by: org.elasticsearch.index.query.QueryShardException: failed to create query: field expansion matches too many fields, limit: 1024, got: 1337",
Assignee
Assign to
Time tracking