Index on subfield combined


(Deepak Chhikara) #1

I have data where phone number is in parts. Therefore I created as an array(object). But I want to search on the complete phone number now.

"Phone":{
"type" : "object",
"properties" : {
"first" : {
"type" : "text"
},
"second": {
"type" : "text"
}
}
}

Now I want search something like give me all phone numbers containing 987.
Pardon me if the question is very trivial, I'm new to this field and couldn't find any resource answering to the question.


(Thiago Souza) #2

There are some good resources regarding phone number search here: Search phone number

Hope that helps!


(system) #3

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