[
https://issues.jboss.org/browse/ISPN-1949?page=com.atlassian.jira.plugin....
]
Galder Zamarreño updated ISPN-1949:
-----------------------------------
Status: Resolved (was: Pull Request Sent)
Resolution: Done
Allow non-indexed values in indexed caches
------------------------------------------
Key: ISPN-1949
URL:
https://issues.jboss.org/browse/ISPN-1949
Project: Infinispan
Issue Type: Feature Request
Components: Querying
Reporter: Sanne Grinovero
Assignee: Sanne Grinovero
Fix For: 5.2.0.ALPHA1, 5.2.0.FINAL
Inserting a non-indexed type in an indexed cache is currently not allowed, producing an
exception:
{code}
org.hibernate.search.SearchException: Unable to perform work. Entity Class is not
@Indexed nor hosts @ContainedIn: class java.lang.String
at
org.hibernate.search.backend.impl.TransactionalWorker.performWork(TransactionalWorker.java:75)
at
org.infinispan.query.backend.QueryInterceptor.updateIndexes(QueryInterceptor.java:220)
at
org.infinispan.query.backend.QueryInterceptor.visitPutKeyValueCommand(QueryInterceptor.java:126)
at
org.infinispan.commands.write.PutKeyValueCommand.acceptVisitor(PutKeyValueCommand.java:76)
at
org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:116)
at
org.infinispan.interceptors.locking.OptimisticLockingInterceptor.visitPutKeyValueCommand(OptimisticLockingInterceptor.java:111)
at
org.infinispan.commands.write.PutKeyValueCommand.acceptVisitor(PutKeyValueCommand.java:76)
at
org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:116)
at
org.infinispan.interceptors.base.CommandInterceptor.handleDefault(CommandInterceptor.java:130)
at
org.infinispan.commands.AbstractVisitor.visitPutKeyValueCommand(AbstractVisitor.java:61)
at
org.infinispan.commands.write.PutKeyValueCommand.acceptVisitor(PutKeyValueCommand.java:76)
at
org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:116)
at
org.infinispan.interceptors.TxInterceptor.enlistWriteAndInvokeNext(TxInterceptor.java:211)
at
org.infinispan.interceptors.TxInterceptor.visitPutKeyValueCommand(TxInterceptor.java:149)
at
org.infinispan.commands.write.PutKeyValueCommand.acceptVisitor(PutKeyValueCommand.java:76)
at
org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:116)
at
org.infinispan.interceptors.InvocationContextInterceptor.handleAll(InvocationContextInterceptor.java:130)
at
org.infinispan.interceptors.InvocationContextInterceptor.handleDefault(InvocationContextInterceptor.java:89)
at
org.infinispan.commands.AbstractVisitor.visitPutKeyValueCommand(AbstractVisitor.java:61)
at
org.infinispan.commands.write.PutKeyValueCommand.acceptVisitor(PutKeyValueCommand.java:76)
at org.infinispan.interceptors.InterceptorChain.invoke(InterceptorChain.java:345)
at org.infinispan.CacheImpl.executeCommandAndCommitIfNeeded(CacheImpl.java:944)
at org.infinispan.CacheImpl.put(CacheImpl.java:657)
at org.infinispan.CacheImpl.put(CacheImpl.java:649)
at org.infinispan.CacheSupport.put(CacheSupport.java:52)
at
org.infinispan.query.api.NonIndexedValuesTest.testReplaceSimpleSearchable(NonIndexedValuesTest.java:48)
{code}
This requires changes in the SPI with Hibernate Search:
https://hibernate.onjira.com/browse/HSEARCH-1077
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira