Example #1
0
 /// <summary> Creates a numeric range query using {@link FieldCache#GetShorts(IndexReader,String,FieldCache.ShortParser)}. This works with all
 /// short fields containing exactly one numeric term in the field. The range can be half-open by setting one
 /// of the values to <code>null</code>.
 /// </summary>
 public static FieldCacheRangeFilter NewShortRange(System.String field, Mono.Lucene.Net.Search.ShortParser parser, System.ValueType lowerVal, System.ValueType upperVal, bool includeLower, bool includeUpper)
 {
     return(new AnonymousClassFieldCacheRangeFilter2(field, parser, lowerVal, upperVal, includeLower, includeUpper));
 }
Example #2
0
 internal ShortComparator(int numHits, System.String field, Mono.Lucene.Net.Search.Parser parser)
 {
     values      = new short[numHits];
     this.field  = field;
     this.parser = (ShortParser)parser;
 }
Example #3
0
		/// <summary> Create a cached short field source with a specific string-to-short parser. </summary>
		public ShortFieldSource(System.String field, Mono.Lucene.Net.Search.ShortParser parser):base(field)
		{
			this.parser = parser;
		}
Example #4
0
 /// <summary> Create a cached short field source with a specific string-to-short parser. </summary>
 public ShortFieldSource(System.String field, Mono.Lucene.Net.Search.ShortParser parser) : base(field)
 {
     this.parser = parser;
 }
Example #5
0
 /// <summary> Returns a comparator for sorting hits according to a field containing shorts.</summary>
 /// <param name="reader"> Index to use.
 /// </param>
 /// <param name="fieldname"> Fieldable containing integer values.
 /// </param>
 /// <returns>  Comparator for sorting hits.
 /// </returns>
 /// <throws>  IOException If an error occurs reading the index. </throws>
 internal static ScoreDocComparator comparatorShort(IndexReader reader, System.String fieldname, Mono.Lucene.Net.Search.ShortParser parser)
 {
     System.String field      = String.Intern(fieldname);
     short[]       fieldOrder = Mono.Lucene.Net.Search.FieldCache_Fields.DEFAULT.GetShorts(reader, field, parser);
     return(new AnonymousClassScoreDocComparator1(fieldOrder));
 }
Example #6
0
			internal ShortComparator(int numHits, System.String field, Mono.Lucene.Net.Search.Parser parser)
			{
				values = new short[numHits];
				this.field = field;
				this.parser = (ShortParser) parser;
			}