XAPIAN_CJK_NGRAM can work

"Peter Zhao" <[email protected]>
Newsgroups gmane.comp.search.xapian.general
Message-ID <[email protected]>
Olly,

    That's very kind of you to help me. When I used "env XAPIAN_CJK_NGRAM=1 indexer-command" indexer Eprints again, it can search Chinese by character level. But it is not so good for words or phrase level.  ICU would be better than CJK. Hope ICU can use soon!

Best wishes,
 Peter










At 2018-02-13 11:44:46, "Olly Betts" <[email protected]> wrote:
>On Tue, Feb 13, 2018 at 09:32:26AM +0800, Peter Zhao wrote:
>> I installed Xapian 1.2.25 on Ubuntu 14.04. How to set  environment
>> variable XAPIAN_CJK_NGRAM? I'm a newbie  to Xapian.
>
>This is really a generic Unix question rather than a Xapian one, and the
>answer rather depend how eprints gets run.
>
>When you're running a program from the shell, you can use env in front
>of the command you normally would use:
>
>env XAPIAN_CJK_NGRAM=1 indexer-command
>
>For a web app (which it looks like the eprints UI is) you'll probably
>need to set it in the webserver config, e.g. if you're using apache:
>
>https://httpd.apache.org/docs/2.4/mod/mod_env.html#setenv
>
>Cheers,
>    Olly
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.