예제 #1
0
 public DoubleFieldSource(string field, FieldCache.IDoubleParser parser)
     : base(field)
 {
     this.m_parser = parser;
 }
예제 #2
0
 /// <summary>
 /// Creates a numeric range filter using <see cref="IFieldCache.GetDoubles(Index.AtomicReader,string,FieldCache.IDoubleParser,bool)"/>. This works with all
 /// <see cref="double"/> 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>.
 /// </summary>
 public static FieldCacheRangeFilter <double?> NewDoubleRange(string field, FieldCache.IDoubleParser parser, double?lowerVal, double?upperVal, bool includeLower, bool includeUpper)
 {
     return(new AnonymousDoubleFieldCacheRangeFilter(field, parser, lowerVal, upperVal, includeLower, includeUpper));
 }
예제 #3
0
 public DoubleFieldSource(string field, FieldCache.IDoubleParser parser)
     : base(field)
 {
     this.parser = parser;
 }