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)
.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)
void begin() throws IOException
IOException
void commit() throws IOException
IOException
void rollback() throws IOException
IOException
void addStatement(Statement statement) throws IOException
IOException
void removeStatement(Statement statement) throws IOException
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
- sail
- - the underlying native sail where to read the missing triples from after deletionSailException
IOException
void addDocuments(Resource subject, List<Statement> statements) throws IOException
statements
- the statements that make up the resourceIOException
void clear() throws IOException
IOException
Copyright © 2015-2019 Eclipse Foundation. All Rights Reserved.