Mercurial Hosting > luan
comparison src/goodjava/lucene/queryparser/GoodQueryParser.java @ 1564:b1195cfe8712
lucene/queryparser fix
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Tue, 10 Nov 2020 22:40:43 -0700 |
parents | b04b8fc5f4f4 |
children | 45e42f403fb3 |
comparison
equal
deleted
inserted
replaced
1563:8fbcc4747091 | 1564:b1195cfe8712 |
---|---|
205 StringBuilder sb = new StringBuilder(); | 205 StringBuilder sb = new StringBuilder(); |
206 while( parser.anyChar() ) { | 206 while( parser.anyChar() ) { |
207 char c = parser.lastChar(); | 207 char c = parser.lastChar(); |
208 switch(c) { | 208 switch(c) { |
209 case '"': | 209 case '"': |
210 Spaces(); | |
210 return parser.success(sb.toString()); | 211 return parser.success(sb.toString()); |
211 case '\\': | 212 case '\\': |
212 if( parser.anyChar() ) { | 213 if( parser.anyChar() ) { |
213 c = parser.lastChar(); | 214 c = parser.lastChar(); |
214 switch(c) { | 215 switch(c) { |