I am using modeshape 4.1 with external file system source and ı want to search on saved documents using JCR_SQL2, ı have just added repository configuration in standalone-modeshape.xml file as
<text-extractors>
<text-extractor name="tika-extractor" classname="tika" module="org.modeshape.extractor.tika"/>
</text-extractors>
but ı am getting an exception as
org.infinispan.persistence.spi.PersistenceException: java.io.StreamCorruptedException: Unexpected byte found when reading an object
I use file system connector and ı am getting exception while nodeIter.hasNext() part
try {
String jql="SELECT * FROM [nt:file] WHERE CONTAINS(*,'cats')";
QueryManager queryManager=session.getWorkspace().getQueryManager();
Query query= queryManager.createQuery(jql,Query.JCR_SQL2);
QueryResult queryResult=query.execute();
NodeIterator nodeIter=queryResult.getNodes();
while(nodeIter.hasNext()){
Node node=nodeIter.nextNode();
String asd=node.getPath();
}
} catch (Exception e) {
e.printStackTrace();
}
Best Regards.