Uses of Enum Class
org.apache.lucene.document.DateTools.Resolution
Packages that use DateTools.Resolution
Package
Description
The logical representation of a
Document
for indexing and
searching.A simple query parser implemented with JavaCC.
Lucene Flexible Query Parser Implementation
Standard Lucene Query Configuration.
-
Uses of DateTools.Resolution in org.apache.lucene.document
Methods in org.apache.lucene.document that return DateTools.ResolutionModifier and TypeMethodDescriptionstatic DateTools.Resolution
Returns the enum constant of this class with the specified name.static DateTools.Resolution[]
DateTools.Resolution.values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods in org.apache.lucene.document with parameters of type DateTools.ResolutionModifier and TypeMethodDescriptionstatic 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. -
Uses of DateTools.Resolution in org.apache.lucene.queryparser.classic
Fields in org.apache.lucene.queryparser.classic declared as DateTools.ResolutionModifier and TypeFieldDescription(package private) DateTools.Resolution
QueryParserBase.dateResolution
Fields in org.apache.lucene.queryparser.classic with type parameters of type DateTools.ResolutionModifier and TypeFieldDescription(package private) Map<String,
DateTools.Resolution> QueryParserBase.fieldToDateResolution
Methods in org.apache.lucene.queryparser.classic that return DateTools.ResolutionModifier and TypeMethodDescriptionQueryParserBase.getDateResolution
(String fieldName) Returns the date resolution that is used by RangeQueries for the given field.Methods in org.apache.lucene.queryparser.classic with parameters of type DateTools.ResolutionModifier and TypeMethodDescriptionvoid
QueryParserBase.setDateResolution
(String fieldName, DateTools.Resolution dateResolution) Sets the date resolution used by RangeQueries for a specific field.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. -
Uses of DateTools.Resolution in org.apache.lucene.queryparser.flexible.standard
Methods in org.apache.lucene.queryparser.flexible.standard that return DateTools.ResolutionModifier and TypeMethodDescriptionStandardQueryParser.getDateResolution()
Returns the defaultDateTools.Resolution
used for certain field when noDateTools.Resolution
is defined for this field.Methods in org.apache.lucene.queryparser.flexible.standard that return types with arguments of type DateTools.ResolutionModifier and TypeMethodDescriptionStandardQueryParser.getDateResolutionMap()
Returns the field toDateTools.Resolution
map used to normalize each date field.Methods in org.apache.lucene.queryparser.flexible.standard with parameters of type DateTools.ResolutionModifier and TypeMethodDescriptionvoid
CommonQueryParserConfiguration.setDateResolution
(DateTools.Resolution dateResolution) Sets the defaultDateTools.Resolution
used for certain field when noDateTools.Resolution
is defined for this field.void
StandardQueryParser.setDateResolution
(DateTools.Resolution dateResolution) Sets the defaultDateTools.Resolution
used for certain field when noDateTools.Resolution
is defined for this field.Method parameters in org.apache.lucene.queryparser.flexible.standard with type arguments of type DateTools.ResolutionModifier and TypeMethodDescriptionvoid
StandardQueryParser.setDateResolutionMap
(Map<CharSequence, DateTools.Resolution> dateRes) Sets theDateTools.Resolution
used for each field -
Uses of DateTools.Resolution in org.apache.lucene.queryparser.flexible.standard.config
Fields in org.apache.lucene.queryparser.flexible.standard.config with type parameters of type DateTools.ResolutionModifier and TypeFieldDescriptionstatic final ConfigurationKey<DateTools.Resolution>
StandardQueryConfigHandler.ConfigurationKeys.DATE_RESOLUTION
Key used to set defaultDateTools.Resolution
.static final ConfigurationKey<Map<CharSequence,
DateTools.Resolution>> StandardQueryConfigHandler.ConfigurationKeys.FIELD_DATE_RESOLUTION_MAP
Key used to set a field toDateTools.Resolution
map that is used to normalize each date field value.