Apache Lucene.Net 2.4.0 Class Library API

QueryParser.SetDateResolution Method

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)}.

Overload List

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);

Sets the date resolution used by RangeQueries for a specific field.

public virtual void SetDateResolution(string,Resolution);

See Also

QueryParser Class | Lucene.Net.QueryParsers Namespace