Quoted text in full text query


(ayrov-2) #1

I'm quite new to Elastic Search, and currently facing some
difficulties trying to write down search query that holds both quoted
text and separate words.
e.g. lets say user entered in search box something like this:

"Quoted query" just words

So the question is how to map such query to Elastic Search query DSL?

It's preferable to use query_string because I need wildcards applied
to separate words
e.g.
"query_string" : {
"default_field": "_all",
"query" : "just words"
}

Thanks for your help.

Alex


(system) #2