Thank you.
But i found that the result is always 1. Even i input the token that I dont
even have in the doc. What happened?
Best,
Sengly
On 4/4/07, Laxmilal Menaria <[EMAIL PROTECTED]> wrote:
hello,
you can try this code :
IndexReader ISer= IndexReader.open("C:/Testindex");
Ter
Thanks so much for your explaination. But there is one thing that I want to
make sure is that in case that i add the same token to the same field,
internally is it redundancy?
And in case, that I have many fields. What is the best way to list up the
frequency of all the tokens from different fiel
See below
On 4/4/07, Sengly Heng <[EMAIL PROTECTED]> wrote:
Dear all,
My problem is a little bit strange. Instead of parsing the content of the
document to the indexer. I am adding one by one. Here is a piece of my
code
:
Document doc = new Document();
doc.add(Field.Text("Features", "blue");
hello,
you can try this code :
IndexReader ISer= IndexReader.open("C:/Testindex");
TermEnum te=ISer.terms(new Term("Features","blue"));
Term te1= te.term();
System.out.println("Frequency of blue "+ISer.docFreq(te1));
regards,
-LM
On 4/4/07, Sengly Heng <[EMAIL