Hello all,
I am trying to boost more recent Docs, i.e. Docs with a greater year
Value like this:
if (title.getEJ() != null) {
titleDocument.setBoost(new Float("1." + title.getEJ()));
}
so a doc from 1973 should get a boost of 1.1973 and a doc of 1975 should
get a boost of 1.1975 .
I have indexed these two docs:
DOK 1:
Document<stored/uncompressed,indexed<katkey:1042362>
stored/uncompressed,indexed,termVector<EJ:1973>
indexed,tokenized<AU:Palandt, Otto
Danckelmann, Bernhard>
[...]
DOK 2:
Document<stored/uncompressed,indexed<katkey:1043960>
stored/uncompressed,indexed,termVector<EJ:1975>
indexed,tokenized<AU:Palandt, Otto
Danckelmann, Bernhard>
[...]
If I am Searching for AU:palandt
I get this:
Explain für 1042362: 1.6931472 = fieldWeight(AU:palandt in 0), product of:
1.0 = tf(termFreq(AU:palandt)=1)
1.6931472 = idf(docFreq=2)
1.0 = fieldNorm(field=AU, doc=0)
Explain für 1043960: 1.6931472 = fieldWeight(AU:palandt in 1), product of:
1.0 = tf(termFreq(AU:palandt)=1)
1.6931472 = idf(docFreq=2)
1.0 = fieldNorm(field=AU, doc=1)
so the "older" doc is better rated or with the same rank as the newer?
any ideas?
tia,
martin
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]