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
Multi Term Vectors needs filter params? #315
Comments
If they're not in the REST spec, they're probably not officially supported. However, I cannot see a filter field/param on the docs page either. The Java source code is the ultimate source of truth.
|
Thanks for your reply.
ok, i got it. thanks. |
Sorry, reopened this issue because I found that The Java source code implemented filter params on mtermvectors. elastic/elasticsearch#12311 I will contribute to add filter on multi term vectors API implementation. |
@saxsir Can you file an issue at their site trying to find out if a) the |
@olivere Thank you for your reply. a), b)
So mtermvectors API should possible to use params that same as termvectors API. c) Also in the termvectors spec file, there is not spec that supported filter params. But The Java library supported it, and also this So I have a question, where did you find the documentation that termvectors API support filter params (because there is not spec file, I think..)? |
Ah... they're referring to the Termvectors API there. Now I see it. Thanks. Perhaps it once supported it, but they deprecated it at some point. At some point I found the REST API spec to be missing many things, so I tend to use the Java API as reference. Things got a bit better over time. It's confusing that there's no The REST API spec is a nice approach, but it's not even 50% of the effort in writing a client for ES. As it is now, it's only usable together with the high-level documentation and the source code, I'm afraid. The spec only specifies the request side of things, and only the request parameters. For client-side developers like me, this is dissatisfying: We have no idea about the structure of the body and the response. As an author of an ES client you have two options: a) Dig into the source code and find out yourself, or b) simply expose a body parameter and let every user of your client find out. But I digress. If |
No, no specification but it's implemented. I asked them about it while ago.
OK, thanks a lot. I will contribute it in few days. |
I took another look at this today. I think Term Vectors API and Multi-Term Vectors API need to be refactored, then we can add this. Many of the parameters are passed in the query string. Although this works for simple types, it's really not working well (or is at least bad style) for structures like the filter settings. The docs for Term Vectors API and Multi-Term Vectors API illustrate how we should really use the API, i.e. pass parameters in the body of the request. Furthermore, the parameters should be extracted from I will do all of this eventually. It's a matter of time. Please bear with me. |
Closing it for it is too old. Elastic v6 supports the filter in the Term Vectors API. |
Which version of Elastic are you using?
[ ] elastic.v2 (for Elasticsearch 1.x)
[x] elastic.v3 (for Elasticsearch 2.x)
Please describe the expected behavior
Multi Term Vectors API might be possible to use
filter
params.https://www.elastic.co/guide/en/elasticsearch/reference/2.3/docs-multi-termvectors.html
It's not implemented yet. I want to contribute if it is needed.
However, there're not specs in https://github.com/elastic/elasticsearch/blob/master/rest-api-spec/src/main/resources/rest-api-spec/api/mtermvectors.json
The text was updated successfully, but these errors were encountered: