Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> Elasticsearch Struktura na podstawie map
rad11
post 8.02.2016, 08:50:30
Post #1





Grupa: Zarejestrowani
Postów: 1 270
Pomógł: 184
Dołączył: 7.10.2012
Skąd: Warszawa

Ostrzeżenie: (0%)
-----


Na początku napiszę że jestem zielony z elastica. Mam poniższą mapę gdzieś na produkcji , chciałbym ją odtworzyć na localu wraz z danymi. Jak mam to zrobić?

  1.  
  2.  
  3. {
  4. "test": {
  5. "mappings": {
  6. "test1": {
  7. "_all": { "enabled": false },
  8. "properties": {
  9. "cat": { "store": true, "type": "long" },
  10. "curr": { "index": "not_analyzed", "store": true, "type": "string" },
  11. "end_date": { "store": true, "type": "long" },
  12. "price": { "store": true, "type": "long" },
  13. "start_date": { "store": true, "type": "long" },
  14. "tcat": { "store": true, "type": "long" },
  15. "title": { "store": true, "type": "string" },
  16. "uid": { "store": true, "type": "long" }
  17. }
  18. },
  19. "test2": {
  20. "_all": { "enabled": false },
  21. "properties": {
  22. "buyer": { "store": true, "type": "long" },
  23. "cat": { "store": true, "type": "long" },
  24. "comment_text": { "store": true, "type": "string" },
  25. "comment_type": { "store": true, "type": "long" },
  26. "item": { "store": true, "type": "long" },
  27. "price": { "store": true, "type": "long" },
  28. "seller": { "store": true, "type": "long" },
  29. "title": { "store": true, "type": "string" },
  30. "tree_cat": { "store": true, "type": "long" },
  31. "ts": { "store": true, "type": "long" }
  32. }
  33. }
  34. }
  35. }
  36. }
  37.  
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Wersja Lo-Fi Aktualny czas: 13.06.2025 - 09:27