I want documents who has certain field/value pairs ("availability: 0"), not
to be "searchable".
There's one solution provided by Igor, which is to use an alias. We set an
alias with the index name and a filter requiring availibity > 0 , and we
make all our search queries to that alias. But I like to know if there's
anyway to tell "ES to "not even look at" those documents. More or less like
the "index:no" option when defining a field mapping, but on a document
level.
I've pursuing this because I think there's a performance gain here, maybe
there's not? an alias with a numeric filter is as performant as this "not
searchable document" solution would be???
I want documents who has certain field/value pairs ("availability: 0"),
not to be "searchable".
There's one solution provided by Igor, which is to use an alias. We set an
alias with the index name and a filter requiring availibity > 0 , and we
make all our search queries to that alias. But I like to know if there's
anyway to tell "ES to "not even look at" those documents. More or less like
the "index:no" option when defining a field mapping, but on a document
level.
I've pursuing this because I think there's a performance gain here, maybe
there's not? an alias with a numeric filter is as performant as this "not
searchable document" solution would be???
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.