3.1.5.2. Fuzzy searches

Warning

You are looking at documentation for an older release. Not what you want? See the current release documentation.

JCR supports such features as Lucene Fuzzy Searches Apache Lucene - Query Parser Syntax.

To use it, you have to form a query like the one described below:

QueryManager qman = session.getWorkspace().getQueryManager();

Query q = qman.createQuery("select * from nt:base where contains(field, 'ccccc~')", Query.SQL);
QueryResult res = q.execute();
Copyright ©. All rights reserved. eXo Platform SAS
blog comments powered byDisqus