Gist below in short: I have 1000 documents, only one of them matches filter
and all of them match text query.
When I do filtered query the document is only found if I set large
max_expansions. The real data is tens of thousands documents, so it doesn't
look like a way.
Is there another way to filter documents first and then to perform search
on what was filtered?
Not sure if your example data is representative of production data, but if
you have single not_analyzed term values in the field title, you can
probably use the prefix query instead.
Production data is ~ 10000 documents, 230 of them match filter.
I need my text queries to be analyzed, and prefix query doesn't support
that, so it won't help.
On Thursday, March 27, 2014 1:20:59 PM UTC, Binh Ly wrote:
Not sure if your example data is representative of production data, but if
you have single not_analyzed term values in the field title, you can
probably use the prefix query instead.
I'm also curious to know if there is way to do the opposite of
FilteredQuery... basically QueriedFilter. Filter first and then run a query
on the filtered 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.