-->
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.  [ 3 posts ] 
Author Message
 Post subject: Indexed vs. Stored (a basic question)
PostPosted: Fri Apr 03, 2009 6:42 am 
Beginner
Beginner

Joined: Tue Feb 03, 2009 12:29 pm
Posts: 49
I have a question about a field that is indexed, but not stored (as shown)
@Field(name = "empName", index = Index.UN_TOKENIZED, store = org.hibernate.search.annotations.Store.NO)

When I browse through the Lucene documents using Luke, I cannot see this field since it is not stored in the document. But I can search using it, since it is indexed. So that means the untokenized value is somewhere in the index. Where is this indexing information kept if it is not part of the Lucene document?

Thanks,
Seema


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 03, 2009 7:38 am 
Newbie

Joined: Tue Mar 31, 2009 10:03 am
Posts: 2
Hi Seema,

I think that the field isn't shown in Luke's Documents tab does not mean that it's not part of the index. Just click on "Reconstruct & Edit". Then you should see all fields -- the ones that are not stored are marked as "restored from index".

Greetings,
Joachim


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 06, 2009 3:45 am 
Hibernate Team
Hibernate Team

Joined: Thu Apr 05, 2007 5:52 am
Posts: 1689
Location: Sweden
Of course these values are somewhere in the index. The question is in which form and how easy it is to get to them. If you want to access your index data after a search using the Lucene Document you have to explicitly store the information. Otherwise the values just get indexed and become part of the inverted index which is the data structure for searching. I recommend you refer to the Lucene website in case you want to know more about the index data structures.

--Hardy


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.