-->
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: Can @Transient fields be stored locally?
PostPosted: Wed Jul 27, 2011 12:47 am 
Regular
Regular

Joined: Tue May 17, 2011 1:45 am
Posts: 52
Hi ,

There are lot of @Transient fields that I use during indexing. Obviously these fields are not from database. However running Luke I do not see them stored locally either. Could someone point me how to store @Transient fields so that I can use them during projections.

Thanks
David


Top
 Profile  
 
 Post subject: Re: Can @Transient fields be stored locally?
PostPosted: Wed Jul 27, 2011 3:23 am 
Hibernate Team
Hibernate Team

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

indexing transient fields should work. How do you index them? If you want the value to be stored in the index you have to use something like this: @Field( store=Store.YES)
If you are already using Store.YES then it would help if you provide some more information. Hoe does your class look like and the code you use to index your entities. Are you able to extract a testcase?

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