We're revising our usage of ElasticSearch.
Currently we use and/or filter to glue multiple filters together, but after
some reading on the documentation I wonders if it's better to use bool.
As far as I understand, bool filters uses a bitmap approach, that is
sub-filters returns bitmaps and an and binary operation is applied on all
partial bitmaps to obtain the result.
And for and/or query, it's more an iterator approach, a stream of documents
comes in, pass over all filters and finally filtered document stream comes
out.
I've read in the internal filter operation part, it says that filter
results are cached in the form of bitmaps. So does it means that bool
filter can benefit from the cache, while and/or filter cannot?
In general how do we choose between bool filter and and/or filter?
We're revising our usage of Elasticsearch.
Currently we use and/or filter to glue multiple filters together, but after some reading on the documentation I wonders if it's better to use bool.
As far as I understand, bool filters uses a bitmap approach, that is sub-filters returns bitmaps and an and binary operation is applied on all partial bitmaps to obtain the result.
And for and/or query, it's more an iterator approach, a stream of documents comes in, pass over all filters and finally filtered document stream comes out.
I've read in the internal filter operation part, it says that filter results are cached in the form of bitmaps. So does it means that bool filter can benefit from the cache, while and/or filter cannot?
In general how do we choose between bool filter and and/or filter?
Le 17 déc. 2014 à 11:06, Han JU <ju.han...@gmail.com <javascript:>> a
écrit :
Hi,
We're revising our usage of Elasticsearch.
Currently we use and/or filter to glue multiple filters together, but
after some reading on the documentation I wonders if it's better to use
bool.
As far as I understand, bool filters uses a bitmap approach, that is
sub-filters returns bitmaps and an and binary operation is applied on all
partial bitmaps to obtain the result.
And for and/or query, it's more an iterator approach, a stream of
documents comes in, pass over all filters and finally filtered document
stream comes out.
I've read in the internal filter operation part, it says that filter
results are cached in the form of bitmaps. So does it means that bool
filter can benefit from the cache, while and/or filter cannot?
In general how do we choose between bool filter and and/or filter?
We're revising our usage of Elasticsearch.
Currently we use and/or filter to glue multiple filters together, but after some reading on the documentation I wonders if it's better to use bool.
As far as I understand, bool filters uses a bitmap approach, that is sub-filters returns bitmaps and an and binary operation is applied on all partial bitmaps to obtain the result.
And for and/or query, it's more an iterator approach, a stream of documents comes in, pass over all filters and finally filtered document stream comes out.
I've read in the internal filter operation part, it says that filter results are cached in the form of bitmaps. So does it means that bool filter can benefit from the cache, while and/or filter cannot?
In general how do we choose between bool filter and and/or filter?
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.