Is just a new analyzer solve the problem?
We need analyzer, which able to ignore all not number chars and treat rest of chars as a separated chars, isn’t it?
So than query of different parts of number as a "phrase" will match.
9 серп. 2011, в 12:08, Shay Banon написал(а):
There was another thread where we talked a bit about having a specific phone number field, that would know about different phone number formats and index it in a form that would help make it more searchable (possibly as numeric field..., really depends on the type of search needed to be executed). It gets complicated when it comes to internalization and the like, and might not fit all cases, but we can try and start with something and see how it goes...
On Mon, Aug 8, 2011 at 11:13 PM, Sindre Sorhus email@example.com wrote:
What is the best way to map, analyze and search a field with a phone number?
I have phone numbers in various formats.
+47 23 54 67 98
+47 235 46 798
I need to be able to search for "23546798" or "2354" and find all the phone numbers above. What kind of analyzers should I use?
Any thought's about ES having a built-in phone number field?