-->
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: MultiFieldQueryParser and different analyzers
PostPosted: Wed Mar 11, 2009 7:21 am 
Beginner
Beginner

Joined: Tue Feb 03, 2009 12:29 pm
Posts: 49
I have a single text field for full text search against multiple fields in my entity. Some of them might be tokenized, some untokenized and analyzers could be different. How do we do that with MultiFieldQueryParser?

Thanks,
Seema


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 12, 2009 1:00 pm 
Hibernate Team
Hibernate Team

Joined: Thu Apr 05, 2007 5:52 am
Posts: 1689
Location: Sweden
Hi,

you could implement a custom analyzer which extends Lucene's org.apache.lucene.analysis.PerFieldAnalyzerWrapper. Use this custom analyzer as your default analyzer in Hibernate Search via the hibernate.search.analyzer property. Well, that's one way of doing this.

--Hardy


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.