comparison src/goodjava/lucene/queryparser/GoodQueryParser.java @ 1572:45e42f403fb3

minor - lucene query parser
author Franklin Schmidt <fschmidt@gmail.com>
date Thu, 10 Dec 2020 20:23:45 -0700
parents b1195cfe8712
children 83caee2ed4ad
comparison
equal deleted inserted replaced
1571:a23b02693d3b 1572:45e42f403fb3
94 field = defaultField; 94 field = defaultField;
95 Query query = NestedTerm(field); 95 Query query = NestedTerm(field);
96 if( query == null ) 96 if( query == null )
97 query = RangeTerm(field); 97 query = RangeTerm(field);
98 if( query == null ) { 98 if( query == null ) {
99 parser.begin(); 99 //parser.begin();
100 String match = SimpleTerm(NOT_IN_TERM); 100 String match = SimpleTerm(NOT_IN_TERM);
101 query = fieldParser.getQuery(this,field,match); 101 query = fieldParser.getQuery(this,field,match);
102 parser.success(); 102 //parser.success();
103 } 103 }
104 if( parser.match('^') ) { 104 if( parser.match('^') ) {
105 Spaces(); 105 Spaces();
106 int start = parser.begin(); 106 int start = parser.begin();
107 try { 107 try {