-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: How to search for top ranking terms Hibernate search?
PostPosted: Tue Aug 31, 2010 10:33 am 
Newbie

Joined: Tue Aug 31, 2010 10:28 am
Posts: 1
I've already tokenized the field, so, for example, 'kw1' appears 10 times across all document, 'kw2' 20 time, and so on and so force.

If I check index with Luke, it will be looking like:

Quote:
'kw1':10,
'kw2':20, ...


I need get top N highest ranking terms. It is something like Google trend.

Any idea?


Top
 Profile  
 
 Post subject: Re: How to search for top ranking terms Hibernate search?
PostPosted: Wed Sep 01, 2010 4:42 pm 
Hibernate Team
Hibernate Team

Joined: Fri Oct 05, 2007 4:47 pm
Posts: 2536
Location: Third rock from the Sun
Lucene is perfect for this kind of use cases, but you won't issue a standard Query nor load entities right?
The terms with associated frequencies are stored in the index, open an IndexReader and use "low level" Lucene API to read the values.

_________________
Sanne
http://in.relation.to/


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.