mirror of https://github.com/apache/lucene.git
yonik removed ConstantScoreprefixQuery in r950784, but forgot to remove this usage of it (it was never migrated to lucene because it's trivial to build with a PrefixFilter)
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@950853 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
510e9b1563
commit
428d4b1633
|
@ -539,12 +539,6 @@ public class QueryParsing {
|
|||
FieldType ft = writeFieldName(prefix.field(), schema, out, flags);
|
||||
out.append(prefix.text());
|
||||
out.append('*');
|
||||
} else if (query instanceof ConstantScorePrefixQuery) {
|
||||
ConstantScorePrefixQuery q = (ConstantScorePrefixQuery) query;
|
||||
Term prefix = q.getPrefix();
|
||||
FieldType ft = writeFieldName(prefix.field(), schema, out, flags);
|
||||
out.append(prefix.text());
|
||||
out.append('*');
|
||||
} else if (query instanceof WildcardQuery) {
|
||||
out.append(query.toString());
|
||||
writeBoost = false;
|
||||
|
|
Loading…
Reference in New Issue