[ 
https://issues.apache.org/jira/browse/LUCENE-7866?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Uwe Schindler updated LUCENE-7866:
----------------------------------
    Attachment: LUCENE-7866.patch

Here is a quick patch.

In the payload package we also have a separate TokenFilter that adds a payload 
depending on the token type. We could have the same here. This allows to boost 
substantives or verbs, if the analysis chain assigns those token types.

What do you think? We could then also move the whole thing to a separate 
package.

> Add TokenFilter to add custom term frequency (like 
> DelimitedPayloadTokenFilter)
> -------------------------------------------------------------------------------
>
>                 Key: LUCENE-7866
>                 URL: https://issues.apache.org/jira/browse/LUCENE-7866
>             Project: Lucene - Core
>          Issue Type: Improvement
>          Components: modules/analysis
>            Reporter: Uwe Schindler
>            Assignee: Uwe Schindler
>             Fix For: master (7.0)
>
>         Attachments: LUCENE-7866.patch
>
>
> This is a followup of LUCENE-7854. This will add a simple {{TokenFilter}} 
> like {{DelimitedPayloadTokenFilter}} that can be used to index a custom term 
> frequency: {{"token|5"}} will be index token "token" with a term freq of 5. 
> The effect is the same as adding the token 5 times by a "repeat token filter".



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to