I want to find the top N documents in my index sorted by a particular
field, using a filter.
I find that I cannot combine a filter with a Match All query. The
filter seems to have no effect, returning the top documents in the
entire index every time regardless of the filter value.
Using the filter in conjunction with a query works.
I want to find the top N documents in my index sorted by a particular
field, using a filter.
I find that I cannot combine a filter with a Match All query. The
filter seems to have no effect, returning the top documents in the
entire index every time regardless of the filter value.
Using the filter in conjunction with a query works.
I want to find the top N documents in my index sorted by a particular
field, using a filter.
I find that I cannot combine a filter with a Match All query. The
filter seems to have no effect, returning the top documents in the
entire index every time regardless of the filter value.
Using the filter in conjunction with a query works.
I want to find the top N documents in my index sorted by a particular
field, using a filter.
I find that I cannot combine a filter with a Match All query. The
filter seems to have no effect, returning the top documents in the
entire index every time regardless of the filter value.
Using the filter in conjunction with a query works.
Just indexed fields mainly, though you can have a script filter with a script that uses _source to load and parse the source to get a value and filter by it (which is expensive).
On Wednesday, January 25, 2012 at 7:04 PM, Frank LaRosa wrote:
Thanks, I seem to have gotten it to work.
On a related note -- is filtering possible on any field, or just
indexed fields?
I want to find the top N documents in my index sorted by a particular
field, using a filter.
I find that I cannot combine a filter with a Match All query. The
filter seems to have no effect, returning the top documents in the
entire index every time regardless of the filter value.
Using the filter in conjunction with a query works.
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.