diff src/goodjava/lucene/queryparser/NumberFieldParser.java @ 1459:b04b8fc5f4f4

GoodQueryParser
author Franklin Schmidt <fschmidt@gmail.com>
date Fri, 20 Mar 2020 11:06:53 -0600
parents 6b6c11c9164e
children c62324841dfb
line wrap: on
line diff
--- a/src/goodjava/lucene/queryparser/NumberFieldParser.java	Fri Mar 20 10:58:53 2020 -0600
+++ b/src/goodjava/lucene/queryparser/NumberFieldParser.java	Fri Mar 20 11:06:53 2020 -0600
@@ -10,13 +10,13 @@
 
 public abstract class NumberFieldParser implements FieldParser {
 
-	@Override public final Query getQuery(SaneQueryParser qp,String field,String query) throws ParseException {
+	@Override public final Query getQuery(GoodQueryParser qp,String field,String query) throws ParseException {
 		if( query.equals("*") )
 			return new PrefixQuery(new Term(field,""));
 		return getRangeQuery(qp,field,query,query,true,true);
 	}
 
-	@Override public final Query getRangeQuery(SaneQueryParser qp,String field,String minQuery,String maxQuery,boolean includeMin,boolean includeMax) throws ParseException {
+	@Override public final Query getRangeQuery(GoodQueryParser qp,String field,String minQuery,String maxQuery,boolean includeMin,boolean includeMax) throws ParseException {
 		try {
 			return getRangeQuery(field,minQuery,maxQuery,includeMin,includeMax);
 		} catch(NumberFormatException e) {
@@ -26,7 +26,7 @@
 
 	abstract protected Query getRangeQuery(String field,String minQuery,String maxQuery,boolean includeMin,boolean includeMax);
 
-	@Override public SortField getSortField(SaneQueryParser qp,String field,boolean reverse) {
+	@Override public SortField getSortField(GoodQueryParser qp,String field,boolean reverse) {
 		return new SortField( field, sortType(), reverse );
 	}