|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.lucene.search.Similarity
org.apache.lucene.search.DefaultSimilarity
edu.mayo.informatics.indexer.lucene.IDFNeutralSimilarity
public class IDFNeutralSimilarity
This class overrides the IDF scoring portion of the Lucene scoring algorithm. See method description for details.
Constructor Summary | |
---|---|
IDFNeutralSimilarity()
|
Method Summary | |
---|---|
float |
idf(int arg0,
int arg1)
I'm returning a constant for idf instead of the way it used to be calculated because if I had lots of documents with an other_designation of "renal calculus" but only a couple of documents that contained a preferred designation of "renal calculus" somewhere in the desgination - the longer preferred_designation's were being scored higher than the exact match other_designation. |
Methods inherited from class org.apache.lucene.search.DefaultSimilarity |
---|
coord, lengthNorm, queryNorm, sloppyFreq, tf |
Methods inherited from class org.apache.lucene.search.Similarity |
---|
decodeNorm, encodeNorm, getDefault, getNormDecoder, idf, idf, scorePayload, setDefault, tf |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IDFNeutralSimilarity()
Method Detail |
---|
public float idf(int arg0, int arg1)
idf
in class org.apache.lucene.search.DefaultSimilarity
|
Copyright: (c) 2004-2006 Mayo Foundation for Medical Education and Research (MFMER). All rights reserved. MAYO, MAYO CLINIC, and the triple-shield Mayo logo are trademarks and service marks of MFMER. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |