Skip to content

Commit 739a174

Browse files
committed
remove term_vector and fielddata from pod.analyzed
As far as I can tell, these are unused. These fields are using the string type, which will be automatically be converted to text or keyword types. With term_vector and fielddata, this automatic conversion can't be done. Removing them allow the same mapping to work on both Elasticsearch 2.4 and 5.
1 parent f4a813e commit 739a174

File tree

1 file changed

+1
-4
lines changed
  • lib/MetaCPAN/Script/Mapping/CPAN

1 file changed

+1
-4
lines changed

lib/MetaCPAN/Script/Mapping/CPAN/File.pm

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -210,10 +210,7 @@ sub mapping {
210210
"fields" : {
211211
"analyzed" : {
212212
"type" : "string",
213-
"term_vector" : "with_positions_offsets",
214-
"fielddata" : {
215-
"format" : "disabled"
216-
},
213+
"index" : "analyzed",
217214
"analyzer" : "standard"
218215
}
219216
}

0 commit comments

Comments
 (0)