FishEye: search for quoted string in content

In FishEye (2.7.14), when I search content for "blah" (including the double quotes), FishEye will give me all matches for blah (with or without double quotes before/after the string). Is there a way to let FishEye give only matches for "blah" literally, so only files which contain the string surrounded by double quotes?

The EyeQL that corresponds to my search is:

select revisions from dir "/" where (is head and content matches "\"blah\"") order by date desc group by changeset return path, revision, author, date, csid

Regardless, I still get all matches of files which do not have the quotes ...

Is this a bug?

2 answers

0 vote

Try this:

select revisions from dir "/" where (is head and comment =~ ".*\"blah\".*" order by date  desc  group by changeset return path, revision, author, date, csid

Doesn't work (I added 'content' before the =~, otherwise I get an 'unexpected token' error):

Search error:

error parsing query: expecting "matches", found '=~'

And if I use content matches ".*\"blah\".*", that never matches.

I am sorry, you need comment. I accidently removed it while typing. Try now, I have modified the answer.

Ok, that works for commit messages. But I need this for "content" search, not for searching commit messages (which is why I specifically mentioned "search ... in content" in the question).

Still, thanks for taking the time to try and answer my question.

btw, it looks only at commit messages.

Filed issue with Atlassian: FE-4202 - Cannot search for quoted string in content (quotes are ignored)

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published yesterday in Jira Software

How large do you think Jira Software can grow?

Hi Atlassian Community! My name is Shana, and I’m on the Jira Software team. One of the many reasons this Community exists is to connect you to others on similar product journeys or with comparabl...

239 views 4 9
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you