Skip to content
This repository was archived by the owner on May 28, 2023. It is now read-only.

Commit 271be33

Browse files
committed
Done: Remove index value not_analyzed for some fields as it is deprecated #334
As of 5.0 value not_analyzed is no longer applicable. Reference: https://www.elastic.co/guide/en/elasticsearch/reference/5.0/breaking_50_mapping_changes.html#_literal_index_literal_property Citation: On all field datatypes (except for the deprecated string field), the index property now only accepts true/false instead of not_analyzed/no. The string field still accepts analyzed/not_analyzed/no. As per https://www.elastic.co/guide/en/elasticsearch/reference/1.4/mapping-core-types.html, not_analyzed means that its still searchable, but does not go through any analysis process or broken down into tokens. As per https://www.elastic.co/guide/en/elasticsearch/reference/current/text.html, index means Should the field be searchable? Accepts true (default) or false. So, changing index value not_analyzed to true. We can also remove index key as default value is true, but as I am unsure how it works when migrating to new release with schema changes. Setting it true as it may cause no harm and produces desired results
1 parent d7b6fe5 commit 271be33

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

config/elastic.schema.attribute.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
"properties": {
1111
"value": {
1212
"type": "text",
13-
"index": "not_analyzed"
13+
"index": true
1414
}
1515
}
1616
}
1717
}
18-
}
18+
}

0 commit comments

Comments
 (0)