I would like to search simply for word "logs". Unfortunately, that gives me a hundred of results, from which most are "logging", "logged", "log", which are very similar, but it's hard to shell from them.
I tried with single/double quotes and without them.
I seem like a duplicate of this topic, but answers from there haven't helped me. I'm using Confluence 6.4.1.
This and this topic also haven't helped me - I'm not using any special chars/regular expressions.
Besides, they are quite old.
I also checked an error which is connected with search, but it is resolved.
I feel like I'm missing something because it seems that I can't use a very basic functionality (and quite important ;)).
Thanks in advance.
This expression that Davin has sent you is a wildcard search, as documented here:
Lucene doesn't allow wildcards at the beginning of your search, but you can format your search as a regular expression as a workaround. For example, you can't search for
?hum*, as they begin with a wildcard, but you can search for /.*hum.*/ and find things like hum, human, and inhumane.
Please be aware that it will return all results that include "logs" and not restrict to only "logs". Therefore it could potentially find things like analogs, epilogs, etc. and return more search results than intended.
If you do not like this behavior, then you can still vote on the feature request I sent you for exact text search.
I hope that clarifies things!
thank you for this note.
However, this is you who could tell me what Davin told - cause in my case this is much better than just waiting for exact search to be exact search.
This is another thing - I already voted on this bug and filled the survey. That doesn't change the fact that this workaround is this particular case works like a charm for me. Actually, I didn't even notice any wider results.
So in both cases we have more results than we expect, we just need to pick which evil is less :)
Probably there is a way to write regular expression to exact word, I don't know that, but I also don't need it at the moment.
That is true that the above search could be a bit greedy and get more than just logs. It could be edited if you know more about your data. For instance if you know that the word logs will always have a space before and after you could change the search to this ...
/.* logs .*/
Or if sometimes logs ends a sentence and sometimes it is inside a sentence you could do ...
/(.* logs .*)|(.* logs\..*)/
One things to keep in mind is that if you have a problem and you are trying to solve it with regular expressions ... now you have two problems. Sorry ... just a little programming humor there. Certainly regular expression searches are typically for more advanced programmer type users ... but it is there and if you know your data well you can get around some Confluences search limitations this way.
This is something we're indeed working on and you can track below:
It will help us if you can provide your feedback on the following survey:
In the meantime, I would recommend using a more specific search term to get exactly the result you need.
Thank you for your understanding.
Badges are a great way to show off community activity, whether you’re a newbie or a Champion.Learn more
Hi Community, Jessica here from the Confluence Product Marketing team! July’s community challenge is all about sharing pictures — and as an extension of our first post on what ...
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!
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