use of com.orientechnologies.lucene.collections.OLuceneCompositeKey in project orientdb by orientechnologies.
the class OLuceneFullTextIndexEngine method getInTx.
@Override
public Object getInTx(Object key, OLuceneTxChanges changes) {
try {
Query q = queryBuilder.query(index, key, queryAnalyzer());
OCommandContext context = null;
if (key instanceof OLuceneCompositeKey) {
context = ((OLuceneCompositeKey) key).getContext();
}
return getResults(q, context, key, changes);
} catch (ParseException e) {
throw OException.wrapException(new OIndexEngineException("Error parsing lucene query"), e);
}
}
Aggregations