示例#1
0
 /// <summary>
 /// Creates a numeric range filter using <see cref="IFieldCache.GetSingles(Index.AtomicReader,string,FieldCache.ISingleParser,bool)"/>. This works with all
 /// <see cref="float"/> 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 newFloatRange() in Lucene
 /// </summary>
 public static FieldCacheRangeFilter <float?> NewSingleRange(string field, FieldCache.ISingleParser parser, float?lowerVal, float?upperVal, bool includeLower, bool includeUpper)
 {
     return(new AnonymousSingleFieldCacheRangeFilter(field, parser, lowerVal, upperVal, includeLower, includeUpper));
 }
示例#2
0
 public SingleFieldSource(string field, FieldCache.ISingleParser parser)
     : base(field)
 {
     this.m_parser = parser;
 }