Package | Description |
---|---|
org.apache.lucene.document |
The logical representation of a
Document for indexing and searching. |
org.apache.lucene.queryParser |
A simple query parser implemented with JavaCC.
|
Modifier and Type | Method | 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 | Description |
---|---|---|
static String |
DateTools.dateToString(Date date,
DateTools.Resolution resolution) |
Converts a Date to a string suitable for indexing.
|
static long |
DateTools.round(long time,
DateTools.Resolution resolution) |
Limit a date's resolution.
|
static Date |
DateTools.round(Date date,
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 | Description |
---|---|---|
DateTools.Resolution |
QueryParser.getDateResolution(String fieldName) |
Returns the date resolution that is used by RangeQueries for the given field.
|
Modifier and Type | Method | Description |
---|---|---|
void |
QueryParser.setDateResolution(String fieldName,
DateTools.Resolution dateResolution) |
Sets the date resolution used by RangeQueries for a specific field.
|
void |
QueryParser.setDateResolution(DateTools.Resolution dateResolution) |
Sets the default date resolution used by RangeQueries for fields for which no
specific date resolutions has been set.
|
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.