最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

elasticsearch - How to construct optimal Elastic queries - Stack Overflow

programmeradmin0浏览0评论

I have some general questions about designing optimal rules. To my understanding there are three ways of constructing exclusions/filtering:

  1. Directly in the query with "NOT" statements
  2. Add as a filter
  3. Using rule exceptions

With regards to performance, which one is the most optimal/best, that consumes the least amount of computer resources?

Furthermore, if a KQL has a "NOT" statement in it, does the order matter in the query? Is it in anyway beneficial to state the "NOT" statements at the very beginning of a query rather than at the end?

In addition, which language is to prefer with regards to performance (KQL,DSL,ESQL, Lucene)?

Thanks!

发布评论

评论列表(0)

  1. 暂无评论