mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-09 22:45:04 +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) {
|
if (query == null) {
|
||||||
query = super.getPrefixQuery(currentMapper.names().indexName(), termStr);
|
query = getPossiblyAnalyzedPrefixQuery(currentMapper.names().indexName(), termStr);
|
||||||
}
|
}
|
||||||
return wrapSmartNameQuery(query, fieldMappers, parseContext);
|
return wrapSmartNameQuery(query, fieldMappers, parseContext);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return super.getPrefixQuery(field, termStr);
|
return getPossiblyAnalyzedPrefixQuery(field, termStr);
|
||||||
} finally {
|
} finally {
|
||||||
analyzer = oldAnalyzer;
|
analyzer = oldAnalyzer;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user