Open bcat-eu opened 3 years ago
could you provide your config to check what lemmatizer_base option do you use?
As from ticket description and daemon error message is not clear where is a wrong path.
@tomatolog the ticket is about lemmatizer_base default, what the system assumes if it's not set explicitly.
As from ticket description and daemon error message is not clear where is a wrong path.
That's basically the problem, if I am not setting an explicit path in config, then the system uses some path that is not known to me and seems to not use anything mentioned in documentation.
For the cases where I do have a config with that path set, this ticket would not apply.
seems there is no default value for lemmatizer_base and this option should be set explicitly at config prior to use as it OS and installation dependent
It is also not clear why do you think indexer and daemon use some default value for this option?
It is also not clear why do you think indexer and daemon use some default value for this option?
That's my assumption based on the documentation that I linked above, it gives you two versions of defaults and neither worked for me.
Describe the bug It's either wrong documentation or lemmatizer_base does not work unless set explicitly.
Background: I am setting up CI pipeline and would like to copy de.pak somewhere where Manticore discovers it without having to automate the config change.
To Reproduce
The documentation states that lemmatizer_base's default is
/usr/local/share
(https://manual.manticoresearch.com/Server_settings/Common#lemmatizer_base) - I have tried it but it doesn't seem to work, the pak file there is ignored.I then looked through the sources and found another (conflicting) peace of documentation here https://github.com/manticoresoftware/manticoresearch/blob/48eabd5d45b0b3c261b3cc5fcd7c6e2abd55e167/manual/Server_settings/Common.md#lemmatizer_base which states it's
/usr/share/manticore
, so I tried that but it still seems to miss the file.Here is what is being done:
And the output:
Expected behavior
I'd expect that copying de.pak to /usr/share/manticore will make it "visible" to Manticore after I restart the service. Both deb and pack files are the same as used locally so they are working.
Also it might be good to have the full path in the error message, instead of "failed to open \/de.pak: No such file or directory" something like "failed to open /usr/share/manticore/de.pak: No such file or directory" - that would help.
Describe the environment: