-->
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: Multiple bridges for the same field
PostPosted: Wed Jul 22, 2009 5:39 am 
Beginner
Beginner

Joined: Tue Feb 03, 2009 12:29 pm
Posts: 49
hi,

Is it possible to have multiple bridges for the same field? For example, we have a bridge called MakeBridge for the field 'makeSyn'. Is it possible to configure one more bridge for this field?
Thanks,
Seema

@Fields( {
@Field(name = "makeSyn", index = Index.UN_TOKENIZED, store = org.hibernate.search.annotations.Store.YES, analyzer = @Analyzer(definition = "lowercase_analyzer"), bridge = @FieldBridge(impl = MakeBridge.class)),
@Field(name = "make", index = Index.TOKENIZED, store = org.hibernate.search.annotations.Store.YES, analyzer = @Analyzer(definition = "lowercase_analyzer"))
})
@Column(name = "MAKE")
private String make;


Top
 Profile  
 
 Post subject: Re: Multiple bridges for the same field
PostPosted: Mon Jul 27, 2009 5:51 am 
Hibernate Team
Hibernate Team

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

I am not really sure what you want to achieve. Of course you can have as many @Field annotations as you like for a given field. It should also be no problem to use the same field name multiple times. Did you have any problems particular problems?

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