-->
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: deciding the best entities to search with hibernate search
PostPosted: Sun Jul 03, 2011 12:36 pm 
Newbie

Joined: Wed Jun 08, 2011 11:12 am
Posts: 4
Hello,

I am adding on hibernate search to an existing database with a large amount of data. The ultimate front end concept is to have a search box where users can query anything in the database. This spans several entities (about 30). I am trying to narrow the pool of entities that get searched and then returned to the user on a results page. My initial thought was to query each entity for the first 20 results I get back, and then order the entities by the sum of the 20 results' score. I would then get the full results from the top 3 entities and aggregate them to be displayed to the user. If the user wants to broaden their search, the page displays the next top 3 queries and so on.

I am fairly new to hibernate search, so I am not sure if this is a good idea at all, or if anyone has done something similar in a way that would better. Any input would be appreciated.

Thanks.


Top
 Profile  
 
 Post subject: Re: deciding the best entities to search with hibernate search
PostPosted: Sun Jul 03, 2011 7:05 pm 
Hibernate Team
Hibernate Team

Joined: Fri Oct 05, 2007 4:47 pm
Posts: 2536
Location: Third rock from the Sun
Hi,
for what reason are you narrowing down the selection of entities? Why not let the user search across all of them directly?

_________________
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.