add query types also to field query

This commit is contained in:
Shay Banon 2012-07-12 11:30:35 +02:00
parent 0cebcc56a4
commit 7a23b4f0b6
1 changed files with 2 additions and 0 deletions

View File

@ -155,6 +155,8 @@ public class FieldQueryParser implements QueryParser {
qpSettings.queryString(org.apache.lucene.queryParser.QueryParser.escape(qpSettings.queryString()));
}
qpSettings.queryTypes(parseContext.queryTypes());
Query query = parseContext.indexCache().queryParserCache().get(qpSettings);
if (query != null) {
return query;