How can I get _mtermvector

(Jack Wang) #1

Could anyone give me any ideas which can get _mtermvectors please, I used the following code, but it didn't work:
val query= """_mtermvectors {
"ids" : ["1256","7891"],
"parameters": {
"fields": [
"term_statistics": true
var idRdd = sparkContext.esRDD("uindex/type1",query)

(James Baiera) #2

Hello again!

_mtermvectors is a document api call, not a query. ES-Hadoop uses the scroll api along with an optionally provided query. A provided query must be either a valid ?uri_query, a valid Query DSL, or an external resource file which contains either of the two preceding query types. Please see this documentation entry for more information.

(system) #3