Hi,
I'm combining match query(boolean) and match query(prefix) into bool query.
{
  "bool" : {
    "must" : [ {
      "match" : {
        "field" : {
          "query" : "query_1",
          "type" : "phrase_prefix"
        }
      }
    }, {
      "match" : {
        "field" : {
          "query" : "query_2",
          "type" : "boolean"
        }
      }
    } ]
  }
}

I want to add fuzziness, but the problem is that I want to have sum of 
Levenshtein distance to be equal to 1 for both queries. Other words to make 
one mistake only in first or only in second query. Is it possible?
Thank you in advance. 

-- 
You received this message because you are subscribed to the Google Groups 
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/ab39d942-0ca9-4236-8264-85b5e33b7a72%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to