Elastic search introduction

2,373 views
2,281 views

Published on

Published in: Technology, News & Politics
0 Comments
9 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
2,373
On SlideShare
0
From Embeds
0
Number of Embeds
13
Actions
Shares
0
Downloads
0
Comments
0
Likes
9
Embeds 0
No embeds

No notes for slide

Elastic search introduction

  1. 1. By Jackson dos Santos @cyber_jso Elastic Search
  2. 2. ElasticSearch is a powerful open source distributed search engine
  3. 7. curl -XPUT http://localhost:9200/ elasticsearch /gayfish/1 -d '{ "gayfish_birthday": "2011-11-15T14:12:12", "prefered_os": "MAC OS", "is_like_fish_sticks": "HE love s" }' elasticsearch is the index The rest are the parameters
  4. 8. curl -XPUT http://localhost:9200/elasticsearch/gayfish/1 -d '{ "gayfish_name" : "Jeff", "gayfish_birthday": "2011-11-15", "prefered_os": "MAC OS", "is_like_fish_sticks": "HE loves", "age": 24 }'
  5. 10. curl -XGET http://localhost:9200/elasticsearch/gayfish/_search?pretty=true -d '{ "filter" : { "range" : { "age" : { "from" : "23", "to" : "34", "include_lower" : true, "include_upper" : false } } } }'
  6. 11. curl -XPUT http://localhost:9200/elasticsearch/gayfish/3 -d '{ "gayfish_name" : "Diego", "gayfish_birthday": "2011-11-17", "prefered_os": "windows transvestite", "is_like_fish_sticks": "It_loves_but_doesnt_like_tell", "is_like_apple_things": "YES", "age": 26, "settings" : { "number_of_shards" : 2, "number_of_replicas" : 3 } }'
  7. 15. Thank You! By Jackson dos Santos @cyber_jso

×