comparison src/goodjava/lucene/queryparser/MultiFieldParser.java @ 1573:c6b50b7b958c

lucene/Web_search improvement
author Franklin Schmidt <fschmidt@gmail.com>
date Sat, 12 Dec 2020 21:01:04 -0700
parents b04b8fc5f4f4
children
comparison
equal deleted inserted replaced
1572:45e42f403fb3 1573:c6b50b7b958c
47 FieldParser fp = fields.get(field); 47 FieldParser fp = fields.get(field);
48 if( fp != null ) 48 if( fp != null )
49 return fp.getQuery(qp,field,query); 49 return fp.getQuery(qp,field,query);
50 if( allowUnspecifiedFields ) 50 if( allowUnspecifiedFields )
51 return defaultFieldParser.getQuery(qp,field,query); 51 return defaultFieldParser.getQuery(qp,field,query);
52 throw qp.exception("unrecognized field '"+field+"'"); 52 throw qp.exception("undefined query field '"+field+"'");
53 } 53 }
54 } 54 }
55 55
56 @Override public Query getRangeQuery(GoodQueryParser qp,String field,String minQuery,String maxQuery,boolean includeMin,boolean includeMax) throws ParseException { 56 @Override public Query getRangeQuery(GoodQueryParser qp,String field,String minQuery,String maxQuery,boolean includeMin,boolean includeMax) throws ParseException {
57 if( field == null ) { 57 if( field == null ) {