Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Lucene: Java-User

Lucene 4.0 Get All Index Terms

 

 

Lucene java-user RSS feed   Index | Next | Previous | View Threaded


silentgunner at gmail

Jan 24, 2012, 1:10 PM

Post #1 of 5 (399 views)
Permalink
Lucene 4.0 Get All Index Terms

Hi all,

Looking at some older Lucene examples, I noticed for older versions of
lucene that IndexReader came with a handy terms() method that would return
a listing of all the terms in the index and let you get at the term
frequency. In Lucene 4.0, I noticed this method vanished from IndexReader.
I'd like to do some analysis on my text corpus and was wondering if I could
still easily get that information via the API, and if not, what the new
best practice for retrieving index statistics is or will be.

Thanks!
S


lucene at mikemccandless

Jan 24, 2012, 2:04 PM

Post #2 of 5 (384 views)
Permalink
Re: Lucene 4.0 Get All Index Terms [In reply to]

Have a look at lucene/MIGRATE.txt? It [tries to] describe this
change... and if something is missing please report back!

Mike McCandless

http://blog.mikemccandless.com

On Tue, Jan 24, 2012 at 4:10 PM, Stephen Howe <silentgunner [at] gmail> wrote:
> Hi all,
>
> Looking at some older Lucene examples, I noticed for older versions of
> lucene that IndexReader came with a handy terms() method that would return
> a listing of all the terms in the index and let you get at the term
> frequency. In Lucene 4.0, I noticed this method vanished from IndexReader.
> I'd like to do some analysis on my text corpus and was wondering if I could
> still easily get that information via the API, and if not, what the new
> best practice for retrieving index statistics is or will be.
>
> Thanks!
> S

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe [at] lucene
For additional commands, e-mail: java-user-help [at] lucene


silentgunner at gmail

Jan 24, 2012, 2:22 PM

Post #3 of 5 (377 views)
Permalink
Re: Lucene 4.0 Get All Index Terms [In reply to]

That solved it, thanks!

On Tue, Jan 24, 2012 at 5:04 PM, Michael McCandless <
lucene [at] mikemccandless> wrote:

> Have a look at lucene/MIGRATE.txt? It [tries to] describe this
> change... and if something is missing please report back!
>
> Mike McCandless
>
> http://blog.mikemccandless.com
>
> On Tue, Jan 24, 2012 at 4:10 PM, Stephen Howe <silentgunner [at] gmail>
> wrote:
> > Hi all,
> >
> > Looking at some older Lucene examples, I noticed for older versions of
> > lucene that IndexReader came with a handy terms() method that would
> return
> > a listing of all the terms in the index and let you get at the term
> > frequency. In Lucene 4.0, I noticed this method vanished from
> IndexReader.
> > I'd like to do some analysis on my text corpus and was wondering if I
> could
> > still easily get that information via the API, and if not, what the new
> > best practice for retrieving index statistics is or will be.
> >
> > Thanks!
> > S
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe [at] lucene
> For additional commands, e-mail: java-user-help [at] lucene
>
>


cooniur at gmail

Nov 6, 2012, 6:45 PM

Post #4 of 5 (251 views)
Permalink
Re: Lucene 4.0 Get All Index Terms [In reply to]

Hi, could u please tell me how did you solve this problem? Better with an
example. I'm new to Lucene4, and I want to list all indices to build a tag
cloud.
Thank you very much!



--
View this message in context: http://lucene.472066.n3.nabble.com/Lucene-4-0-Get-All-Index-Terms-tp3686023p4018644.html
Sent from the Lucene - Java Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe [at] lucene
For additional commands, e-mail: java-user-help [at] lucene


wuqiu.reg at qq

Nov 16, 2012, 1:18 AM

Post #5 of 5 (182 views)
Permalink
Re: Lucene 4.0 Get All Index Terms [In reply to]

me too !
Could you explain how you solved it ??



--
View this message in context: http://lucene.472066.n3.nabble.com/Lucene-4-0-Get-All-Index-Terms-tp3686023p4020683.html
Sent from the Lucene - Java Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe [at] lucene
For additional commands, e-mail: java-user-help [at] lucene

Lucene java-user RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.