elasticsearch - Query search string on elastic search -


i have field thats defined below.

"findings": {               "type": "string",               "fields": {                  "orig": {                     "type": "string"                  },                  "raw": {                     "type": "string",                     "index": "not_analyzed"                  }               }            }, 

the findings contains following text -

s91 - fiber cut 

now, when 'term' search on 'findings.orig' word 'fiber', search response when a 'query string' search on 'findings.orig' word 'fiber cut', don't search response.

when 'query string' search on '_all' word 'fiber cut', search response.

why dont response 'fiber cut' on 'query string' search on 'findings.orig'.

elasticsearch: query_string nested search

you can try this, hope work...

get index/type/_search {    "query": {       "query_string": {         "fields": ["findings.orig"],         "query": "s91 - fiber cut"        }     } } 

if want search in nested fields use this.


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -