lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Markus Jelsma <>
Subject Rewrite SynonymQuery to support payloads
Date Wed, 23 May 2018 10:41:54 GMT

To support payloads we rewrite SynonymQuery to a pair of SpanTerm queries which we then can
wrap in the PayloadScoreQuery. This is not the right way to do this because if both clauses
match, both are also scored.  We could try to rewrite SynonymQuery to a SpanOrQuery but i
suppose that would also cause both clauses to score if they match.

So, how can i transform a SynonymQuery into something that i can wrap into PayloadScoreQuery
on Lucene/Solr 7.x?

Many thanks,

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message