Inconsistent search results when using dashes.

お困りですか?

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

コミュニティに質問


問題

When using dashes "-" in text-field custom fields you receive inconsistent search results in JQL.

診断

Diagnostic Steps

  1. Create text-field custom fields with values of test-123 test-456 test-789
  2. Search for "<customfield>" ~ test-*"
  3. After a re-index, you may or may not get all of those expected values from the query result

 

原因

  • Lucene indexing doesn't index dashes, so using them in your text fields will result in inconsistent results when attempting to query them.  Especially when combined with the "*" operator.
  • See  JRA-45286 - Getting issue details... STATUS  and the response that this is not a bug.

 

回避策

  • Replace underscores (or don't use either) for dashes for any value that you are going to be consistently searching against.

 

 

Last modified on Mar 30, 2017

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

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