mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-09 14:34:43 +00:00
Internal: MoreLikeThisQueryParser to refer to index taken from QueryShardContext rather than QueryParseContext
The reason behind this change is that we will soon remove the index member from QueryParseContext, as parsing will be independent of the index it happens against.
This commit is contained in:
parent
cc408ddd45
commit
c403bdbd62
@ -256,7 +256,7 @@ public class MoreLikeThisQueryParser extends BaseQueryParserTemp {
|
||||
|
||||
for (TermVectorsRequest item : items) {
|
||||
if (item.index() == null) {
|
||||
item.index(parseContext.index().name());
|
||||
item.index(context.index().name());
|
||||
}
|
||||
if (item.type() == null) {
|
||||
if (context.queryTypes().size() > 1) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user