Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Search issue with summary contains number and dash "-"

ydai
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 21, 2022

Hello, 

I was trying to search issue by summary field with partial matching. for example I have the following issue opened with summary: 

[Xray Scan Defect in verdict-controller] go://golang.org/x/crypto:0.0.0-20191191535-87dc

When I search with summary ~ "0.0.0-20191191535-87dc", it found the issue. 

When I search with summary ~ "20191191535", it couldn't find the issue. 

so it seems to me that "0.0.0-20191191535-87dc" is considered as an entire string? but if I search with summary ~ "verdict" which "verdict-controller" also has a dash '-', it is able to find the issue. 

Anyone can help me to understand better on this behavior please?

 

1 answer

0 votes
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 22, 2022

Hi @ydai -- Welcome to the Atlassian Community!

Reviewing the documentation on the CONTAINS ~ operator: https://support.atlassian.com/jira-software-cloud/docs/advanced-search-reference-jql-operators/#Advancedsearchingoperatorsreference-CONTAINS-CONTAINS--

I wonder if you are encountering two effects related to word stemming:

  • your numeric string seems considered one "word" and so when you search for text from the leftmost side it is found by not from something in the middle
  • your search on "verdict" treats that as part of the word by stemming and so also matches things which partially match.  And, the dash inside of the string seems ignored but if it was used standalone it would be the text exclude operator.

Kind regards,
Bill

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events