Apache Lucene.Net 2.4.0 Class Library API

QueryParser.SetDateResolution Method (Resolution)

Sets the default date resolution used by RangeQueries for fields for which no specific date resolutions has been set. Field specific resolutions can be set with {@link #SetDateResolution(String, DateTools.Resolution)}.

public virtual void SetDateResolution(
   Resolution dateResolution
);

Parameters

dateResolution
the default date resolution to set

See Also

QueryParser Class | Lucene.Net.QueryParsers Namespace | QueryParser.SetDateResolution Overload List