-->
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: Can I query all existing indexes ?
PostPosted: Wed Apr 28, 2010 5:24 am 
Newbie

Joined: Wed Apr 28, 2010 5:07 am
Posts: 1
Hi there,

I've been thinking about to use hibernate search in our next project. But there is one thing I want to know.
Is there a possibility to query all existing indexes for a specified field?
For example our object has a field called keywords. The keywords of one object will be saved in a string like this: "calculator iphone scientific programmable" and of another object like this: "chess blackberry games".

Hibernate search will tokenize this words in an index tree.
And now I want to build a query which returns a list with all keywords. It should look like this: ("calculator", "iphone", "scientific", "programmable", "chess", "blackberry", "games").

Is that possible ?

Thank you and have a nice day

Christian


Top
 Profile  
 
 Post subject: Re: Can I query all existing indexes ?
PostPosted: Wed Apr 28, 2010 10:35 am 
Hibernate Team
Hibernate Team

Joined: Fri Oct 05, 2007 4:47 pm
Posts: 2536
Location: Third rock from the Sun
yes that's possible, when creating the fulltext Query you can optionally filter on a specific type, or just search across all indexed types.
It's not important if each indexed type is sharing the same index or not, or if one entity is using sharded indexes, or overall if you have mixed strategies, it will return a list of matching entities, each one of specific type.

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