[ https://issues.apache.org/jira/browse/SOLR-12238?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17021919#comment-17021919 ]
Alessandro Benedetti commented on SOLR-12238: --------------------------------------------- Hi [~dsmiley], you are right. The github pull request was linked in the Jira, I link it here: [https://github.com/apache/lucene-solr/pull/357/files|https://github.com/apache/lucene-solr/pull/357/files] Do you want me to split the functionality in two Jiras (and split the code changes in two) or just migrate this to Lucene? It has been a while, so I'll need to catch up with it, I am not sure the Lucene modifications are useful on their own. What's the most common approach when the Lucene modifications are pre-requisite specifically for a Solr feature? > Synonym Query Style Boost By Payload > ------------------------------------ > > Key: SOLR-12238 > URL: https://issues.apache.org/jira/browse/SOLR-12238 > Project: Solr > Issue Type: Improvement > Components: query parsers > Affects Versions: 7.2 > Reporter: Alessandro Benedetti > Priority: Major > Attachments: SOLR-12238.patch, SOLR-12238.patch, SOLR-12238.patch, > SOLR-12238.patch > > Time Spent: 10m > Remaining Estimate: 0h > > This improvement is built on top of the Synonym Query Style feature and > brings the possibility of boosting synonym queries using the payload > associated. > It introduces two new modalities for the Synonym Query Style : > PICK_BEST_BOOST_BY_PAYLOAD -> build a Disjunction query with the clauses > boosted by payload > AS_DISTINCT_TERMS_BOOST_BY_PAYLOAD -> build a Boolean query with the clauses > boosted by payload > This new synonym query styles will assume payloads are available so they must > be used in conjunction with a token filter able to produce payloads. > An synonym.txt example could be : > # Synonyms used by Payload Boost > tiger => tiger|1.0, Big_Cat|0.8, Shere_Khan|0.9 > leopard => leopard, Big_Cat|0.8, Bagheera|0.9 > lion => lion|1.0, panthera leo|0.99, Simba|0.8 > snow_leopard => panthera uncia|0.99, snow leopard|1.0 > A simple token filter to populate the payloads from such synonym.txt is : > <filter class="solr.DelimitedPayloadTokenFilterFactory" encoder="float" > delimiter="|"/> -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org