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