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 manjula wijewickrema <ma...@gmail.com> on 2010/05/10 14:10:42 UTC

Class_for_HighFrequencyTerms

Hi,

If I index a document (single document) in Lucene, then how can I get the
term frequencies (even the first and second highest occuring terms) of that
document? Is there any class/method to do taht? If anybody knows, pls. help
me.

Thanks
Manjula

Re: Class_for_HighFrequencyTerms

Posted by manjula wijewickrema <ma...@gmail.com>.
thanks

On Tue, May 11, 2010 at 3:31 PM, <ad...@gmail.com> wrote:

> Sounds like your path is messed up and you're not using maven correctly.
> Start with the jar version that contains the class you require and use maven
> pom to correctly resolve dependencies
> Adam
> Sent using BlackBerry® from Orange
>
> -----Original Message-----
> From: manjula wijewickrema <ma...@gmail.com>
> Date: Tue, 11 May 2010 15:13:12
> To: <ja...@lucene.apache.org>
> Subject: Re: Class_for_HighFrequencyTerms
>
> Dear Erick,
>
> I lokked for it and even added IndexReader.java and TermFreqVector.java
> from
>
> http://www.jarvana.com/jarvana/search?search_type=class&java_class=org.apache.lucene.index.IndexReader
> .
> But after adding the system indicated a lot of errors in the source code
> IndexReader.java (eg: DirectoryOwningReader cannot be resolved to a
> type, indexCommit
> cannot be resolved to a type, SegmentInfos cannot be resolved, TermEnum
> cannot be resolved to a type, etc.). I am using Lucene 2.9.1 and this
> particular website has listed this source code under 2.9.1 version of
> Lucene. What is the reason for this kind of scenario? Do I have to add
> another JAR file (in order to solve this even I added
> lucene-core-2.9.1-sources.jar, but nothing happened). Pls. be kind enough
> to
> make a reply.
>
> Tanks
> Manjula
>
> On Tue, May 11, 2010 at 1:26 AM, Erick Erickson <erickerickson@gmail.com
> >wrote:
>
> > Have you looked at TermFreqVector?
> >
> > Best
> > Erick
> >
> > On Mon, May 10, 2010 at 8:10 AM, manjula wijewickrema
> > <ma...@gmail.com>wrote:
> >
> > > Hi,
> > >
> > > If I index a document (single document) in Lucene, then how can I get
> the
> > > term frequencies (even the first and second highest occuring terms) of
> > that
> > > document? Is there any class/method to do taht? If anybody knows, pls.
> > help
> > > me.
> > >
> > > Thanks
> > > Manjula
> > >
> >
>
>

Re: Class_for_HighFrequencyTerms

Posted by ad...@gmail.com.
Sounds like your path is messed up and you're not using maven correctly. Start with the jar version that contains the class you require and use maven pom to correctly resolve dependencies 
Adam
Sent using BlackBerry® from Orange

-----Original Message-----
From: manjula wijewickrema <ma...@gmail.com>
Date: Tue, 11 May 2010 15:13:12 
To: <ja...@lucene.apache.org>
Subject: Re: Class_for_HighFrequencyTerms

Dear Erick,

I lokked for it and even added IndexReader.java and TermFreqVector.java
from
http://www.jarvana.com/jarvana/search?search_type=class&java_class=org.apache.lucene.index.IndexReader
.
But after adding the system indicated a lot of errors in the source code
IndexReader.java (eg: DirectoryOwningReader cannot be resolved to a
type, indexCommit
cannot be resolved to a type, SegmentInfos cannot be resolved, TermEnum
cannot be resolved to a type, etc.). I am using Lucene 2.9.1 and this
particular website has listed this source code under 2.9.1 version of
Lucene. What is the reason for this kind of scenario? Do I have to add
another JAR file (in order to solve this even I added
lucene-core-2.9.1-sources.jar, but nothing happened). Pls. be kind enough to
make a reply.

Tanks
Manjula

On Tue, May 11, 2010 at 1:26 AM, Erick Erickson <er...@gmail.com>wrote:

> Have you looked at TermFreqVector?
>
> Best
> Erick
>
> On Mon, May 10, 2010 at 8:10 AM, manjula wijewickrema
> <ma...@gmail.com>wrote:
>
> > Hi,
> >
> > If I index a document (single document) in Lucene, then how can I get the
> > term frequencies (even the first and second highest occuring terms) of
> that
> > document? Is there any class/method to do taht? If anybody knows, pls.
> help
> > me.
> >
> > Thanks
> > Manjula
> >
>


Re: Class_for_HighFrequencyTerms

Posted by manjula wijewickrema <ma...@gmail.com>.
Dear Erick,

I lokked for it and even added IndexReader.java and TermFreqVector.java
from
http://www.jarvana.com/jarvana/search?search_type=class&java_class=org.apache.lucene.index.IndexReader
.
But after adding the system indicated a lot of errors in the source code
IndexReader.java (eg: DirectoryOwningReader cannot be resolved to a
type, indexCommit
cannot be resolved to a type, SegmentInfos cannot be resolved, TermEnum
cannot be resolved to a type, etc.). I am using Lucene 2.9.1 and this
particular website has listed this source code under 2.9.1 version of
Lucene. What is the reason for this kind of scenario? Do I have to add
another JAR file (in order to solve this even I added
lucene-core-2.9.1-sources.jar, but nothing happened). Pls. be kind enough to
make a reply.

Tanks
Manjula

On Tue, May 11, 2010 at 1:26 AM, Erick Erickson <er...@gmail.com>wrote:

> Have you looked at TermFreqVector?
>
> Best
> Erick
>
> On Mon, May 10, 2010 at 8:10 AM, manjula wijewickrema
> <ma...@gmail.com>wrote:
>
> > Hi,
> >
> > If I index a document (single document) in Lucene, then how can I get the
> > term frequencies (even the first and second highest occuring terms) of
> that
> > document? Is there any class/method to do taht? If anybody knows, pls.
> help
> > me.
> >
> > Thanks
> > Manjula
> >
>

Re: Class_for_HighFrequencyTerms

Posted by Erick Erickson <er...@gmail.com>.
Have you looked at TermFreqVector?

Best
Erick

On Mon, May 10, 2010 at 8:10 AM, manjula wijewickrema
<ma...@gmail.com>wrote:

> Hi,
>
> If I index a document (single document) in Lucene, then how can I get the
> term frequencies (even the first and second highest occuring terms) of that
> document? Is there any class/method to do taht? If anybody knows, pls. help
> me.
>
> Thanks
> Manjula
>