Package | Description |
---|---|
net.sf.mmm.search.engine.api |
Provides the API of the search-engine.
|
net.sf.mmm.search.engine.base |
Contains the base-implementation of search-engine.
|
net.sf.mmm.search.indexer.api |
Provides the API of the Search-Indexer.
|
net.sf.mmm.search.indexer.base |
Contains the base-implementation of the
Search-Indexer API . |
net.sf.mmm.search.indexer.base.config |
Contains the base-implementation of the
Search-Indexer Configuration API . |
net.sf.mmm.search.indexer.impl.lucene |
Contains the implementation of the
Search-Indexer API using apache lucene. |
Modifier and Type | Method and Description |
---|---|
SearchEntry |
SearchEngine.getEntry(String entryId)
|
SearchQuery |
SearchQueryBuilder.parseStandardQuery(String query)
This method parses the given
query string in the standard query language of this
specification. |
SearchQuery |
SearchQueryBuilder.parseStandardQuery(String query,
SearchQueryBuilderOptions options)
This method parses the given
query string in the standard query language of this
specification. |
SearchResultPage |
SearchEngine.search(SearchQuery query,
int hitsPerPage)
This method performs an initial search for a given
query and returns the first
SearchResultPage . |
SearchResultPage |
SearchEngine.search(SearchQuery query,
int hitsPerPage,
int pageIndex,
int totalHitCount)
This method performs a search for a subsequent
SearchResultPage of an
initial search . |
Modifier and Type | Class and Description |
---|---|
class |
SearchQueryParseException
This is the generic exception if query-parsing failed.
|
Modifier and Type | Method and Description |
---|---|
SearchQuery |
AbstractSearchQueryBuilder.parseStandardQuery(String query)
This method parses the given
query string in the standard query language of this
specification. |
Modifier and Type | Method and Description |
---|---|
void |
SearchIndexer.add(MutableSearchEntry entry)
This method adds the given
entry to the search-index. |
void |
SearchIndexer.close()
This method closes the search index.
|
SearchIndexer |
SearchIndexerBuilder.createIndexer(SearchIndexerConfigurationHolder configurationHolder)
This method opens a new
SearchIndexer . |
SearchIndexer |
SearchIndexerBuilder.createIndexer(SearchIndexerConfigurationHolder configurationHolder,
SearchIndexerOptions options)
This method opens a new
SearchIndexer . |
SearchIndexer |
SearchIndexerBuilder.createIndexer(String dataSource,
SearchIndexerOptions options)
This method opens a new
SearchIndexer . |
void |
SearchIndexer.flush()
This method flushes the search index what ensures that all changes are
written to the index.
|
void |
SearchIndexer.optimize()
This method optimizes the search index.
|
boolean |
SearchIndexer.remove(SearchHit hit)
This method removes an
existing entry
identified by the given hit . |
int |
SearchIndexer.remove(String field,
Object value)
This method removes all
existing entries
identified by the given value at the given
property from the search-index. |
int |
SearchIndexer.removeByCustumId(String cid)
This method removes an
existing entry
identified by the given uri from the search-index. |
boolean |
SearchIndexer.removeById(Long entryId)
|
int |
SearchIndexer.removeByUri(String uri,
String sourceId)
This method removes an
existing entry
identified by the given uri from the search-index. |
int |
SearchIndexer.update(MutableSearchEntry entry)
This method updates the given
entry in the search-index. |
Modifier and Type | Class and Description |
---|---|
class |
SearchAddFailedException
This is the exception thrown from
SearchIndexer if the given entry
could NOT be added. |
class |
SearchEntryIdImmutableException
This is the exception thrown if the user tried to modify the
ID of a SearchEntry . |
class |
SearchRemoveFailedException
This is the exception thrown from
SearchIndexer if the given entry
has no ID set. |
class |
SearchUpdateMissingIdException
This is the exception thrown from
SearchIndexer.update(net.sf.mmm.search.indexer.api.MutableSearchEntry)
if the given entry has no ID set. |
Modifier and Type | Method and Description |
---|---|
SearchIndexer |
AbstractSearchIndexerBuilder.createIndexer(SearchIndexerConfigurationHolder configurationHolder)
This method opens a new
SearchIndexer . |
SearchIndexer |
AbstractSearchIndexerBuilder.createIndexer(String dataSource,
SearchIndexerOptions options)
This method opens a new
SearchIndexer . |
boolean |
AbstractSearchIndexer.remove(SearchHit hit)
This method removes an
existing entry
identified by the given hit . |
int |
AbstractSearchIndexer.removeByCustumId(String uid)
This method removes an
existing entry
identified by the given uri from the search-index. |
boolean |
AbstractSearchIndexer.removeById(Long id)
|
int |
AbstractSearchIndexer.removeByUri(String uri,
String sourceId)
This method removes an
existing entry
identified by the given uri from the search-index. |
int |
AbstractSearchIndexer.update(MutableSearchEntry entry)
This method updates the given
entry in the search-index. |
Modifier and Type | Method and Description |
---|---|
void |
SearchIndexerConfigurationLoaderImpl.validateConfiguration(SearchIndexerConfiguration configuration)
This method validates the given
configuration according to logical constraints. |
Modifier and Type | Method and Description |
---|---|
void |
LuceneSearchIndexer.add(MutableSearchEntry entry)
This method adds the given
entry to the search-index. |
protected void |
LuceneSearchIndexer.add(MutableSearchEntry entry,
Long id) |
SearchIndexer |
LuceneSearchIndexerBuilder.createIndexer(SearchIndexerConfigurationHolder configurationHolder,
SearchIndexerOptions options)
This method opens a new
SearchIndexer . |
void |
LuceneSearchIndexer.flush()
This method flushes the search index what ensures that all changes are
written to the index.
|
void |
LuceneSearchIndexer.optimize()
This method optimizes the search index.
|
int |
LuceneSearchIndexer.remove(String field,
Object value)
This method removes all
existing entries
identified by the given value at the given
property from the search-index. |
Copyright © 2001–2016 mmm-Team. All rights reserved.