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