-->
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: Is dynamic field addition possible?
PostPosted: Thu Sep 30, 2010 6:18 am 
Beginner
Beginner

Joined: Thu Jun 24, 2010 2:30 am
Posts: 23
I have requirement, that administrator user of my application should be able to add/remove fields from search. Does Hibernate Search has other options of adding/removing fields from index, except annotations?


Top
 Profile  
 
 Post subject: Re: Is dynamic field addition possible?
PostPosted: Fri Oct 01, 2010 5:14 am 
Hibernate Team
Hibernate Team

Joined: Fri Oct 05, 2007 4:47 pm
Posts: 2536
Location: Third rock from the Sun
Hi,
sure it's possible in several ways; using a @ClassBridge (see section 4.2.2.3. ClassBridge in the reference documentation) you have full control of how each instance is indexed, this can be dynamic and you can change the "index schema" on a per-document basis, or you can even change the full Search configuration on the fly (in newest 3.3-beta only) and redefine the configuration programmatically.
I would recommend though to always index all fields which might ever be needed, and apply dynamic filtering on the results by using Filters; this way you can hide information rather than not having, useful for when the requirements or rules change.

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