Skip to content

Commit

Permalink
Set term vector flags to false for ._index_prefix field (opensearch-p…
Browse files Browse the repository at this point in the history
…roject#1901).

Signed-off-by: Vesa Pehkonen <[email protected]>
  • Loading branch information
vpehkone committed May 3, 2022
1 parent c13b679 commit f079ef3
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,9 @@ public SearchAsYouTypeFieldMapper build(Mapper.BuilderContext context) {
// set up the prefix field
FieldType prefixft = new FieldType(fieldType);
prefixft.setStoreTermVectors(false);
prefixft.setStoreTermVectorPositions(false);
prefixft.setStoreTermVectorOffsets(false);
prefixft.setStoreTermVectorPayloads(false);
prefixft.setOmitNorms(true);
prefixft.setStored(false);
final String fullName = buildFullName(context);
Expand Down

0 comments on commit f079ef3

Please sign in to comment.