java-user@lucene.apache.org schrieb am 14.06.05 08:49:11:
I'm not 100% sure I understand your question, but... : order to compute the TF I count the occurences of terms which are : similar to the term. But I've got problems to compute the IDF, because I : must know the number of documents in which the term appears before : searching for the documents (in the method sumOfSquaredWeights() in my ...to get the number of docs that contain a specific term, you can use IndexReader.docFreq(Term) That's not possible, because my indexelements are trigrams, so with IndexReader.docFreq(trigram) I get the number of docs which contain this trigram, but I need the number of docs that contain a whole term. Barbara __________________________________________________________ Mit WEB.DE FreePhone mit hoechster Qualitaet ab 0 Ct./Min. weltweit telefonieren! http://freephone.web.de/?mc=021201 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]