-->
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: Indexing fields: concatinate fields and exclude some values
PostPosted: Tue Dec 27, 2011 7:39 am 
Newbie

Joined: Tue Dec 27, 2011 6:36 am
Posts: 1
In my web application I am using Hibernate with Annotations and Hibernate Search.

I would like to access some properties during indexing process to collect them in a single field
and also to exclude some values from the full text index.
Which is the best way to do that?
Any ideas? or example?
Thank you in advance.
Hhstaw


Top
 Profile  
 
 Post subject: Re: Indexing fields: concatinate fields and exclude some values
PostPosted: Wed Dec 28, 2011 9:17 am 
Hibernate Team
Hibernate Team

Joined: Fri Oct 05, 2007 4:47 pm
Posts: 2536
Location: Third rock from the Sun
Hi,
Do you need to exclude specific terms ? If so have a look at StopFilterFactory as mentioned on the reference docs under table 4.3 "Examples of available filters" : http://docs.jboss.org/hibernate/stable/search/reference/en-US/html_single/#d0e3307

To have multiple properties indexed in the same field you could either override the @Field(name="") to point to the same field, or use a custom org.hibernate.search.annotations.ClassBridge to add values the the index with all possible flexibility.

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