-->
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: Problem updating index
PostPosted: Tue Feb 23, 2010 9:55 am 
Regular
Regular

Joined: Thu Nov 26, 2009 8:45 am
Posts: 78
I have a object to be index with several annots.:
Code:
@IndexEmbedded
Foo abc;


with Foo having:
Code:
   @Field(index=Index.TOKENIZED)
   private String text = null;

where a large text is stored in,
and some Field like this:
Code:
        @Field
   private String issuer = null;


if i update the issuer, the update listener works well, and i can instantly search for the new (updated) entry. But when i try to update the text (e.g. append a few more sentences) the index wont be updated with this. To find my item by that updated entry, i have to repopulate the index manually first. Not the most efficient way, for a db with a few hundred k entrys. What am i missing?

(using HS 3.0.1 and this within hibernate.cfg.xml :
Code:
   <event type="post-update">
      <listener class="org.hibernate.search.event.FullTextIndexEventListener"/>
   </event>
   <event type="post-insert">
      <listener class="org.hibernate.search.event.FullTextIndexEventListener"/>
   </event>
   <event type="post-delete">
      <listener class="org.hibernate.search.event.FullTextIndexEventListener"/>
   </event>
)


Top
 Profile  
 
 Post subject: Re: Problem updating index
PostPosted: Wed Feb 24, 2010 10:36 am 
Hibernate Team
Hibernate Team

Joined: Thu Apr 05, 2007 5:52 am
Posts: 1689
Location: Sweden
Provided text and issuer are in the same object Foo this seems odd. Are you sure your query is correct? Have you used Luke to verify what actually get indexed. Is there anything in the log files? You can enable trace/debug log to check whether indexing occurs when you update text.
Well, that's just a few pointers on what to look at. If you still experiencing troubles it would help if you post your annotate entities, together with your indexing and search code.

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