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)
.SailException
Collection<BindingSet> evaluate(SearchQueryEvaluator query) throws SailException
SailException
@Deprecated void beginReading() throws IOException
IOException
@Deprecated void endReading() throws IOException
IOException
void shutDown() throws IOException
IOException
boolean accept(Literal literal)
literal
- the literal to be acceptedboolean isGeoField(String propertyName)
propertyName
- void begin() throws IOException
IOException
void commit() throws IOException
IOException
void rollback() throws IOException
IOException
void addStatement(Statement statement) throws IOException
statement
- IOException
void removeStatement(Statement statement) throws IOException
statement
- IOException
void addRemoveStatements(Collection<Statement> added, Collection<Statement> removed) throws IOException
added
- all added statements, can have multiple subjectsremoved
- all removed statements, can have multiple subjectsIOException
void clearContexts(Resource... contexts) throws IOException
contexts
- IOException
void addDocuments(Resource subject, List<Statement> statements) throws IOException
subject
- statements
- the statements that make up the resourceIOException
void clear() throws IOException
IOException
Copyright © 2015-2022 Eclipse Foundation. All Rights Reserved.