Hi, Can you help me with post?

When I try to do:
"curl -XPUT http://localhost:9200 -d '{ "name" : "Dilbert Brown" }' "

I get this message:

No handler found for uri [/] and method [PUT]curl: (6) Could not resolve
host: name; Host not found

curl: (7) couldn't connect to host at :80

curl: (6) Could not resolve host: Dilbert Brown; Host not found

curl: (3) [globbing] unmatched close brace/bracket at pos 1

Someone knows what's the problem?

Thanks

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Hello!

Try the following:

curl -XPUT 'http://localhost:9200/INDEX_NAME/TYPE_NAME/ID' -d '{"name" : "Dilbert Brown"}'

where:

  • INDEX_NAME is the name of your index

  • TYPE_NAME is the name of your type

  • ID is the identifier of the document

So the whole command looks like this for example:

curl -XPUT 'http://localhost:9200/users/user/1' -d '{"name" : "Dilbert Brown"}'

--

Regards,

Rafał Kuć

Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch - ElasticSearch

When I try to do:

"curl -XPUT http://localhost:9200 -d '{ "name" : "Dilbert Brown" }' "

I get this message:

No handler found for uri [/] and method [PUT]curl: (6) Could not resolve host: name; Host not found

curl: (7) couldn't connect to host at :80

curl: (6) Could not resolve host: Dilbert Brown; Host not found

curl: (3) [globbing] unmatched close brace/bracket at pos 1

Someone knows what's the problem?

Thanks

--

You received this message because you are subscribed to the Google Groups "elasticsearch" group.

To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.