How to remove stop words in JIRA's Lucene indexing.

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

このページの情報は、Jira アプリケーションのカスタマイズに関連しています。アトラシアン サポートの提供内容にカスタマイズは含まれていないため、アトラシアン サポートでは、このページで記載されている手順に対するサポートを保証できません。この資料は情報提供のみを目的としており、記載内容は自己責任の下で行っていただく必要があります。

また、ファイルの直接変更によって行われるカスタマイズは、アップグレード プロセスには含まれない点にご注意ください。このような変更は、アップグレード後のインスタンスで手動で再適用する必要があります。

プラットフォームについて: Server および Data Center のみ。この記事は、Server および Data Center プラットフォームのアトラシアン製品にのみ適用されます。

Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Fisheye および Crucible は除く

目的

To provide a workaround guide for removing common words(for each local language) defined as stop words in Lucene's indexing. Removing the stop word would enable searching using the word previously defined as stop word in JIRA.

ソリューション

  1. Jira インスタンスを停止します。
  2. Locate the jar file <lucene-analyzers-x.x.x.jar> at <jira_installation_directory>/atlassian-jira/WEB-INF/lib.
  3. Copy the jar file to a different location.
  4. Extract the contents of the jar file. It should contain an org and META-INF folder.
  5. In the extracted folder, go to org/apache/lucene/analysis/snowball/ and locate your locale language's <language_stop.txt> file. (This would be the indexing language that you are using for JIRA):
  6. Open the intended file, locate the stop word and remove it. Save the file.
  7. Once done, compress and save the folders as .jar file with the original name.
  8. Rename the original <lucene-analyzers-x.x.x.jar> at <jira_installation_directory>/atlassian-jira/WEB-INF/lib to a different name as backup.
  9. Copy the modified .jar file into <jira_installation_directory>/atlassian-jira/WEB-INF/lib.
  10. Restart JIRA and perform re-indexing.
  11. You should now be able to search using the word in JIRA.



最終更新日 2019 年 9 月 5 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.