Modify length calculation for ranking
authorAdam Dickmeiss <adam@indexdata.dk>
Tue, 3 Nov 2009 14:03:41 +0000 (15:03 +0100)
committerAdam Dickmeiss <adam@indexdata.dk>
Tue, 3 Nov 2009 14:03:41 +0000 (15:03 +0100)
commit556f48eff358140d9b68549bf88988133fba786d
tree28a55e24d538c5954a2015f149f16d54d9f19770
parentbeda9709478c02182ceadb5f0526c32d8986c039
Modify length calculation for ranking

Use a different denominator (length) for per-field relevance
scoring.. Instead of length of all ranked fields we now use
length of individual fields (as if they were individual "free" text
fields). This will ensure that documents with a long field with no
match (say description) will not "hurt" a title match.
src/logic.c
src/record.h
src/relevance.c
src/relevance.h