[
https://issues.apache.org/jira/browse/LUCENE-9171?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17028903#comment-17028903
]
Alan Woodward commented on LUCENE-9171:
---------------------------------------
I opened [https://github.com/apache/lucene-solr/pull/1232] to illustrate what I
mean. Building on that, you can add your delimited boosts by writing a
TokenFilter that takes the `|num` part of your term and instead of putting it
into a PayloadAttribute puts it into a BoostAttribute, and immediately term
queries and synonym queries will get boosted correctly.
> Synonyms Boost by Payload
> -------------------------
>
> Key: LUCENE-9171
> URL: https://issues.apache.org/jira/browse/LUCENE-9171
> Project: Lucene - Core
> Issue Type: New Feature
> Components: core/queryparser
> Reporter: Alessandro Benedetti
> Priority: Major
> Time Spent: 10m
> Remaining Estimate: 0h
>
> I have been working in the additional capability of boosting queries by terms
> payload through a parameter to enable it in Lucene Query Builder.
> This has been done targeting the Synonyms Query.
> It is parametric, so it meant to see no difference unless the feature is
> enabled.
> Solr has its bits to comply thorugh its SynonymsQueryStyles
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]