Full text search

I want to search the _all field.

My mapping is something like this:

 "mappings": {
      "event":{
        "properties": {
           "code": {
              "type": "long"
           },
           "description": {
              "type": "text", 
              "index": "no",
              "include_in_all": true
           }
       }
 }

}

I create a document with code:1 and description: "desc".
I am running this query but no results:

  POST /events8/events/_search
   {
"query": { 
 "bool" : {
"must" : [
  {
    "fuzzy" : {
      "_all" : {
        "value" : "desc",
        "fuzziness" : "2",
        "prefix_length" : 0,
        "max_expansions" : 50,
        "transpositions" : false,
        "boost" : 1.0
      }
    }
  }
],
"disable_coord" : false,
"adjust_pure_negative" : true,
"boost" : 1.0
  }
 }
}

Can't I search the _all field for non indexed fields? I am pretty sure, it worked for me on 5.3.1 and 5.0 but now on 5.4.1 it's not... any related changes?

anyone? please...

You cannot search non-indexed fields, that is what that setting implies - https://www.elastic.co/guide/en/elasticsearch/reference/5.4/mapping-index.html

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.