Guest User

Untitled

a guest
Aug 15th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.54 KB | None | 0 0
  1. mappings:
  2. event:
  3. index_analyzer: standardAnalyzer
  4. search_analyzer: standardAnalyzer
  5. properties:
  6. name:
  7. type: multi_field
  8. fields:
  9. name: { type: string, index: analyzed }
  10. partial: { type: string, index: analyzed, index_analyzer: ngramAnalyzer, search_analyzer: standardAnalyzer }
  11. description:
  12. type: multi_field
  13. fields:
  14. description: { type: string, index: analyzed }
  15. partial: { type: string, index: analyzed, index_analyzer: ngramAnalyzer, search_analyzer: standardAnalyzer }
  16. address:
  17. type: multi_field
  18. fields:
  19. address: { type: string, index: analyzed }
  20. partial: { type: string, index: analyzed, index_analyzer: ngramAnalyzer, search_analyzer: standardAnalyzer }
  21. programs:
  22. type: multi_field
  23. fields:
  24. programs: { type: string, index: analyzed }
  25. partial: { type: string, index: analyzed, index_analyzer: ngramAnalyzer, search_analyzer: standardAnalyzer }
  26. date_time_end:
  27. type: date
  28. index: not_analyzed
  29. format: "yyyy-MM-dd||yyyy-MM-dd HH:mm:ss"
  30.  
  31. settings:
  32. analysis:
  33. filter:
  34. defaultNGram:
  35. type: edgeNGram
  36. side: front
  37. min_gram: 1
  38. max_gram: 10
  39. analyzer:
  40. ngramAnalyzer:
  41. type: custom
  42. tokenizer: standard
  43. filter: [standard, lowercase, asciifolding, defaultNGram]
  44. standardAnalyzer:
  45. type: custom
  46. tokenizer: standard
  47. filter: [standard, lowercase, asciifolding]
Add Comment
Please, Sign In to add comment