public class OLuceneQueryContext extends Object
Constructor and Description |
---|
OLuceneQueryContext(OCommandContext context,
org.apache.lucene.search.IndexSearcher searcher,
org.apache.lucene.search.Query query) |
OLuceneQueryContext(OCommandContext context,
org.apache.lucene.search.IndexSearcher searcher,
org.apache.lucene.search.Query query,
List<org.apache.lucene.search.SortField> sortFields) |
Modifier and Type | Method and Description |
---|---|
OLuceneQueryContext |
addHighlightFragment(String field,
org.apache.lucene.search.highlight.TextFragment[] fieldFragment) |
long |
deletedDocs(org.apache.lucene.search.Query query) |
Optional<OLuceneTxChanges> |
getChanges() |
OCommandContext |
getContext() |
Map<String,org.apache.lucene.search.highlight.TextFragment[]> |
getFragments() |
org.apache.lucene.search.Query |
getQuery() |
org.apache.lucene.search.IndexSearcher |
getSearcher() |
org.apache.lucene.search.Sort |
getSort() |
boolean |
isDeleted(org.apache.lucene.document.Document doc,
Object key,
OIdentifiable value) |
boolean |
isInTx() |
boolean |
isUpdated(org.apache.lucene.document.Document doc,
Object key,
OIdentifiable value) |
OLuceneQueryContext |
withChanges(OLuceneTxChanges changes) |
public OLuceneQueryContext(OCommandContext context, org.apache.lucene.search.IndexSearcher searcher, org.apache.lucene.search.Query query)
public OLuceneQueryContext(OCommandContext context, org.apache.lucene.search.IndexSearcher searcher, org.apache.lucene.search.Query query, List<org.apache.lucene.search.SortField> sortFields)
public boolean isInTx()
public OLuceneQueryContext withChanges(OLuceneTxChanges changes)
public OLuceneQueryContext addHighlightFragment(String field, org.apache.lucene.search.highlight.TextFragment[] fieldFragment)
public OCommandContext getContext()
public org.apache.lucene.search.Query getQuery()
public Optional<OLuceneTxChanges> getChanges()
public org.apache.lucene.search.Sort getSort()
public org.apache.lucene.search.IndexSearcher getSearcher()
public long deletedDocs(org.apache.lucene.search.Query query)
public boolean isUpdated(org.apache.lucene.document.Document doc, Object key, OIdentifiable value)
public boolean isDeleted(org.apache.lucene.document.Document doc, Object key, OIdentifiable value)
Copyright © 2009–2020 OrientDB. All rights reserved.