User talk:TJones (WMF)/Notes/Chinese Analyzer Analysis

Jump to navigation Jump to search

About this board

How to enable "the new analysis config" for non-WMF Chinese wiki?

Zoglun (talkcontribs)


We'd like to enable icu+smartcn+stconvert for Moegirlpedia Chinese version to get better search result. We got these three plugin installed for elasticsearch2.4.4 according to your note and then ran

php /var/www/wiki/extensions/CirrusSearch/maintenance/updateSearchIndexConfig.php --reindexAndRemoveOk --indexIdentifier=now

Under MW1.28.1, which only give us some error message.

Does the "... new analysis config (T158203) ..." mentioned in "Notes/Chinese Analyzer Analysis" work for MW 1.28.1? How to enable "the new analysis config"?

Thank you for your help in advance!

TJones (WMF) (talkcontribs)

Hi @Zoglun,

You also need some configuration changes so that CirrusSearch knows about the plugins. That code has been merged into the code base, but hasn't been deployed yet, I don't believe.

You could wait for it, cherry pick the changes, or manually make the changes if you can't wait. The important changes are in AnalysisConfigBuilder.php, lines 81-89, 581-606, and line 1040 (the rest are updated comments).

I think that's everything, but our whole team is at the Vienna Hackathon until next week, so I may not be able to get a definitive answer until then.

Reply to "How to enable "the new analysis config" for non-WMF Chinese wiki?"
There are no older topics