-
Notifications
You must be signed in to change notification settings - Fork 801
Document mapping doesn't accept any name but 'doc' #929
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
Comments
Thanks for the report, this is indeed a bug as we need to make sure we expose the |
Hey @honzakral thank you for the fix. Do you have an example of how the doc_type should be specified in 6.2.1? I am using that version but get a similar
If I use the following code block, I get a slightly different error:
With the following trace:
Thanks for the help! |
@jason-huling I'm having the same problem. Please let me know if you find a solution. |
Hey @rafaelcaricio, I don't know if this will help you, but my use case looks like the following:
I was able to get around the
Hopefully there is a better solution available that someone else can provide, but maybe this can help in the interim. |
@rafaelcaricio, turns out I should have troubleshot a little longer 😄 ... The following worked for me to avoid
I noticed that the following gave the error
And this gave the same error but reversed
So setting @honzakral do you know if this behavior is intentional? |
@jason-huling A-HA, thank you. This should solve my case too. |
Thank you all for your patience, I just pushed a fix that should make the part in I also cleaned up a lot of faulty logic when it came to |
Following didn't work for me:
Below runs without error but doesn't change
ES: 6.8.8 UPDATE:
Changing it to:
Fixed it. |
I tried to use the new 6.2 release and found that the following code crashes:
With the following trace:
I tried to add
doc_type='a'
to theMeta
class, but it didn't help. As far as I have tried, there's absolutely no way to have a mapping which is not named'doc'
. This is also incompatible with existing indexes.The text was updated successfully, but these errors were encountered: