Search Quote Analyzer question/issue

Hi All,

We are using ES 5.0.0-alpha5 and seeing an issue with search_quote_analyzer parameter, below is our use-case, we would like have full text search on text fields with English stemming, and when user searches using phrases it should avoid stemming (and do a exact search). Below is a way we came up with by defining two fields with different analyzers combination.

PUT my_index/my_type/_mapping
{
  "my_type": {
      "properties": {
          "title": {
            "type": "text",
            "analyzer": "english",
            "search_analyzer" : "english",
            "search_quote_analyzer" : "standard",
            "fields": {
              "std": {
                "type": "text",
                "analyzer": "standard"
              }
            }
          }
    }
  }
}

PUT my_index/my_type/1
{
  "title": "First document services"
}

And performing the query below yields result, I was assuming it shouldn't as we are defining search_quote_analyzer on title field to use standard analyzer.

GET my_index/my_type/_search
{
  "query": {
    "simple_query_string": {
      "fields": ["title","title.std"], 
      "query": "\"service\""
    }
  }
}

Any help/suggestion are appreciated.

Thank you,
Srinivas

1 Like