This commit is contained in:
kimchy 2011-06-28 00:29:06 +03:00
parent 759d7d693d
commit 73898067b8
1 changed files with 5 additions and 5 deletions

View File

@ -105,11 +105,11 @@ public class CustomFieldQuery extends FieldQuery {
flatten(((FilteredQuery) sourceQuery).getQuery(), flatQueries);
flatten(((FilteredQuery) sourceQuery).getFilter(), flatQueries);
} else if (sourceQuery instanceof MultiPhrasePrefixQuery) {
try {
flatten(sourceQuery.rewrite(reader.get()), flatQueries);
} catch (IOException e) {
// ignore
}
try {
flatten(sourceQuery.rewrite(reader.get()), flatQueries);
} catch (IOException e) {
// ignore
}
} else {
super.flatten(sourceQuery, flatQueries);
}