Search Based on two Text Distance


(Mohammadhadi Sankar) #1

Hello
I Have a Mapping With a Text Field
how can search on Text Field with this condition:
I want to search two Word for example 'A1' and 'A2' with Distance 3
Example:
'A1 go school with A2 by bus' => its True
'A1 go to school every with A2 by bus' => its False because distance is 5


(David Pilato) #2

May be this? https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-span-near-query.html


(system) #3

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