Skip to content
View in the app

A better way to browse. Learn more.

CD包子铺

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

已采用 Elasticsearch 作为论坛搜索引擎,并改善搜索中文的结果

Featured Replies

  • Administrators

banner.png

Invision Community (IPS) 中文搜索效果差的核心在于分词 (Tokenization)。默认的英文依赖空格分词,这在中文环境中完全失效。

IPS 自带调用的 ES “CJK” 分析器(通常是标准的二元分词 Bigram)虽然能用,但对中文语义的理解依然不够理想,有时会导致“帖子”这种词汇被错误拆分而搜不到。

这下不得不搬出 Elasticsearch 了,安装专用的中文分词插件 IK Analysis 可以改善搜索中文的结果

infinilabs/analysis-ik: 🚌 The IK Analysis plugin integrates Lucene IK analyzer into Elasticsearch and OpenSearch, support customized dictionary.

# Navigate to your Elasticsearch installation directory
cd /usr/bin/elasticsearch

# Install the IK analysis plugin 
# IMPORTANT: Replace "8.x.x" with your exact Elasticsearch version (e.g., 8.12.0)
bin/elasticsearch-plugin install https://get.infini.cloud/elasticsearch/analysis-ik/8.4.1

# Restart Elasticsearch service to apply changes
systemctl restart elasticsearch

安装插件并重启 ES 服务后,执行重建索引,就可见效果!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.