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 <m...@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 >