public EnumFieldSource(string field, FieldCache.IInt32Parser parser, IDictionary <int?, string> enumIntToStringMap, IDictionary <string, int?> enumStringToIntMap) : base(field) { this.parser = parser; this.enumIntToStringMap = enumIntToStringMap; this.enumStringToIntMap = enumStringToIntMap; }
/// <summary> /// Creates a numeric range filter using <see cref="IFieldCache.GetInt32s(Index.AtomicReader,string,FieldCache.IInt32Parser,bool)"/>. This works with all /// <see cref="int"/> fields containing exactly one numeric term in the field. The range can be half-open by setting one /// of the values to <c>null</c>. /// <para/> /// NOTE: this was newIntRange() in Lucene /// </summary> public static FieldCacheRangeFilter <int?> NewInt32Range(string field, FieldCache.IInt32Parser parser, int?lowerVal, int?upperVal, bool includeLower, bool includeUpper) { return(new AnonymousInt32FieldCacheRangeFilter(field, parser, lowerVal, upperVal, includeLower, includeUpper)); }
public Int32FieldSource(string field, FieldCache.IInt32Parser parser) : base(field) { this.parser = parser; }