ch_3x/lucene/contrib/misc/src/java/org/apache/lucene/misc/HighFreqTerms.java?view=markup
>>
>> Tom
>> http://www.hathitrust.org/blogs/large-scale-search
>>
>>
>>
>> -Original Message-
>> From: nitinhardeniya [mailto:[hidden
>> emai
;
> }
> }
> catch (Exception e) {
> // TODO: handle exception
> e.printStackTrace();
> }
>
> }
>
> but now i have to use TermDocEnum because i am using luc
logs/large-scale-search
-Original Message-
From: nitinhardeniya [mailto:nitinharden...@gmail.com]
Sent: Tuesday, March 22, 2011 1:57 PM
To: java-user@lucene.apache.org
Subject: TermDoc to TermDocsEnum
hi
I have a code that work fine with lucene 3.2 where i used TermDocs to find
the cor
tfcoll.tfA=freq;
>>> > System.out.print( text +" "+ freq);
>>> > if(tfcoll.totalTF()==0)
>>> > {
>>> >
{
>> >//System.out.println("
>> "+tfcoll.tfA+" "+tfcoll.tfD+" "+tfcoll.tfC);
>> > System.out.println("Text "+text+
>> " Freq "+fre
catch (Exception e) {
> > // TODO: handle exception
> > e.printStackTrace();
> >}
> >
> >}
> >
> > but now i have t
eption e) {
> // TODO: handle exception
> e.printStackTrace();
> }
>
> }
>
> but now i have to use TermDocEnum because i am using lucene dev4.0 which
> does not have TermDocs method i was trying to change m
ange my code .please refer
to new code [commented ] and tell me how to use this method in a proper way
. if you can provide an example that would be great.
tds = reader.termDocsEnum(skipDocs, "content", term);
I have tried using null at skipdoc because i don't want to skip anything but
it th