Is it not that using the script feature is memory expensive? I just had an idea:
filter where bit_position = 3
filter where bit_position != 3
Chain the 2 filters in a way that it unions the results (basically extend the first result set with the second result set). (Not sure how to do it in ES)
This way anything with bit_position = 3 shows up before the rest.
What do you think? Is it possible to do it in ES or do I have to do 2 separate requests to ES and union the results manually?
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.