Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import org.springframework.data.elasticsearch.core.suggest.Completion
import java.time.ZonedDateTime

@Document(
indexName = "search-content-v4",
indexName = "search-content-v5",
dynamic = Dynamic.STRICT,
/* Disabler type hints da det lager et _class-felt i mappingen som gir problemer for wildcard-søk.
Bør skrives om dersom vi trenger polymorfisk data. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import org.springframework.data.elasticsearch.annotations.MultiField
InnerField(
suffix = "ngrams", type = FieldType.Text,
analyzer = "custom_norwegian_ngrams",
searchAnalyzer = "custom_norwegian_search"
searchAnalyzer = "standard"
)
]
)
Expand Down
2 changes: 1 addition & 1 deletion lib/src/main/resources/opensearch/index-settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
},
"front_edge_ngram": {
"type": "edge_ngram",
"min_gram": 4,
"min_gram": 3,
"max_gram": 20,
"side": "front"
},
Expand Down
Loading