mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-09 06:25:07 +00:00
Query DSL: prefix query to support _id, closes #1648. (fix support analysis for prefix is configured)
This commit is contained in:
parent
49b6d70dfd
commit
25763e2124
@ -214,12 +214,12 @@ public class MapperQueryParser extends QueryParser {
|
||||
}
|
||||
}
|
||||
if (query == null) {
|
||||
query = super.getPrefixQuery(currentMapper.names().indexName(), termStr);
|
||||
query = getPossiblyAnalyzedPrefixQuery(currentMapper.names().indexName(), termStr);
|
||||
}
|
||||
return wrapSmartNameQuery(query, fieldMappers, parseContext);
|
||||
}
|
||||
}
|
||||
return super.getPrefixQuery(field, termStr);
|
||||
return getPossiblyAnalyzedPrefixQuery(field, termStr);
|
||||
} finally {
|
||||
analyzer = oldAnalyzer;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user