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?
I'm expecting only one or two results ...
On 12 Jul., 15:50, Clinton Gormley <clin...@iannounce.co.uk (http://iannounce.co.uk)> wrote:
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.