Hacker News new | ask | show | jobs
by epimenov 4427 days ago
As far as I know bool filters are preferred over and/or filters (see 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.

1 comments

This 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!