public interface SearchIndex
LuceneSail| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(Literal literal)
Returns whether the provided literal is accepted by the LuceneIndex to be indexed.
|
void |
addDocuments(Resource subject,
List<Statement> statements)
Add a complete Lucene Document based on these statements.Do not search for an existing document with the same
subject id.
|
void |
addRemoveStatements(Collection<Statement> added,
Collection<Statement> removed)
Add many statements at the same time, remove many statements at the same time.Ordering by resource has to be done
inside this method.
|
void |
addStatement(Statement statement)
Indexes the specified Statement.This should be called from within a begin-commit-rollback block.
|
void |
begin()
Begins a transaction.
|
void |
beginReading()
Deprecated.
|
void |
clear()
Clears the indexes.
|
void |
clearContexts(Resource... contexts)
This should be called from within a begin-commit-rollback block.
|
void |
commit()
Commits any changes done to the LuceneIndex since the last commit.The semantics is synchronous to
SailConnection.commit(), i.e.
|
void |
endReading()
Deprecated.
|
Collection<BindingSet> |
evaluate(QuerySpec query)
Deprecated.
|
Collection<BindingSet> |
evaluate(SearchQueryEvaluator query) |
void |
initialize(Properties parameters) |
boolean |
isGeoField(String propertyName)
Returns true if the given property contains a geometry.
|
void |
removeStatement(Statement statement)
Removes the specified Statement from the indexes.This should be called from within a begin-commit-rollback
block.
|
void |
rollback() |
void |
shutDown() |
void initialize(Properties parameters) throws Exception
Exception@Deprecated Collection<BindingSet> evaluate(QuerySpec query) throws SailException
evaluate(SearchQueryEvaluator query).SailExceptionCollection<BindingSet> evaluate(SearchQueryEvaluator query) throws SailException
SailException@Deprecated void beginReading() throws IOException
IOException@Deprecated void endReading() throws IOException
IOExceptionvoid shutDown()
throws IOException
IOExceptionboolean accept(Literal literal)
literal - the literal to be acceptedboolean isGeoField(String propertyName)
propertyName - void begin()
throws IOException
IOExceptionvoid commit()
throws IOException
IOExceptionvoid rollback()
throws IOException
IOExceptionvoid addStatement(Statement statement) throws IOException
statement - IOExceptionvoid removeStatement(Statement statement) throws IOException
statement - IOExceptionvoid addRemoveStatements(Collection<Statement> added, Collection<Statement> removed) throws IOException
added - all added statements, can have multiple subjectsremoved - all removed statements, can have multiple subjectsIOExceptionvoid clearContexts(Resource... contexts) throws IOException
contexts - IOExceptionvoid addDocuments(Resource subject, List<Statement> statements) throws IOException
subject - statements - the statements that make up the resourceIOExceptionvoid clear()
throws IOException
IOExceptionCopyright © 2015-2022 Eclipse Foundation. All Rights Reserved.