-->
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.  [ 4 posts ] 
Author Message
 Post subject: Hibernate Search ignoring @Field annotation
PostPosted: Thu Dec 14, 2006 5:59 pm 
Newbie

Joined: Wed Mar 08, 2006 10:33 pm
Posts: 16
Location: Brazil
I have been migrating to the new Hibernate Search (tm) api included in the annotation frwk version 3.2.1.

It is working well for me except for one thing: I cannot make it produce a field in the index for a derived value. This was working in annotations version 3.2.0.

During the indexing process, the annotated method is ignored.

Is it ignored now because it is a derived/transient value (entity method)?
If so, can I work around this without having to create a bogus db column just to get the tokenized, unstored, field produced in the lucene index?

Thanks.


Top
 Profile  
 
 Post subject: Just needed to correct the method name
PostPosted: Fri Dec 15, 2006 9:17 am 
Newbie

Joined: Wed Mar 08, 2006 10:33 pm
Posts: 16
Location: Brazil
I just needed to change my annotated method name from
'searchableText' to 'getSearchableText'.

Thanks for the new Hibernate Search features -- they are just what I needed!

-Stan


Top
 Profile  
 
 Post subject:
PostPosted: Sun Dec 17, 2006 6:40 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Thanks!
You can also map attributes rather than getters in the latest release, this might be simpler.

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Sun Dec 17, 2006 6:44 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
if you have some comments on Hibernate Search (existing features or new features), feel free to shoot.

_________________
Emmanuel


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 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:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.