Advertisement
Guest User

Untitled

a guest
May 29th, 2016
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. GET /mytext/_search
  2. {
  3. "fields": [ "file.name" ],
  4. "query": {
  5. "match": {
  6. "file.content": "foobar"
  7. }
  8. },
  9. "highlight": {
  10. "fields": {
  11. "file.content": {
  12. }
  13. }
  14. }
  15. }
  16.  
  17. curl -XPUT -uelastic:changeme 'localhost:9200/_shield/user/elastic/_password' -d '{ "password" : "newpass1" }'
  18. curl -XPUT -uelastic:_Elastic 'localhost:9200/_shield/user/kibana/_password' -d '{ "password" : "newpass2" }'
  19.  
  20. GET http://localhost:9200/_nodes
  21.  
  22. "nodes" : {
  23. "v_XmZh7jQCiIMYCG2AFhJg" : {
  24. "transport_address" : "127.0.0.1:9300",
  25. "version" : "5.0.0-alpha2",
  26. "roles" : [ "master", "data", "ingest" ],
  27. ...
  28. "settings" : {
  29. "node" : {
  30. "name" : "Apache Kid"
  31. },
  32. "http" : {
  33. "type" : "security"
  34. },
  35. "transport" : {
  36. "type" : "security",
  37. "service" : {
  38. "type" : "security"
  39. }
  40. },
  41. ...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement