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.
|
void |
addRemoveStatements(Collection<Statement> added,
Collection<Statement> removed)
Add many statements at the same time, remove many statements at the same time.
|
void |
addStatement(Statement statement)
Indexes the specified Statement.
|
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.
|
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.
|
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)
void begin()
throws IOException
IOExceptionvoid commit()
throws IOException
IOExceptionvoid rollback()
throws IOException
IOExceptionvoid addStatement(Statement statement) throws IOException
IOExceptionvoid removeStatement(Statement statement) throws IOException
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 - sail - - the underlying native sail where to read the missing triples from after deletionSailExceptionIOExceptionvoid addDocuments(Resource subject, List<Statement> statements) throws IOException
statements - the statements that make up the resourceIOExceptionvoid clear()
throws IOException
IOExceptionCopyright © 2015-2020 Eclipse Foundation. All Rights Reserved.