You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by 장용석 <ne...@gmail.com> on 2013/01/15 16:16:17 UTC
The best way get highest frequency term from index
Hi.
What is the best way get highest frequency term from index?
I think for this, using PriorityQueue and cut off lower frequency term.
But this way need performing loop as all term's count.
Is there better way get highest frequency term?
Thanks.!
--
DEV용식
http://devyongsik.tistory.com
Re: The best way get highest frequency term from index
Posted by 장용석 <ne...@gmail.com>.
Thank you for your reply!
2013/1/16 Ian Lea <ia...@gmail.com>
> java org.apache.lucene.misc.HighFreqTerms indexdir 1 field
>
> That's for 4.0, in lucene-misc-4.0.0.jar. It has been around for ages
> but may have had a different package name in earlier releases.
>
> I've no idea how it works and luckily don't need to. You can look at
> the source if you need to know.
>
>
> --
> Ian.
>
>
> On Tue, Jan 15, 2013 at 3:16 PM, 장용석 <ne...@gmail.com> wrote:
> > Hi.
> >
> > What is the best way get highest frequency term from index?
> >
> > I think for this, using PriorityQueue and cut off lower frequency term.
> > But this way need performing loop as all term's count.
> >
> > Is there better way get highest frequency term?
> >
> > Thanks.!
> > --
> > DEV용식
> > http://devyongsik.tistory.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>
--
DEV용식
http://devyongsik.tistory.com
Re: The best way get highest frequency term from index
Posted by Ian Lea <ia...@gmail.com>.
java org.apache.lucene.misc.HighFreqTerms indexdir 1 field
That's for 4.0, in lucene-misc-4.0.0.jar. It has been around for ages
but may have had a different package name in earlier releases.
I've no idea how it works and luckily don't need to. You can look at
the source if you need to know.
--
Ian.
On Tue, Jan 15, 2013 at 3:16 PM, 장용석 <ne...@gmail.com> wrote:
> Hi.
>
> What is the best way get highest frequency term from index?
>
> I think for this, using PriorityQueue and cut off lower frequency term.
> But this way need performing loop as all term's count.
>
> Is there better way get highest frequency term?
>
> Thanks.!
> --
> DEV용식
> http://devyongsik.tistory.com
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org