Skip to content

Commit

Permalink
"review_state" and "subjects" usable as facet. Add celery task "delet…
Browse files Browse the repository at this point in the history
…eindex". (#30)

- "behaviors/plone.categorization/subjects" both searchable and also usable as facet. [ksuess]
- Add celery task "deleteindex". [ksuess]
- Fix field type of review_state to keyword: review_state can be used as facet. [ksuess]
- Update analysis example configuration. [ksuess]
  • Loading branch information
ksuess authored Apr 5, 2024
1 parent fd87bea commit 1ceef9d
Show file tree
Hide file tree
Showing 9 changed files with 433 additions and 438 deletions.
6 changes: 5 additions & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@ Changelog
2.0.2 (2024-xx-xx)
------------------

- nothing yet
- "behaviors/plone.categorization/subjects" both searchable and also usable as facet. [ksuess]
- Add celery task "deleteindex". [ksuess]
- Fix field type of review_state to keyword: review_state can be used as facet. [ksuess]
- Update analysis example configuration. [ksuess]


2.0.1 (2024-01-16)
------------------
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ These actions ar available:
The value of ``target`` is the path to the new location of the data (missing containers are created).
The value of ``enforce`` is a boolean value (default: False). If True, the source must exist, otherwise an error is raised.

Example: ``"configuration": {"source": "@components/collectiveelastic/blocks_plaintext", "target": "blocks_plaintext", "enforce": false}``
Example: ``"configuration": {"source": "@components/blocks_plaintext", "target": "blocks_plaintext", "enforce": false}``

``remove``
Deletes a field or sub-field from the content data.
Expand Down
12 changes: 8 additions & 4 deletions examples/analysis/analysis-german.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
"filter": [
"lowercase",
"custom_dictionary_decompounder",
"light_german_stemmer",
"unique"
"no_stem",
"light_german_stemmer"
]
},
"german_exact": {
"german_exact_analyzer": {
"tokenizer": "standard",
"filter": [
"lowercase"
Expand All @@ -21,7 +21,11 @@
"filter": {
"custom_dictionary_decompounder": {
"type": "dictionary_decompounder",
"word_list_path": "elasticsearch-lexicon.txt"
"word_list_path": "elasticsearch-lexicon-german.txt"
},
"no_stem": {
"type": "keyword_marker",
"keywords_path": "elasticsearch-keywords-german.txt"
},
"light_german_stemmer": {
"type": "stemmer",
Expand Down
1 change: 1 addition & 0 deletions examples/analysis/elasticsearch-keywords-german.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
börse
36 changes: 2 additions & 34 deletions examples/analysis/elasticsearch-lexicon-german.txt
Original file line number Diff line number Diff line change
@@ -1,35 +1,3 @@
abschluss
abteilung
adresse
amt
anwender
applikation
arbeit
beratung
beruf
bescheid
betrieb
bewilligung
bildung
börse
daten
erfassung
fachschule
gruppe
handbuch
kontakt
lehr
lehre
lehrer
lehrstelle
lieferung
liste
modul
portal
profil
prüfung
register
schulung
variante
vertrag
verträge
stell
börse
Loading

0 comments on commit 1ceef9d

Please sign in to comment.