RE: Rewrite SynonymQuery to support payloads

2018-05-24 Thread Markus Jelsma
essandro Benedetti > Sent: Wednesday 23rd May 2018 13:01 > To: java-user@lucene.apache.org > Subject: Re: Rewrite SynonymQuery to support payloads > > Hi Markus, > I contributed to Solr this exact part : > > https://issues.apache.org/jira/browse/SOLR-12238 > > Patch and P

Re: Rewrite SynonymQuery to support payloads

2018-05-23 Thread Alessandro Benedetti
Hi Markus, I contributed to Solr this exact part : https://issues.apache.org/jira/browse/SOLR-12238 Patch and Pull Request is attached but it has not been reviewed yet. Give it a look, and then we can continue the discussion here! let me know if you feel your requirement is different ! Cheers O

Rewrite SynonymQuery to support payloads

2018-05-23 Thread Markus Jelsma
Hello, 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 w