-->
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 Possible to Create DynamicFields?
PostPosted: Tue Dec 29, 2009 6:10 pm 
Newbie

Joined: Wed Dec 23, 2009 3:13 pm
Posts: 4
Hi
I need in my application to index fields created by the user.
The user will define the fields of document (Name, Age, Value, Address, Content, ...) and if the type of field is string, i will index this.
I see that in Hibernate Search we must predefine our indexed fields using the @Field Annotations.

It's possible to create Dynamic Indexed Fields and do a full-text search by this fields?

Thanks


Top
 Profile  
 
 Post subject: Re: Is Possible to Create DynamicFields?
PostPosted: Wed Dec 30, 2009 6:48 pm 
Hibernate Team
Hibernate Team

Joined: Fri Oct 05, 2007 4:47 pm
Posts: 2536
Location: Third rock from the Sun
yes it is, the static annotations is usually more practical but you can add any number and kind of fields.
Have a look to @ClassBridge in reference docs to completely define your own document on a per-instance base.

ClassBridge is for index creation/update, for searching it's totally flexible as Search is not hiding the Lucene native APIs.

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