1 of 1 people found this helpful
I didn't document the SearchMapping usage with Query, and yes while I agree it could work we don't have tests for this either, so I'm not sure if some code in Infinispan would need to be changed to support the
SearchMappingfeature from Hibernate Search.
Feel free to open a JIRA issue about this, I'll look into it as it makes perfect sense! If you have time to create a test case as well I'll appreciate the help.
From the code in your first block it looks like you're setting indexing options after already having create the CacheManager.. that is very likely too late, all configuration should be defined before starting the CacheManager; the object returned by
getDefaultConfiguration()should be immutable: in Infinispan 5.1 with the new configuration you wouldn't be allowed to make this mistakes as those setters are not exposed anymore. Could you try 5.1 using the ConfigurationBuilder instead to set those indexing options on the SearchManager before it's started?
Thanks for the issue and the test!