mappings.json 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. {
  2. "settings": {
  3. "analysis": {
  4. "filter": {
  5. "english_stop": {
  6. "type": "stop",
  7. "stopwords": "_english_"
  8. },
  9. "english_stemmer": {
  10. "type": "stemmer",
  11. "language": "english"
  12. },
  13. "english_possessive_stemmer": {
  14. "type": "stemmer",
  15. "language": "possessive_english"
  16. }
  17. },
  18. "analyzer": {
  19. "autocomplete": {
  20. "tokenizer": "keyword",
  21. "filter": [
  22. "lowercase",
  23. "nGram"
  24. ]
  25. },
  26. "english": {
  27. "tokenizer": "standard",
  28. "filter": [
  29. "english_possessive_stemmer",
  30. "lowercase",
  31. "english_stop",
  32. "english_stemmer"
  33. ]
  34. }
  35. }
  36. }
  37. },
  38. "mappings": {
  39. "users": {
  40. "properties" : {
  41. "name": {
  42. "type": "string",
  43. "analyzer": "autocomplete",
  44. "include_in_all": false
  45. }
  46. }
  47. },
  48. "pages": {
  49. "properties" : {
  50. "path": {
  51. "type": "string",
  52. "copy_to": ["path_raw", "path_ja", "path_en"],
  53. "include_in_all": false,
  54. "index": "not_analyzed"
  55. },
  56. "path_raw": {
  57. "type": "string",
  58. "analyzer": "standard",
  59. "include_in_all": false
  60. },
  61. "path_ja": {
  62. "type": "string",
  63. "analyzer": "kuromoji",
  64. "include_in_all": false
  65. },
  66. "path_en": {
  67. "type": "string",
  68. "analyzer": "english",
  69. "include_in_all": false
  70. },
  71. "body": {
  72. "type": "string",
  73. "copy_to": ["body_raw", "body_ja", "body_en"],
  74. "include_in_all": false,
  75. "index": "not_analyzed"
  76. },
  77. "body_raw": {
  78. "type": "string",
  79. "analyzer": "standard",
  80. "include_in_all": false
  81. },
  82. "body_ja": {
  83. "type": "string",
  84. "analyzer": "kuromoji",
  85. "include_in_all": false
  86. },
  87. "body_en": {
  88. "type": "string",
  89. "analyzer": "english",
  90. "include_in_all": false
  91. },
  92. "username": {
  93. "type": "string",
  94. "include_in_all": false
  95. },
  96. "comment_count": {
  97. "type": "integer",
  98. "include_in_all": false
  99. },
  100. "bookmark_count": {
  101. "type": "integer",
  102. "include_in_all": false
  103. },
  104. "like_count": {
  105. "type": "integer",
  106. "include_in_all": false
  107. },
  108. "created_at": {
  109. "type": "date",
  110. "format": "dateOptionalTime",
  111. "include_in_all": false
  112. },
  113. "updated_at": {
  114. "type": "date",
  115. "format": "dateOptionalTime",
  116. "include_in_all": false
  117. }
  118. }
  119. }
  120. }
  121. }