Re: HITS and termDoc give different results

2007-04-02 Thread dziadgba dziadgba
you were right thanks for help dziadgba 2007/3/11, Doron Cohen <[EMAIL PROTECTED]>: Is "Text" the only field in the index? Note that the search only looks at field "Text", while the terms() iteration as appears in that code might bump into a term with same text but in another field. A better c

Re: HITS and termDoc give different results

2007-03-10 Thread Doron Cohen
Is "Text" the only field in the index? Note that the search only looks at field "Text", while the terms() iteration as appears in that code might bump into a term with same text but in another field. A better comparison would be to create a Term ("Text",), and compare TermQuery(thatTerm) to termDo

HITS and termDoc give different results

2007-03-10 Thread dziadgba
hye, I want to extract documents which contain a specific term. I tried to do it in two different ways: 1 Using the 'iterator' termdocs = reader.termDocs(term); 2 Using search and examing Hits turns out that the result are sometimes equal, sometimes the first is a subset of the second and som