Skip to content

Commit

Permalink
feat: New languages parameters (#645)
Browse files Browse the repository at this point in the history
* feat: add attributeToTransliterate settings parameter

* feat: add decompoundQuery search & settings parameter
  • Loading branch information
VladislavFitz authored Mar 25, 2021
1 parent c20c1ad commit 5ad29f7
Show file tree
Hide file tree
Showing 10 changed files with 312 additions and 9 deletions.
4 changes: 3 additions & 1 deletion algolia/internal/gen/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,14 +86,16 @@ var options = []Option{

// Languages
{"ignorePlurals", Settings | Search, nil, ""},
{"attributesToTransliterate", Settings, []string{"*"}, ""},
{"removeStopWords", Settings | Search, nil, ""},
{"camelCaseAttributes", Settings, []string{}, ""},
{"decompoundedAttributes", Settings, map[string][]string{}, ""},
{"keepDiacriticsOnCharacters", Settings, "", ""},
{"customNormalization", Settings, map[string]map[string]string{}, ""},
{"queryLanguages", Settings | Search, []string{}, ""},
{"indexLanguages", Settings, []string{}, ""},
{"customNormalization", Settings, map[string]map[string]string{}, ""},
{"naturalLanguages", Search, []string{}, ""},
{"decompoundQuery", Settings | Search, true, ""},

// Query strategy
{"queryType", Settings | Search, "prefixLast", ""},
Expand Down
18 changes: 18 additions & 0 deletions algolia/internal/opt/attributes_to_transliterate.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

66 changes: 66 additions & 0 deletions algolia/internal/opt/attributes_to_transliterate_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 18 additions & 0 deletions algolia/internal/opt/decompound_query.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

41 changes: 41 additions & 0 deletions algolia/internal/opt/decompound_query_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

73 changes: 73 additions & 0 deletions algolia/opt/attributes_to_transliterate.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

60 changes: 60 additions & 0 deletions algolia/opt/decompound_query.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 9 additions & 3 deletions algolia/opt/option_getters_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions algolia/search/query_params.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 5ad29f7

Please sign in to comment.