/// <summary> /// Set the fields a query should be expanded to when the field is /// <c>null</c> /// </summary> /// <param name="fields">the fields used to expand the query</param> public virtual void SetMultiFields(string[] fields) { if (fields == null) { fields = new string[0]; } QueryConfigHandler.Set(ConfigurationKeys.MULTI_FIELDS, fields); }
/// <summary> /// Sets the default <see cref="DateTools.Resolution"/> used for certain field when /// no <see cref="DateTools.Resolution"/> is defined for this field. /// </summary> /// <param name="dateResolution">the default <see cref="DateTools.Resolution"/></param> // LUCENENET NOTE: This method is required by the ICommonQueryParserConfiguration interface public virtual void SetDateResolution(DateTools.Resolution dateResolution) { QueryConfigHandler.Set(ConfigurationKeys.DATE_RESOLUTION, dateResolution); }
public virtual void SetDefaultPhraseSlop(int defaultPhraseSlop) { QueryConfigHandler.Set(ConfigurationKeys.PHRASE_SLOP, defaultPhraseSlop); }