Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Got exception when I tried to invoke _mtermvector #796

Closed
JackWang917 opened this issue Jun 29, 2016 · 1 comment
Closed

Got exception when I tried to invoke _mtermvector #796

JackWang917 opened this issue Jun 29, 2016 · 1 comment

Comments

@JackWang917
Copy link

I was trying to get _mtermvector by using the following code:

 val query= """_mtermvectors {
        "ids" : ["1256"],
        "parameters": {
            "fields": [
                 "tname"
            ],
            "term_statistics": true
        }
    }"""
    var idRdd = sparkContext.esRDD("uindex/type1",query)

But it didn't work, any ideas please, appreciate!

@jbaiera
Copy link
Member

jbaiera commented Jun 29, 2016

Hello! "_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.

Also, this is a question that is more suited for posting on our forums. We try to keep GitHub for issue tracking and bug reports only. If you're not sure of where to post something, the forum is always the best place to start. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants