I can create the facet for the ranges. But if I select more than one facet I want to be able to
filter on it with OR filter which doesn't seem to give me correct results.
The count for vehicles between 1995 to 2000 = 661
The count for vehicles between 2000 to 2005 = 837
When I execute below query it returns 1367 results. It should have returned 661+837=1498 results?
The from and to values of a range filter are inclusive, so both clauses of
the range filter will match vehicles from the year 2000 and the duplicates
are omitted. Judging by your results, 131 vehicles are from 2000.
For better performance, you can use a match all query and move your term
query into the filter section.
I can create the facet for the ranges. But if I select more than one facet
I
want to be able to
filter on it with OR filter which doesn't seem to give me correct results.
The count for vehicles between 1995 to 2000 = 661
The count for vehicles between 2000 to 2005 = 837
When I execute below query it returns 1367 results. It should have returned
661+837=1498 results?
The from and to values of a range filter are inclusive, so both clauses of
the range filter will match vehicles from the year 2000 and the duplicates
are omitted. Judging by your results, 131 vehicles are from 2000.
For better performance, you can use a match all query and move your term
query into the filter section.
I can create the facet for the ranges. But if I select more than one
facet I
want to be able to
filter on it with OR filter which doesn't seem to give me correct results.
The count for vehicles between 1995 to 2000 = 661
The count for vehicles between 2000 to 2005 = 837
When I execute below query it returns 1367 results. It should have
returned
661+837=1498 results?
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.