Match query

Can we add fields to match query like multi_match , I can't add fuzziness to multi_match with type phrase. I need to know how to add fields in match , if it can I can easily add fuzziness to fields in match query.

Hi.
Are you looking for this:

yes, but I need to add multiple fields like multi_match

u can use fuzzy with multi-match.

how ? it gives me error whenever i do with type phrase and phrase_prefix

I don't understand. Do you want to use Multi Match or Match phrase prefix query?

am using multi_match

I don't know if you already solved it but the fuzzy would look like this:

              {
                 "multi_match":{
                    "query":"teste",
                    "fields":[
                       "field1",
                       "field2"
                    ],
                    "type":"best_fields",
                    "operator":"OR",
                    "slop":0,
                    "fuzziness":"2",
                    "prefix_length":4,
                    "max_expansions":10,
                 }
              }

why we need to use best_fields in type and slop=0

thanks bro

They are an example but for your search you must configure them correctly.

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