I'm working with Hibernate Search for months now, but still I'm not able to digest the relevance it brings. I'm overall satisfied with the results it returns, but even simplest test does not satisfy my expectation.
First test was using the term frequency(tf). Data:
- word
- word word
- word word word
- word word word word
- word word word word word
- word word word word word word
Results I get:
- word
- word word word word
- word word word word word
- word word word word word word
- word word
- word word word
I'm really confused with this scoring effect. My Query is quite complex, but as this test did not have any other field involved, it can be simplified as below: booleanjunction.should(phraseQuery).should(keywordQuery).should(fuzzyQuery)
I've analyzers as below:
StandardFilterFactory
LowerCaseFilterFactory
StopFilterFactory
SnowballPorterFilterFactory for english
My Explanation object https://jsfiddle.net/o51kh3og/