Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
Openlobby Es Czech
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TO
openlobby
Openlobby Es Czech
Commits
c2c5ecf6
Commit
c2c5ecf6
authored
7 years ago
by
jan.bednarik
Browse files
Options
Downloads
Patches
Plain Diff
Custom thesaurus of czech synonyms.
parent
bf91b173
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Dockerfile
+1
-0
1 addition, 0 deletions
Dockerfile
README.md
+9
-1
9 additions, 1 deletion
README.md
analysis/cs_CZ/synonym.txt
+8
-0
8 additions, 0 deletions
analysis/cs_CZ/synonym.txt
with
18 additions
and
1 deletion
Dockerfile
+
1
−
0
View file @
c2c5ecf6
...
...
@@ -4,3 +4,4 @@ RUN elasticsearch-plugin remove --purge x-pack
RUN
elasticsearch-plugin
install
analysis-icu
ADD
hunspell/ /usr/share/elasticsearch/config/hunspell/
ADD
analysis/ /usr/share/elasticsearch/config/analysis/
This diff is collapsed.
Click to expand it.
README.md
+
9
−
1
View file @
c2c5ecf6
...
...
@@ -30,7 +30,11 @@ Create Index with these settings:
'type': 'hunspell',
'locale': 'cs_CZ',
'dedup': True,
}
},
'czech_synonym': {
'type': 'synonym',
'synonyms_path': 'analysis/cs_CZ/synonym.txt',
},
},
'analyzer': {
'czech': {
...
...
@@ -38,6 +42,7 @@ Create Index with these settings:
'filter': [
'icu_folding',
'lowercase',
'czech_synonym',
'czech_stop',
'czech_stemmer',
'cs_CZ',
...
...
@@ -51,6 +56,9 @@ Create Index with these settings:
You can use
`'czech'`
analyzer on text fields now.
There is custom dictionary of synonyms included. You can adjust it for your
needs or remove it from analyzer settings.
## Build
If you don't want to use pre-built container from
...
...
This diff is collapsed.
Click to expand it.
analysis/cs_CZ/synonym.txt
0 → 100644
+
8
−
0
View file @
c2c5ecf6
# Czech Synonyms in Solr format
# =============================
#
# Write comma separated list of words without diacritic in lowercase.
# One set of synonyms per line.
kava, kafe
tramvaj, salina
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment