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

Commit

Permalink
Update plugin_doc.html
Browse files Browse the repository at this point in the history
Fixed a typo
(culr -> curl)
  • Loading branch information
partoneoftwo committed Nov 11, 2013
1 parent d46a820 commit bae0078
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/plugins/index.elasticsearch/plugin_doc.html
Expand Up @@ -17,7 +17,7 @@
- Create an index called "test_index":<br/>
<pre>$ curl -XPUT 'localhost:9200/test_index'</pre><br/>
- Then add a document with the type "test_type" with the following command:<br/>
<pre>$ culr -XPUT 'localhost:9200/test_index/test_type/1 -d '{"user":"test", "message":"this is a test"}'</pre>
<pre>$ curl -XPUT 'localhost:9200/test_index/test_type/1 -d '{"user":"test", "message":"this is a test"}'</pre>
This will add a document with id equals to 1 containing two fields "user" and "message" that respective values are "test" and "this is a test".<br/>
The document will be added in the index "test_index" under the type "test_type".<br/><br/>
- You can retrieve the documents by their id:
Expand Down Expand Up @@ -124,4 +124,4 @@
/* print the data from the hit */
print_r($hit->getSource());
}</pre>
</p>
</p>

0 comments on commit bae0078

Please sign in to comment.