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

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

calculate average distance between words

2007-03-02 Thread dziadgba
hy, We want to correlate words and construct a network which links give the correleation strength. We believe that if words occur very often very near to each other the strenght of the link should be stronger. I remember that somebody once told me that lucene has the capability of doing that. So