Hi Andrew, Queries and filter are similar in terms of their ability to match documents. However, filters do not perform any scoring and can be cached. As a consequence, you should use filters instead of queries when you do not care about the produced scores.
On Tue, Jan 13, 2015 at 5:16 PM, AndrewK <[email protected]> wrote: > I have a question regarding filters and queries. > > I understand that filters are used in conjunction with routing and > aliases, but it also seems that they can often be used interchangeably with > queries. > > Is there a technical difference, e.g. with regard to caching mechanisms, > to how they are implemented? > > Regards, Andrew > > -- > You received this message because you are subscribed to the Google Groups > "elasticsearch" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/elasticsearch/15ad0953-04fd-4813-a1c8-131b16bd7977%40googlegroups.com > <https://groups.google.com/d/msgid/elasticsearch/15ad0953-04fd-4813-a1c8-131b16bd7977%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Adrien Grand -- You received this message because you are subscribed to the Google Groups "elasticsearch" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAL6Z4j6uUHnySkOmxzVP_R35y0hd_jcMxyQj2NN5QJxE_zcaAg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
