Elastic search query


(Nikhil Nambiar) #1

Hi,
Can any one help me with query, which will find phone number which will contain numbers in it
For ex if elastic search engine has some phone number 7273456980,98347651238,7434568901
And when I query 3456 it should fetch all of the 3 phone number above


(tom lee) #2

$ curl -X GET http://{yourhostname}:9200/{index_name}/_search?q=*3*&q=*4*&q=*5*&q=*6* | python -m json.tool


(Nikhil Nambiar) #3

It can be any number of whatever length I just gave an example


(system) #4

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