Proximity in elastic search


(jatin wadhwa) #1

I have done proximity using query string i.e

{
"query" : {
"bool" : {
"should" : {
"query_string" : {
"field" : "Title",
"query" : ""ELASTIC SEARCH"~3"
}
},
"highlight" : {
"fields" : {
"Title" : {}
}
}}
}
but i wanna use proximity without query string so tell me how i can do.


(system) #2