Specific use-case is to optimize querying that includes many (approximately 50) constant search filters. These filters might change 1-2x per year. How to involve those filters optimally, is it just by appending same criteria block every time? Something like SQL VIEW is needed, I guess.
Within filter clause of bool, how to involve OR/AND clauses? Found abandoned filter-or/and-filters technique, is there a similar or even better approach nowdays?
According to general theory, in case _score is irrelevant, performance is better when clauses are in filter block rather than must/should.
Regards
PS.
found couple related topics, but they're not clearly answered or outdated
index alias with filter sounds appropriate.
But than comes the 2nd question, how to involve picky filters? Filter would need to contain clauses like regular bool query (specified above)
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.