Skip to content

Commit 9fe8771

Browse files
committed
pod is always analyzed
We don't need pod in both analyzed and non-analyzed form. We could remove the pod.analyzed field, but it would be more complicated to upgrade. Trying to index pod as non-analyzed with doc_values will be a problem for large pod content. Make both the main pod field and pod.analyzed analyzed, with doc_values off. We can consider dropping the sub-field in the future.
1 parent 708fcdf commit 9fe8771

File tree

1 file changed

+5
-2
lines changed
  • lib/MetaCPAN/Script/Mapping/CPAN

1 file changed

+5
-2
lines changed

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,12 +206,15 @@ sub mapping {
206206
},
207207
"pod" : {
208208
"type" : "string",
209-
"index" : "no",
209+
"index" : "analyzed",
210+
"analyzer" : "standard",
211+
"doc_values" : false,
210212
"fields" : {
211213
"analyzed" : {
212214
"type" : "string",
213215
"index" : "analyzed",
214-
"analyzer" : "standard"
216+
"analyzer" : "standard",
217+
"doc_values" : false
215218
}
216219
}
217220
},

0 commit comments

Comments
 (0)