When I develope custom analyzers I use Analyze API to test it and
understand the tokens that will be indexed. Take a look
at
http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-analyze.html
--
You received this message because you are subscribed to the Google
Hello community,
I'm having problem understanding how analyzer should work. The result is
different from what I expect. :(
I have created a custom analyzer to index phone number as below:
analysis : {
analyzer : {
phone : {
It's probably easier to do a char filter to remove all non digits. On the
other hand if you want to normalize numbers that sometimes contain area and
country code to numbers you'll probably want to do that outside of
elasticsearch or with a plugin. That gets difficult when you need to handle
non
Hi Nikolas
Thank you very much for your feedback. I was hoping to be able to search
against the phone number field in normalized, original, number parts format.
If I modify the input into normalized format, then, search using
original/number parts will not return the desired result...
Or am I