Skip to content

Commit

Permalink
Fixes for customer only
Browse files Browse the repository at this point in the history
  • Loading branch information
trzysiek committed Nov 5, 2024
1 parent 34ce6d0 commit 55da78e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions quesma/quesma/functionality/field_capabilities/field_caps.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,10 @@ func handleFieldCapsIndex(cfg *config.QuesmaConfiguration, schemaRegistry schema
switch field.Type.Name {
case "text":
addFieldCapabilityFromSchemaRegistry(fields, fmt.Sprintf("%s%s", fieldName.AsString(), types.MultifieldKeywordSuffix), schema.QuesmaTypeKeyword, resolvedIndex)
addFieldCapabilityFromSchemaRegistry(fields, fmt.Sprintf("%s%s", fieldName.AsString(), types.MultifieldTextSuffix), schema.QuesmaTypeText, resolvedIndex)
case "keyword":
addFieldCapabilityFromSchemaRegistry(fields, fmt.Sprintf("%s%s", fieldName.AsString(), types.MultifieldTextSuffix), schema.QuesmaTypeText, resolvedIndex)
addFieldCapabilityFromSchemaRegistry(fields, fmt.Sprintf("%s%s", fieldName.AsString(), types.MultifieldKeywordSuffix), schema.QuesmaTypeKeyword, resolvedIndex)
case "map":
addFieldCapabilityFromSchemaRegistry(fields, fmt.Sprintf("%s%s", fieldName.AsString(), types.MultifieldTextSuffix), schema.QuesmaTypeText, resolvedIndex)
addFieldCapabilityFromSchemaRegistry(fields, fmt.Sprintf("%s%s", fieldName.AsString(), types.MultifieldMapKeysSuffix), schema.QuesmaTypeText, resolvedIndex)
Expand Down

0 comments on commit 55da78e

Please sign in to comment.