Emails not being searched properly in elasticsearch

后端 未结 2 367
说谎
说谎 2020-12-22 00:37

I have indexed a few documents in elasticsearch which have email ids as a field. But when I query for a specific email id, the search results are showing all the documents w

2条回答
  •  天涯浪人
    2020-12-22 01:11

    This happens when you use the default mappings. Elasticsearch has uax_url_email tokenizers which would identify the urls and emails as a single entity/token. You can read more about this here and here

提交回复
热议问题