DigitMagazine

Elasticsearch - Fill up Index before searching

Nov 25th, 2018
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. curl -XPUT "http://localhost:9200/songs/rock/1" -d'
  2. {
  3. "title": "Daniken",
  4. "singer": "Rupam",
  5. "year": 2016
  6. }'
  7.  
  8. curl -XPUT "http://localhost:9200/songs/rock/2" -d'
  9. {
  10. "title": "Bicycle Chor",
  11. "singer": "Rupam",
  12. "year": 2004
  13. }'
  14.  
  15. curl -XPUT "http://localhost:9200/songs/rock/3" -d'
  16. {
  17. "title": "Nemesis",
  18. "singer": "Rupam",
  19. "year": 2001
  20. }'
  21.  
  22. curl -XPUT "http://localhost:9200/songs/rock/4" -d'
  23. {
  24. "title": "Hasnuhana",
  25. "singer": "Rupam",
  26. "year": 2008
  27. }'
  28.  
  29. curl -XPUT "http://localhost:9200/songs/rock/5" -d'
  30. {
  31. "title": "Ekla Ghor",
  32. "singer": "Rupam",
  33. "year": 2001
  34. }’
Add Comment
Please, Sign In to add comment