Create new indices


#1

Hello,

I want create one indice by document type in my cluster but I don't how to make that.

I find a little tuto or some ideas to begin.


(David Pilato) #2
PUT myindex1/_doc/1
{
  "foo": "bar"
}
PUT myindex2/_doc/1
{
  "foo": "bar"
}

#3

Thank you.

Can you explain me the different value ?
I don't understand the signification of all parameters.


(David Pilato) #4
PUT myindex1/_doc/1
       \       \   \_____ Document ID
        \       \________ Type (use _doc as types are going to be removed)
         \_______________ Index name

#5

Ok thanks and for "foo" and "bar" what does it mean ?


(Christian Dahlqvist) #6

This blog post may be useful. I would also recommend the getting started guide.


(Kevivek) #7

These are just examples such as field: data

The whole is a URI u see.


#8

Thanks @kevivek


(system) #9

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.