]
Emmanuel Bernard commented on HSEARCH-488:
------------------------------------------
Hi Peter,
I've added your test case in our test suite (adjusting slightly the test harness) and
all test passes. So either the bug has been fixed or something different is interfering.
The tests are in org.hibernate.search.test.embedded.nested.containedIn
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: