keywords can be configured to be loaded eagerly as global ordinals in the mapping. This is important to not run into delays if a query hits a segment for first time.
I've been wondering if such an option should also exist for the boolean field type. I am not sure how a boolean is stored, but if it is keyword like as a term, would it make sense to also load it eagerly or am I missing something?
Loading the global ordinals for a boolean is much faster, because the cardinality is much lower
Because this cannot be configured to be loaded before the first query needs a fresh segment, you still can run into slowdowns at query time - how big those are I have no idea.
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.