Windows XP Pro
elasticsearch is 0.16.2
java -version
java version "1.6.0_24"
Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
Java HotSpot(TM) Client VM (build 19.1-b02, mixed mode, sharing)
-
how do I make this an auto-start Service?
-
running CURL
I did this...
curl -X GET http://localhost:9200/_cluster/health?pretty=true
{
"cluster_name" : "elasticsearch",
"status" : "yellow",
"timed_out" : false,
"number_of_nodes" : 1,
"number_of_data_nodes" : 1,
"active_primary_shards" : 5,
"active_shards" : 5,
"relocating_shards" : 0,
"initializing_shards" : 0,
"unassigned_shards" : 5
}
This worked.
I did this...
curl -X GET http://localhost:9200
{
"ok" : true,
"name" : "Peepers",
"version" : {
"number" : "0.16.2",
"date" : "2011-05-31T23:43:18",
"snapshot_build" : false
},
"tagline" : "You Know, for Search",
"cover" : "DON'T PANIC",
"quote" : {
"book" : "The Hitchhiker's Guide to the Galaxy",
"chapter" : "Chapter 12",
"text1" : "If there's anything bigger than my ego around, I want
it caught a
nd shot now."
}
}
It worked.
I tried this...
curl -XPUT 'http://localhost:9200/twitter/user/kimchy' -d '{ "name" : "Shay Ban
on" }'
curl: (1) Protocol 'http not supported or disabled in libcurl
curl: (6) Could not resolve host: name; Host not found
curl: (6) Could not resolve host: :; Host not found
curl: (6) Could not resolve host: Shay Banon; Host not found
no luck.
I tried this (I took out the quotes from around the URL)...
curl -i -XPUT http://localhost:9200/twitter/user/kimchy -d '{ "name" : "Shay Ba
non" }'
HTTP/1.1 400 Bad Request
Access-Control-Allow-Origin: *
Content-Type: application/json; charset=UTF-8
Content-Length: 260
{"error":"MapperParsingException[Failed to parse]; nested:
JsonParseException[
Unexpected character (''' (code 39)): expected a valid value (number,
String, array,
yobject, 'true', 'false' or 'null')\n at [Source: [B@8140ed; line: 1,
column:2]]; ","
status":400}curl: (6) Could not resolve host: name; Host not found
curl: (6) Could not resolve host: :; Host not found
curl: (6) Could not resolve host: Shay Banon; Host not found
oops
Can anyone tell me what I am doing wrong?
Thanks
Walter