[hibernate-issues] [Hibernate-JIRA] Commented: (HSEARCH-488) Nested use of @ContainedIn: changes not propagated to Lucene index

Emmanuel Bernard (JIRA) noreply at atlassian.com
Thu Apr 8 11:03:42 EDT 2010


    [ http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-488?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=36292#action_36292 ] 

Emmanuel Bernard commented on HSEARCH-488:
------------------------------------------

Hi Peter,
SearchTestCase is actually part of src/test and thus not published in the artifact. You can get it from Hibernate's SVN
http://anonsvn.jboss.org/repos/hibernate/search/trunk/

Otherwise it's also available as part of the hibernate-search-testing artifact http://snapshots.jboss.org/maven2/org/hibernate/hibernate-search-testing/3.2.0-SNAPSHOT/


> Nested use of @ContainedIn: changes not propagated to Lucene index
> ------------------------------------------------------------------
>
>                 Key: HSEARCH-488
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-488
>             Project: Hibernate Search
>          Issue Type: Bug
>    Affects Versions: 3.1.1.GA
>         Environment: Hibernate-core 3.3.2.GA
> PostgreSQL 8.4.2, testcase reproduced in hsqldb 1.8.0.7
>            Reporter: Pieter van den Brink
>             Fix For: 3.2.0.CR1
>
>         Attachments: TestNestedContainedIn.zip
>
>
> I'm having trouble getting Hibernate Search to automatically update the Lucene index for entities which are @ContainedIn an entity, which is again @ContainedIn another entity. 
> The class structure in this example is as follows: There are HelpItems and Tags, which are linked many-to-many via another entity HelpItemTag. The HelpItem is the only @Indexed entity, it embeds all tags via @IndexedEmbedded. If an indexed (@Field) property of Tag changes, the change is not propagated to the Lucene index.
> See the discussion at https://forum.hibernate.org/viewtopic.php?f=9&t=1003637 for a complete description.
> I have added a standalone testcase that reproduces the issue. As you can see in the the first testcase, the Tag name is indexed properly as part of the HelpItem, but the second testcase fails because the changed Tag name is not update in the Lucene index.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list