Hi Adrien,
i forgot to mention that i also need the original frequencies. I have some 
queries i need to perform with the original frequencies and then some with 
custom frequencies, but as im only having a small index and a few queries that 
would work, but a solution where i dont have to change the index for those 
queries would be better for me.
Marcel



‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Monday, June 7, 2021 9:11 AM, Adrien Grand <jpou...@gmail.com> wrote:

> Hi Marcel,
>
> You can make Lucene index custom frequencies using something like
> DelimitedTermFrequencyTokenFilter
> https://lucene.apache.org/core/8_8_0/analyzers-common/org/apache/lucene/analysis/miscellaneous/DelimitedTermFrequencyTokenFilter.html,
> which would be easier than writing a custom Query/Weight/Scorer. Would it
> work for you?
>
> On Sun, Jun 6, 2021 at 10:24 PM Hannes Lohr
> truebau...@protonmail.com.invalid wrote:
>
> > Hello,
> > for some Queries i need to calcuate the score mostly like the normal
> > score, but for some documents certain terms are assigned a Frequency given
> > by me and the score should be calculated with these new term frequencies.
> > After some research, it seems i have to implement a custom Query, custom
> > Weight and Custom Scorer for this. I wanted to ask if I'm overlooking a
> > simpler solution or if this is the way to go.
> > Thanks,
> > Marcel
>
> --
>
> Adrien



---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-user-h...@lucene.apache.org

Reply via email to