开发者

Compass SearchableDynamicProperty Issue

I have a project where I am using hibernate开发者_如何学JAVA with compass for indexing, now everything is working fine with normal @SearchableProperty @SearchableCompoenet etc.

But I am facing problem when I have tried to implement @SearchableDynamicProperty.


Finally got the issues and resolved it...

:: PROBLEM ::

The insert statement was not performing inside single hibernate transaction, so that's why it was not being able to index the child table entries.

::RESOLUTION::

After firing the insert statement on child tables, following statement (of course in synchronized state) will update the current compass indexes..

compassGps.index(Test.class);
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜