Open sctEdwin opened 2 years ago
It should be possible to use the CLI to create the mapping using the standard indexer, then modify the index via elastic's interface/api and then index the wiki?
@splitbrain
Thank you for your reply. Could you elaborate a bit on how to do so?
Do you mean I should perform the following?(Not sure about order of step 3 and 4)
Specify on Dokuwiki the index name to be generate
Use CLI command "./bin/plugin.php elasticsearch createindex" to generate the index
Use CLI command "./plugin.php elasticsearch createlangmapping" to create language mapping first
Use Update index API to add analyzer [kuromoji] to analysis field. https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-update-settings.html#update-settings-analysis https://www.elastic.co/guide/en/elasticsearch/plugins/current/analysis-kuromoji-analyzer.html
Use CLI command "./bin/plugin.php elasticsearch index" to autoindex
Yeah. Something like that.
Hi there, I am using another analyzer other than [standard] so I created an index with default analyzer set as [kuromoji"], the language settings of my dokuwiki is in Japanese so "kuromoji" will work well with Japanese tokenizer. About kuromoji https://www.atilika.org/
When I try to indexing the created index using the plugin command "./plugin.php elasticsearch index", the error says I cannot update parameter [analyzer] from [kuromoji] to [standard]. I do not want to use [standard] analyzer or text field, is there anyway that I can create an index for dokuwiki without auto generating the mapping of analyzer to [standard] for text fields?
Here is the original dokuwiki index used, I would like to have analyzer "kuromoji" for text fields instead.
Would appreciate any feedback.