Skip to content

Commit

Permalink
feat: Allow To search partial matching part of a word in spaces - MEE…
Browse files Browse the repository at this point in the history
…D-7667 - Meeds-io/meeds#2523 (#4132)

This change will reindex Spaces in order to allow using ngram tokenizer
on display name to allow partial match search.
  • Loading branch information
boubaker committed Nov 4, 2024
1 parent 924864b commit 76a1b1c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,8 @@ public String getMapping() {
.append(" \"prettyName\" : {\"type\" : \"keyword\"},\n")
.append(" \"displayName\" : {")
.append(" \"type\" : \"text\",")
.append(" \"analyzer\": \"ngram_analyzer\",")
.append(" \"search_analyzer\": \"ngram_analyzer_search\",")
.append(" \"index_options\": \"offsets\",")
.append(" \"fields\": {")
.append(" \"raw\": {")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@
<properties-param>
<name>constructor.params</name>
<property name="index_alias" value="space_alias" />
<property name="index_previous" value="${meeds.social.index.space.previous:space_v2}" />
<property name="index_current" value="${meeds.social.index.space.current:space_v3}" />
<property name="index_previous" value="${meeds.social.index.space.previous:space_v4,space_v3,space_v2,space_v1}" />
<property name="index_current" value="${meeds.social.index.space.current:space_v5}" />
<property name="reindexOnUpgrade" value="${meeds.social.index.space.reindexOnUpgrade:true}" />
</properties-param>
</init-params>
Expand Down

0 comments on commit 76a1b1c

Please sign in to comment.