6 ms·
As far as I know bool filters are preferred over and/or filters (see http://www.elasticsearch.org/blog/all-about-elasticsearch-filter-bitsets/ http://www.elasti
by epimenov 12y ago
As far as I know bool filters are preferred over and/or filters (see http://www.elasticsearch.org/blog/all-about-elasticsearch-filter-bitsets/ http://www.elasticsearch.org/blog/all-about-elasticsearch-fi...)
Seminearring and Monoid Filter could encourage usage of the bool filters, instead of and/or.
Thank you otherwise, I was longing for something similar when I was editing JSON queries. Going to try that the next time I have to do some ES work.
- coolsunglasses 12y agoThis is great advice, I read the follow-up links in that post and they're very informative! I'll jot down a task for figuring out how to flip the Seminearring over to bool. The reason for the original design was that they mated to nested And/Or filters which I knew to be less than ideal but figured it work as a first pass. Thanks!