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.engine.impl.lucene |
Contains the implementation of search-engine using apache lucene.
|
Modifier and Type | Interface and Description |
---|---|
interface |
ComplexSearchQuery
This is the interface of a query that combines other queries.
|
Modifier and Type | Method and Description |
---|---|
SearchQuery |
SearchQueryBuilder.createPhraseQuery(String field,
String phrase)
|
SearchQuery |
SearchQueryBuilder.createRangeQuery(String field,
String minimum,
String maximum,
boolean minimumInclusive,
boolean maximumInclusive)
This method creates a
SearchQuery for a range of values. |
SearchQuery |
SearchQueryBuilder.createWordQuery(String field,
String word)
|
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. |
Modifier and Type | Method and Description |
---|---|
void |
ComplexSearchQuery.addExcludingQuery(SearchQuery subQuery)
This method adds the given
subQuery as excluding sub-query. |
void |
ComplexSearchQuery.addOptionalQuery(SearchQuery subQuery)
This method adds the given
subQuery as optional sub-query. |
void |
ComplexSearchQuery.addRequiredQuery(SearchQuery subQuery)
This method adds the given
subQuery as required sub-query. |
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 | Method and Description |
---|---|
protected SearchQuery |
AbstractSearchQueryBuilder.createNullQuery()
This method creates (or gets) a query that matches anything.
|
private SearchQuery |
AbstractSearchQueryBuilder.parseStandardClause(CharSequenceScanner parser,
String defaultField,
int depth,
SearchQueryBuilderOptions options) |
private SearchQuery |
AbstractSearchQueryBuilder.parseStandardQuery(CharSequenceScanner parser,
SearchQueryBuilderOptions options,
String defaultProperty,
int depth) |
SearchQuery |
AbstractSearchQueryBuilder.parseStandardQuery(String query)
This method parses the given
query string in the standard query language of this
specification. |
SearchQuery |
AbstractSearchQueryBuilder.parseStandardQuery(String query,
SearchQueryBuilderOptions options)
This method parses the given
query string in the standard query language of this
specification. |
Modifier and Type | Class and Description |
---|---|
class |
AbstractLuceneSearchQuery
This is the implementation of the
SearchQuery interface using lucene as
underlying search-engine. |
class |
LuceneComplexSearchQuery
This is the implementation of the
SearchQuery interface using lucene as
underlying search-engine. |
class |
LuceneSearchQuery
This is the implementation of the
SearchQuery interface using lucene as
underlying search-engine. |
Modifier and Type | Method and Description |
---|---|
protected SearchQuery |
LuceneSearchQueryBuilder.createNullQuery()
This method creates (or gets) a query that matches anything.
|
SearchQuery |
LuceneSearchQueryBuilder.createPhraseQuery(String field,
String phrase)
|
SearchQuery |
LuceneSearchQueryBuilder.createRangeQuery(String field,
String minimum,
String maximum,
boolean minimumInclusive,
boolean maximumInclusive)
This method creates a
SearchQuery for a range of values. |
SearchQuery |
LuceneSearchQueryBuilder.createWordQuery(String field,
String word)
|
Modifier and Type | Method and Description |
---|---|
void |
LuceneComplexSearchQuery.addExcludingQuery(SearchQuery subQuery)
This method adds the given
subQuery as excluding sub-query. |
void |
LuceneComplexSearchQuery.addOptionalQuery(SearchQuery subQuery)
This method adds the given
subQuery as optional sub-query. |
private void |
LuceneComplexSearchQuery.addQuery(org.apache.lucene.search.BooleanClause.Occur occur,
SearchQuery subQuery)
This method adds the given
subQuery using the given
occur . |
void |
LuceneComplexSearchQuery.addRequiredQuery(SearchQuery subQuery)
This method adds the given
subQuery as required sub-query. |
protected org.apache.lucene.search.Query |
LuceneSearchEngine.getLuceneQuery(SearchQuery query)
This method gets the lucene
Query for the given query . |
SearchResultPage |
LuceneSearchEngine.search(SearchQuery query,
int hitsPerPage)
This method performs an initial search for a given
query and returns the first
SearchResultPage . |
SearchResultPage |
LuceneSearchEngine.search(SearchQuery query,
int hitsPerPage,
int pageIndex,
int totalHitCount)
This method performs a search for a subsequent
SearchResultPage of an
initial search . |
Copyright © 2001–2016 mmm-Team. All rights reserved.