It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How can you use stop words in exact string search?

Jonathan Simonoff Oct 29, 2014

I've discovered that if you can't do an exact word search for a string that includes a stop word.

For example, if you search for:

        "africa and afghanistan"

(with the quotes in the search) where a page contains that exact phrase, you will not find it.  (You can search for the same phrase without the quotes, and it will be found, along with pages that only contain one of the words.)

I assume this is because "and" is a stop word, and thus is not indexed.

I haven't found any way to do this kind of search – searching

        "africa  afghanistan"

also doesn't work.

Is this expected behavior?  Is there a work around?

 

2 answers

1 accepted

0 votes
Answer accepted
Rodrigo Adami Atlassian Team Oct 29, 2014

Hi Jonathan,

As far as I know, there's no way to use these words in the search name. This is a limitation from lucene search engine which confluence bundles.

Cheers,

Rodrigo

0 votes
Davin Studer Community Leader Oct 29, 2014

You could try this. It's not perfect, but it helps a little.

"africa afghanistan"~1

This search ensures that the two words specified must be within a certain number of words of each other to be included.

 

Jonathan Simonoff Oct 29, 2014

Thanks Davin. I'm more concerned with my naive users, who won't know about this, but it is always helpful to have some clever syntax.

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Confluence

6 Awesome Ways to Apply Trello, JIRA and Confluence to your Project

I attended  Atlassian Summit 2019  and learned a lot from the presenters, attendees and knowledgeable Atlassian product managers. The presentations I attended focused on applying Agile, pla...

1,123 views 7 18
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you