use of com.orientechnologies.lucene.query.OLuceneQueryContext in project orientdb by orientechnologies.
the class OLuceneFullTextIndexEngine method getResults.
private Set<OIdentifiable> getResults(Query query, OCommandContext context, Object key, OLuceneTxChanges changes) {
try {
IndexSearcher searcher = searcher();
OLuceneQueryContext queryContext = new OLuceneQueryContext(context, searcher, query).setChanges(changes);
if (facetManager.supportsFacets()) {
facetManager.addFacetContext(queryContext, key);
}
return OLuceneResultSetFactory.INSTANCE.create(this, queryContext);
} catch (IOException e) {
throw OIOException.wrapException(new OIndexException("Error reading from Lucene index"), e);
}
}
Aggregations