public interface SearchEngine
Modifier and Type | Method and Description |
---|---|
void |
addHit(Document document,
InputStream content)
Adds a new hit to the index
|
void |
addHit(Document document,
String content)
Adds a new Hit into the index
|
String |
check()
Launch the check on the Index
|
void |
close()
Close all indexing operations, shuts down the engine.
|
void |
deleteHit(long id)
Deletes an hit in the index of the search engine.
|
void |
deleteHits(Collection<Long> ids)
Removed all passed hits from the index
|
void |
dropIndexes()
Drops the fulltext index
|
long |
getCount()
Returns the number of indexed documents in all indexes.
|
Hit |
getHit(long id) |
Object |
getServer()
Service method to get access from the internal core
|
void |
init()
To be called on the context startup, this method creates all indexes and
unlock the existing ones
|
boolean |
isLocked()
Check if at least one index is locked
|
void |
optimize()
Launch the index optimization and triggers the build of spellcheck
dictionary
|
Hits |
search(String expression,
String[] filters,
String expressionLanguage,
Integer rows)
Search for hits.
|
void |
unlock()
This method can unlock a locked index.
|
void addHit(Document document, String content) throws Exception
document
- content
- Exception
void addHit(Document document, InputStream content) throws Exception
content
- Stream of the document's filedocument
- The document that we want to addException
void optimize()
String check()
void deleteHit(long id)
id
- - id of the hitvoid deleteHits(Collection<Long> ids)
ids
- Collection of hit identifiersHit getHit(long id)
Hits search(String expression, String[] filters, String expressionLanguage, Integer rows)
void close()
void unlock()
boolean isLocked()
long getCount()
void dropIndexes()
void init()
Object getServer()
Copyright © 2008-2014 Logical Objects. All Rights Reserved.