What would the URL look like to do a fuzzy search on the summary field for a phrase?

Doug Larsen May 30, 2012

I am trying to do a phrase fuzzy search on summary the field of the issue using the REST API. What would the URL look like?

I would like to look for the phrase "Rest Test"

I am successful when I do the following: https://myserver/rest/api/2/search?jql=summary~Rest

but fail when I try to add to the phrase.

Update:

I need to be able to find the exact phrase "Rest Test".

according to the documentation I need to surround the phrase with quotes. What would the URL need to look like?

1 answer

0 votes
Norman Abramovitz
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.
May 30, 2012

Hi,

Try encoding the " (%22) characters around the phrase.

http://<myserver>/rest/api/2/search?jql=summary~%22Rest~Test%22

If you have spaces encode those with %20.

Your search term did not have the ~ operator to cause the fuzzy search.

https://confluence.atlassian.com/display/JIRA/Performing+Text+Searches

If you meant something different or I misunderstood what you wanted then please explain alittle better with example data.

Doug Larsen May 31, 2012

Update:

I need to be able to find the exact phrase "Rest Test".

according to the documentation I need to surround the phrase with quotes. What would the URL need to look like?

Norman Abramovitz
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.
May 31, 2012

I am not seeing any problems with phrase search. My search returned two records which is the correct result. What type of results are you getting? What are the permissions of the user you authenticated with? I am using an adminstrator account in my testcase shown here.

http://<myserver>/rest/api/2/search?jql=summary~%22natural%20language%22

Suggest an answer

Log in or Sign up to answer