On Tue, 2011-07-12 at 06:44 -0700, Karussell wrote:
Which query should I prefer? This filter query:
Use a term query if the terms you are looking for should affect the
_score (relevance). If it should just exclude all docs except for those
that match, use a term filter.
On Tue, 2011-07-12 at 06:44 -0700, Karussell wrote:
Which query should I prefer? This filter query:
Use a term query if the terms you are looking for should affect the
_score (relevance). If it should just exclude all docs except for those
that match, use a term filter.
If its a term value that is easily cacheable (has a "small" amount of values, and its going to be repeated), then a term filter is the way to go usually. If not, a term query.
On Tuesday, July 12, 2011 at 5:16 PM, Karussell wrote:
Ok, I do not need the score. So, can I even go with scan search + the
termFilter or which one would be the fastest?
On Tue, 2011-07-12 at 06:44 -0700, Karussell wrote:
Which query should I prefer? This filter query:
Use a term query if the terms you are looking for should affect the
_score (relevance). If it should just exclude all docs except for those
that match, use a term filter.
If its a term value that is easily cacheable (has a "small" amount of values, and its going to be repeated), then a term filter is the way to go usually. If not, a term query.
On Tuesday, July 12, 2011 at 5:16 PM, Karussell wrote:
Ok, I do not need the score. So, can I even go with scan search + the
termFilter or which one would be the fastest?
On Tue, 2011-07-12 at 06:44 -0700, Karussell wrote:
Which query should I prefer? This filter query:
Use a term query if the terms you are looking for should affect the
_score (relevance). If it should just exclude all docs except for those
that match, use a term filter.
If its a term value that is easily cacheable (has a "small" amount of values, and its going to be repeated), then a term filter is the way to go usually. If not, a term query.
On Tuesday, July 12, 2011 at 5:16 PM, Karussell wrote:
Ok, I do not need the score. So, can I even go with scan search + the
termFilter or which one would be the fastest?
On Tue, 2011-07-12 at 06:44 -0700, Karussell wrote:
Which query should I prefer? This filter query:
Use a term query if the terms you are looking for should affect the
_score (relevance). If it should just exclude all docs except for those
that match, use a term 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.