lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adrien Grand <jpou...@gmail.com>
Subject Re: MultiTermQuery vs multiple TermQuery'ies - is there a performance gain?
Date Tue, 23 May 2017 14:43:27 GMT
Rather than MultiTermQuery, you could consider using TermInSetQuery.
Depending on the number of terms, it will use sensible defaults. The main
drawback is that it returns constant scores, but if this does not work for
you then MultiTermQuery would not work either.

Le mar. 23 mai 2017 à 13:52, Michael Wilkowski <mw@silenteight.com> a
écrit :

> Hi,
> I am building an app that will create multiple term queries join with OR
> (>100 primitive TermQuery'ies).
>
> Is there a real performance gain implementing custom MultiTermQuery instead
> of simply joining multiple TermQuery with OR?
>
> Regards,
> MW
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message