How do I search for a slash '/' in a text field?

Joseph Michaud January 25, 2016

Various attempts at escaping do not seem to work.  For example, I'd like to search for the term '/browser' (no quotes).

4 answers

1 accepted

0 votes
Answer accepted
Doug Swartz
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.
January 25, 2016

I don't think you're going to be able to search for a slash. This page doesn't include the slash as one of the special characters. I believe the standard Lucene indexer, which that page says JIRA uses, splits words based on punctuation. It treats the slash as punctuation and not searchable.

0 votes
adynis March 10, 2021

Hi,

After 5 years I have a similar question .... but on confluence pages:

I want to search in confluence a string like: "Jupiter/v1.2" , (there are many of "Jupiter" occurrences (without slash) and I want to ignore those) ... My only solution is to export everything to PDF and search there ... but is ... not nice ...

 

 

0 votes
Joseph Michaud January 25, 2016

I've looked at both pages:

https://confluence.atlassian.com/jirasoftwarecloud/advanced-searching-764478330.html  "Advanced searching"

https://confluence.atlassian.com/jirasoftwarecloud/search-syntax-for-text-fields-764478343.html  "Search syntax for text fields"

 

@Bautista:

Q: How are you escaping it?

A: Any way I can try smile  I think I've tried all combinations of single/double quote, single/double backslash, Unicode escape notation, etc.

 

@Swartz:

I think you're right.  While the slash is listed as a Reserved Character on the "Advanced searching" page, it is not listed as a Special Character on the "Search syntax for text fields" page.  Your reference

https://confluence.atlassian.com/jira/performing-text-searches-185729616.html  "Performing Text Searches"

links to

http://lucene.apache.org/core/3_3_0/queryparsersyntax.html  "Apache Lucene - Query Parser Syntax"

which, like the JIRA doc, lists the same reserved characters (which doesn't include slash).

0 votes
GabrielleJ
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.
January 25, 2016

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events