[ 
https://issues.apache.org/jira/browse/LUCENE-9171?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17024216#comment-17024216
 ] 

Alessandro Benedetti commented on LUCENE-9171:
----------------------------------------------

Hi Alan, 
I'll work on this during the week.

I am investigating the usage of AttributeSources.
Now, first question, as you can see in the Pull Request I added a boolean class 
variable "synonymsBoostByPayload" at Lucene level :

{code:java}
 protected boolean enablePositionIncrements = true;
  protected boolean enableGraphQueries = true;
  protected boolean autoGenerateMultiTermSynonymsPhraseQuery = false;
  protected boolean synonymsBoostByPayload = false;
{code}

When you say:

" Instead, it would be useful to try and see what we need to change in 
QueryBuilder to allow all of the payload handling to happen in subclasses."

Do you mean it would be better to see that disappear and leave it only in the 
SolrQueryParserBase implementation?
Don't you think it could be useful to boost synonyms by payload at Lucene level 
as well as a new feature?
No strong opinion on that, just wondering :)

Related the span query observation, I'll think about it



> 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
>
> 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: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to