-->
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.  [ 4 posts ] 
Author Message
 Post subject: get the index information of an entity
PostPosted: Thu Nov 18, 2010 8:53 pm 
Beginner
Beginner

Joined: Fri Nov 05, 2010 7:25 am
Posts: 21
I am using hibernate-search,and I want to use the
FullTextQuery.setProject(String... fields);
And these fields must be store.yes,also I do not want to hard-code these fields,so I wonder if there is any way to tell me which field are set as index.yes?


Top
 Profile  
 
 Post subject: Re: get the index information of an entity
PostPosted: Fri Nov 19, 2010 4:11 am 
Hibernate Team
Hibernate Team

Joined: Thu Apr 05, 2007 5:52 am
Posts: 1689
Location: Sweden
No, that is currently not possible. It would fall under HSEARCH-436.

--Hardy


Top
 Profile  
 
 Post subject: Re: get the index information of an entity
PostPosted: Fri Nov 19, 2010 8:57 am 
Beginner
Beginner

Joined: Fri Nov 05, 2010 7:25 am
Posts: 21
hardy.ferentschik wrote:
No, that is currently not possible. It would fall under HSEARCH-436.

--Hardy

SO,how does the hibernate-search know which Entity and which field is indexed?


Top
 Profile  
 
 Post subject: Re: get the index information of an entity
PostPosted: Sun Nov 21, 2010 7:44 am 
Hibernate Team
Hibernate Team

Joined: Thu Apr 05, 2007 5:52 am
Posts: 1689
Location: Sweden
If you are talking about projection then Hibernate Search does not know either. Search is not validating the projection field names you are providing. It is your responsibility to provide the right names. The mentioned Jira issue would be a first step into being able to have some validation. On the other hand you might be using custom field/class bridges where Search could not know/verify which fields you are adding to the index.

--Hardy


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 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.