コード例 #1
0
        /// <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);
        }
コード例 #2
0
 /// <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);
 }
コード例 #3
0
 public virtual void SetDefaultPhraseSlop(int defaultPhraseSlop)
 {
     QueryConfigHandler.Set(ConfigurationKeys.PHRASE_SLOP, defaultPhraseSlop);
 }