Hi,
I see that @Field has a default of TermVector.NO. Now I'm new to search algorithms, so excuse me if I got it wrong... but isn't the TermVector essential for ranking? Don't we need frequency & positions? For example: - Don't we need number of occurrences (so that when searching for "Math", we'd get high rank for the document "math math math", and lower rank for "math is nice") - Don't we need positions, to tell if words appear close together (when searching for the PhraseQuery "java programmer" with a slop, I'd expect high rank for "java programmer", and low rank for "java is nice, but I'm a Perl programmer").
If it's really necessary for ranking, can I globally configure Hibernate Search to store TermVector for all fields (instead of explicitly requesting it on each field)?
Thanks :)
|