public interface LuceneFieldManager extends Refreshable
SearchFieldConfiguration for lucene.Field,
NumericField,
Term,
NumericRangeQuery,
TermRangeQuery| Modifier and Type | Field and Description |
|---|---|
static String |
PROPERTY_PRECISION_STEP
The name of the
property for LuceneFieldManagerImpl.getPrecisionStep(). |
| Modifier and Type | Method and Description |
|---|---|
org.apache.lucene.document.Fieldable |
createField(String field,
Object value)
This method creates the
field for the given
field (name) and value. |
org.apache.lucene.search.Query |
createPhraseQuery(String field,
String value)
This method creates a phrase query.
|
org.apache.lucene.search.Query |
createRangeQuery(String field,
String minimum,
String maximum,
boolean minimumInclusive,
boolean maximumInclusive)
This method create a range
Query. |
org.apache.lucene.index.Term |
createTerm(String field,
Object value)
This method creates a
Term for the given field with
the given value. |
SearchConfigurationHolder<? extends SearchConfiguration> |
getConfigurationHolder()
This method gets the
SearchConfigurationHolder. |
int |
getPrecisionStep() |
boolean |
refresh()
Will update
getPrecisionStep() but not refresh
getConfigurationHolder(). |
static final String PROPERTY_PRECISION_STEP
property for LuceneFieldManagerImpl.getPrecisionStep().int getPrecisionStep()
org.apache.lucene.document.Fieldable createField(String field, Object value)
field for the given
field (name) and value.org.apache.lucene.index.Term createTerm(String field, Object value)
Term for the given field with
the given value.org.apache.lucene.search.Query createPhraseQuery(String field, String value)
org.apache.lucene.search.Query createRangeQuery(String field, String minimum, String maximum, boolean minimumInclusive, boolean maximumInclusive)
Query.field - is the name of the
field(s) to match.minimum - is the minimum or infimum value.maximum - is the maximum or supremum value.minimumInclusive - - true if the minimum is
included and matches, false if the minimum
is treated as infimum and only higher values will match.maximumInclusive - - true if the maximum is
included and matches, false if the maximum
is treated as supremum and only lower values will match.Query.NumericRangeQuery,
TermRangeQuerySearchConfigurationHolder<? extends SearchConfiguration> getConfigurationHolder()
SearchConfigurationHolder.SearchConfigurationHolder.boolean refresh()
getPrecisionStep() but not refresh
getConfigurationHolder().
This method refreshes the given object. This can be anything from reloading configuration to rebuilding the
internal state. An invocation of this method may be expensive and should only be invoked as needed. The
implementation of this method should be thread-safe if the object itself is to be used by separate consumers at
all.refresh in interface Refreshabletrue if something has changed, false otherwise. If the implementation can not determine the
change it should return true.Copyright © 2001–2016 mmm-Team. All rights reserved.