Class OLuceneFullTextIndexEngine
java.lang.Object
com.orientechnologies.lucene.engine.OLuceneIndexEngineAbstract
com.orientechnologies.lucene.engine.OLuceneFullTextIndexEngine
- All Implemented Interfaces:
OLuceneIndexEngine,OBaseIndexEngine,OIndexEngine,OFreezableStorageComponent
-
Field Summary
Fields inherited from class com.orientechnologies.lucene.engine.OLuceneIndexEngineAbstract
collectionFields, indexDefinition, KEY, metadata, name, RID, versionFields inherited from interface com.orientechnologies.orient.core.index.engine.OIndexEngine
VERSION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.lucene.document.DocumentbuildDocument(Object key, OIdentifiable value) org.apache.lucene.search.QuerybuildQuery(Object maybeQuery) org.apache.lucene.index.IndexWritercreateIndexWriter(org.apache.lucene.store.Directory directory) getInTx(Object key, OLuceneTxChanges changes) intbooleanvoidinit(OIndexMetadata im) iterateEntriesBetween(Object rangeFrom, boolean fromInclusive, Object rangeTo, boolean toInclusive, boolean ascSortOrder, IndexEngineValuesTransformer transformer) iterateEntriesMajor(Object fromKey, boolean isInclusive, boolean ascSortOrder, IndexEngineValuesTransformer transformer) iterateEntriesMinor(Object toKey, boolean isInclusive, boolean ascSortOrder, IndexEngineValuesTransformer transformer) voidonRecordAddedToResultSet(OLuceneQueryContext queryContext, OContextualRecordId recordId, org.apache.lucene.document.Document ret, org.apache.lucene.search.ScoreDoc score) voidput(OAtomicOperation atomicOperation, Object key, ORID value) voidput(OAtomicOperation atomicOperation, Object key, Object value) booleanremove(OAtomicOperation atomicOperation, Object key) booleanremove(OAtomicOperation atomicOperation, Object key, ORID value) voidupdate(OAtomicOperation atomicOperation, Object key, OIndexKeyUpdater<Object> updater) voidbooleanvalidatedPut(OAtomicOperation atomicOperation, Object key, ORID value, IndexEngineValidator<Object, ORID> validator) Puts the given value under the given key into this index engine.Methods inherited from class com.orientechnologies.lucene.engine.OLuceneIndexEngineAbstract
acquireAtomicExclusiveLock, addDocument, buildTxChanges, clear, close, create, delete, deleteQuery, descStream, flush, freeze, getDatabase, getId, getIndexNameByKey, getName, indexAnalyzer, indexName, isCollectionIndex, keyStream, load, openIfClosed, queryAnalyzer, release, release, remove, remove, searcher, size, sizeInTx, stream, updateLastAccessMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.orientechnologies.orient.core.index.engine.OBaseIndexEngine
applyTxChanges, hasRidBagTreesSupportMethods inherited from interface com.orientechnologies.orient.core.index.engine.OIndexEngine
getEngineAPIVersion
-
Constructor Details
-
OLuceneFullTextIndexEngine
-
-
Method Details
-
init
- Specified by:
initin interfaceOBaseIndexEngine- Overrides:
initin classOLuceneIndexEngineAbstract
-
createIndexWriter
public org.apache.lucene.index.IndexWriter createIndexWriter(org.apache.lucene.store.Directory directory) throws IOException - Specified by:
createIndexWriterin classOLuceneIndexEngineAbstract- Throws:
IOException
-
onRecordAddedToResultSet
public void onRecordAddedToResultSet(OLuceneQueryContext queryContext, OContextualRecordId recordId, org.apache.lucene.document.Document ret, org.apache.lucene.search.ScoreDoc score) - Specified by:
onRecordAddedToResultSetin interfaceOLuceneIndexEngine- Specified by:
onRecordAddedToResultSetin classOLuceneIndexEngineAbstract
-
remove
-
remove
-
get
-
update
-
put
-
put
-
validatedPut
public boolean validatedPut(OAtomicOperation atomicOperation, Object key, ORID value, IndexEngineValidator<Object, ORID> validator) Description copied from interface:OIndexEnginePuts the given value under the given key into this index engine. Validates the operation using the provided validator.key- the key to put the value under.value- the value to put.validator- the operation validator.- Returns:
trueif the validator allowed the put,falseotherwise.- See Also:
-
iterateEntriesBetween
-
iterateEntriesMajor
-
iterateEntriesMinor
-
hasRangeQuerySupport
public boolean hasRangeQuerySupport() -
updateUniqueIndexVersion
-
getUniqueIndexVersion
-
buildDocument
-
buildQuery
-
getInTx
-