Skip to content

Commit

Permalink
remove term_vector and fielddata from pod.analyzed
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
haarg committed Oct 24, 2024
1 parent ec54fa8 commit 73fb6c0
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/MetaCPAN/Script/Mapping/CPAN/File.pm
Original file line number Diff line number Diff line change
Expand Up @@ -210,10 +210,7 @@ sub mapping {
"fields" : {
"analyzed" : {
"type" : "string",
"term_vector" : "with_positions_offsets",
"fielddata" : {
"format" : "disabled"
},
"index" : "analyzed",
"analyzer" : "standard"
}
}
Expand Down

0 comments on commit 73fb6c0

Please sign in to comment.