Package | Description |
---|---|
org.apache.lucene.document |
Misc extensions of the Document/Field API.
|
org.apache.lucene.queryparser.classic |
A simple query parser implemented with JavaCC.
|
org.apache.lucene.queryparser.flexible.standard |
Implementation of the Lucene classic query parser using the flexible query parser frameworks
|
org.apache.lucene.queryparser.flexible.standard.config |
Standard Lucene Query Configuration.
|
Modifier and Type | Method and Description |
---|---|
static DateTools.Resolution |
DateTools.Resolution.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DateTools.Resolution[] |
DateTools.Resolution.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
static String |
DateTools.dateToString(Date date,
DateTools.Resolution resolution)
Converts a Date to a string suitable for indexing.
|
static Date |
DateTools.round(Date date,
DateTools.Resolution resolution)
Limit a date's resolution.
|
static long |
DateTools.round(long time,
DateTools.Resolution resolution)
Limit a date's resolution.
|
static String |
DateTools.timeToString(long time,
DateTools.Resolution resolution)
Converts a millisecond time to a string suitable for indexing.
|
Modifier and Type | Method and Description |
---|---|
DateTools.Resolution |
QueryParserBase.getDateResolution(String fieldName)
Returns the date resolution that is used by RangeQueries for the given field.
|
Modifier and Type | Method and Description |
---|---|
void |
QueryParserBase.setDateResolution(DateTools.Resolution dateResolution)
Sets the default date resolution used by RangeQueries for fields for which no
specific date resolutions has been set.
|
void |
QueryParserBase.setDateResolution(String fieldName,
DateTools.Resolution dateResolution)
Sets the date resolution used by RangeQueries for a specific field.
|
Modifier and Type | Method and Description |
---|---|
DateTools.Resolution |
StandardQueryParser.getDateResolution()
Returns the default
DateTools.Resolution used for certain field when
no DateTools.Resolution is defined for this field. |
Modifier and Type | Method and Description |
---|---|
Map<CharSequence,DateTools.Resolution> |
StandardQueryParser.getDateResolutionMap()
Returns the field to
DateTools.Resolution map used to normalize each date field. |
Modifier and Type | Method and Description |
---|---|
void |
StandardQueryParser.setDateResolution(DateTools.Resolution dateResolution)
Sets the default
DateTools.Resolution used for certain field when
no DateTools.Resolution is defined for this field. |
void |
CommonQueryParserConfiguration.setDateResolution(DateTools.Resolution dateResolution)
Sets the default
DateTools.Resolution used for certain field when
no DateTools.Resolution is defined for this field. |
Modifier and Type | Method and Description |
---|---|
void |
StandardQueryParser.setDateResolution(Map<CharSequence,DateTools.Resolution> dateRes)
Deprecated.
this method was renamed to
StandardQueryParser.setDateResolutionMap(Map) |
void |
StandardQueryParser.setDateResolutionMap(Map<CharSequence,DateTools.Resolution> dateRes)
Sets the
DateTools.Resolution used for each field |
Modifier and Type | Field and Description |
---|---|
static ConfigurationKey<DateTools.Resolution> |
StandardQueryConfigHandler.ConfigurationKeys.DATE_RESOLUTION
Key used to set default
DateTools.Resolution . |
static ConfigurationKey<Map<CharSequence,DateTools.Resolution>> |
StandardQueryConfigHandler.ConfigurationKeys.FIELD_DATE_RESOLUTION_MAP
Key used to set a field to
DateTools.Resolution map that is used
to normalize each date field value. |
Copyright © 2000-2015 The Apache Software Foundation. All Rights Reserved.