Skip to content
This repository has been archived by the owner on Nov 14, 2019. It is now read-only.

Why can not modify my mapping? #21

Open
LiuQ1ang opened this issue Apr 29, 2016 · 4 comments
Open

Why can not modify my mapping? #21

LiuQ1ang opened this issue Apr 29, 2016 · 4 comments
Labels

Comments

@LiuQ1ang
Copy link

As the title show, now I have a old index named "album_v1" and a new index named "album_v2". I want to modify the mapping of the new index named "album_v2",but when I modify , I found the new index disabled. And the number of my doc become bigger than old index.
please help me .
Thank U.

@LiuQ1ang LiuQ1ang changed the title Why not modify my mapping? Why can not modify my mapping? Apr 29, 2016
@marevol
Copy link
Contributor

marevol commented Apr 29, 2016

Please provide steps to reproduce it.

@LiuQ1ang
Copy link
Author

hi, my index named "album" mapping is follows as list:

{

album: {
    mappings: {
        local_tag: {
            properties: {
                album_id: {
                    type: "long"
                },
                dataType: {
                    type: "string"
                },
                first_issue_time: {
                    type: "long"
                },
                language: {
                    type: "long"
                },
                score: {
                    type: "double"
                },
                tag: {
                    properties: {
                        cid: {
                            type: "long"
                        },
                        leaf: {
                            type: "long"
                        },
                        sub: {
                            type: "long"
                        }
                    }
                },
                vv: {
                    type: "long"
                }
            }
        }
    }
}

}>

But,now I want to add "type : nested" to tags, when I added, this issue will be happen.

If you still don't understand my question,please tell me.
Thx.

@LiuQ1ang
Copy link
Author

old index:
shards: 5 * 2 | docs: 2,526,545 | size: 607.54MB
new index:
shards: 5 * 2 | docs: 12,288,956 | size: 964.68MB

@marevol
Copy link
Contributor

marevol commented Apr 30, 2016

Need more info...
What POST request did you send for reindexing?

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

No branches or pull requests

2 participants