Using dash in front of word doesn't find any notes

Peter7885
Posts: 21
Joined: Sat Jan 16, 2016 4:08 pm
Contact:

Using dash in front of word doesn't find any notes

Postby Peter7885 » Sat Apr 30, 2016 5:24 pm

I have some linux command line commands saved as notes like this one:
ls -al

But if i type the command in the search bar it doesn't find the note that contain the command. And if i type the command without the dash in front of the parameter it finds the note. Obviously the dash in front is causing this issue but i am not sure why. Is this a bug or using dash in front of word has some other purpose when searching?
User avatar
CintaNotes Developer
Site Admin
Posts: 5001
Joined: Fri Dec 12, 2008 4:45 pm
Contact:

Re: Using dash in front of word doesn't find any notes

Postby CintaNotes Developer » Sat Apr 30, 2016 5:30 pm

Hi,
yes, the dash in the search box means "exclude notes having this word" (more info here: http://cintanotes.com/help/#finding).
To search for "ls -al" literally, put it into quotes.
Alex
Peter7885
Posts: 21
Joined: Sat Jan 16, 2016 4:08 pm
Contact:

Re: Using dash in front of word doesn't find any notes

Postby Peter7885 » Sat Apr 30, 2016 6:57 pm

Thanks!
Peter7885
Posts: 21
Joined: Sat Jan 16, 2016 4:08 pm
Contact:

Re: Using dash in front of word doesn't find any notes

Postby Peter7885 » Tue May 03, 2016 10:34 am

I think i found a problem with using dash to filter notes that contain specific word. If i start my search with word that has dash in front of it, it doesn't find any notes. Doesn't matter what the word is, as long as it have a dash in front it doesn't show any notes.

Is this a bug?
User avatar
Ovg
Posts: 128
Joined: Mon Feb 02, 2015 8:44 am
Contact:

Re: Using dash in front of word doesn't find any notes

Postby Ovg » Tue May 03, 2016 12:12 pm

You did something wrong, working fine for me there ... Check where you did search - only text fields are supported (title/text, any text )
Attachments
Capture.PNG
Capture.PNG (84.41 KiB) Viewed 12840 times
Capture1.PNG
Capture1.PNG (79.59 KiB) Viewed 12840 times
It's impossible to lead us astray for we don't care even to choose the way.
CN 3.14β3 LifeTime Pro Licence / Windows 7 SP1 x64
date
Posts: 243
Joined: Sat Aug 01, 2015 5:15 am
Contact:

Re: Using dash in front of word doesn't find any notes

Postby date » Tue May 03, 2016 6:58 pm

Peter7885 wrote:I think i found a problem with using dash to filter notes that contain specific word. If i start my search with word that has dash in front of it, it doesn't find any notes. Doesn't matter what the word is, as long as it have a dash in front it doesn't show any notes.

Is this a bug?

You might be right something isn't working as it should. When I search for an either existing or non-existing word with a dash in front, in a few sections just 1 note shows up, in some other none, in one particular section many more, but the numbers don't add up.
Say, when I have a hundred notes, and search for ThisWord, I have 20 results. So -ThisWord should have 80 results, right? Also a nonexistent dashed word should show all notes, right?
All (faulty?) results did have an attachment, coincidence?

But when searching with the dashed word in the second place (only text field to be sure):
Word1: 2519 results
Word1 Word2: 759 results
Word1 -Word2: 1857 results
This seems to work better :) Exceeding sum probably because one of the words not in the same field on second (inclusive) search thus transcending the third search because the first word might apply to any field.

So might be a bug if my logical thinking ability isnt declining :mrgreen:
date
Posts: 243
Joined: Sat Aug 01, 2015 5:15 am
Contact:

Re: Using dash in front of word doesn't find any notes

Postby date » Tue May 03, 2016 7:02 pm

Quick addendum: only searching in 'text field' instead of 'everywhere' seems to work fine always, for any of those cases even when starting the first word with a dash
User avatar
Ovg
Posts: 128
Joined: Mon Feb 02, 2015 8:44 am
Contact:

Re: Using dash in front of word doesn't find any notes

Postby Ovg » Wed May 04, 2016 4:15 am

date wrote:Quick addendum: only searching in 'text field' instead of 'everywhere' seems to work fine always, for any of those cases even when starting the first word with a dash


Indeed! Cintanotes.com/help wrote:
Attachments
Capture.PNG
Capture.PNG (108.41 KiB) Viewed 12814 times
It's impossible to lead us astray for we don't care even to choose the way.
CN 3.14β3 LifeTime Pro Licence / Windows 7 SP1 x64
Peter7885
Posts: 21
Joined: Sat Jan 16, 2016 4:08 pm
Contact:

Re: Using dash in front of word doesn't find any notes

Postby Peter7885 » Wed May 04, 2016 7:37 am

@Ovg i get this when using dash in front of word. Also, using search Anywhere for search option:

2016-05-04_102637.jpg
2016-05-04_102637.jpg (24.44 KiB) Viewed 12805 times
User avatar
Ovg
Posts: 128
Joined: Mon Feb 02, 2015 8:44 am
Contact:

Re: Using dash in front of word doesn't find any notes

Postby Ovg » Wed May 04, 2016 7:46 am

2Peter7885: This type search doesn't support Anywhere ...
viewtopic.php?p=11124#p11124
It's impossible to lead us astray for we don't care even to choose the way.
CN 3.14β3 LifeTime Pro Licence / Windows 7 SP1 x64
User avatar
CintaNotes Developer
Site Admin
Posts: 5001
Joined: Fri Dec 12, 2008 4:45 pm
Contact:

Re: Using dash in front of word doesn't find any notes

Postby CintaNotes Developer » Wed May 04, 2016 3:02 pm

Basically date is right - the combination of Attachments field and negative search doesn't work correctly now.
We'll fix it in the next update.
Alex
date
Posts: 243
Joined: Sat Aug 01, 2015 5:15 am
Contact:

Re: Using dash in front of word doesn't find any notes

Postby date » Wed May 04, 2016 8:45 pm

Ovg wrote:Indeed! Cintanotes.com/help wrote:
"NOTE: This extended query syntax works only for note title and text."

Oh right :) but this could be interpreted multiple ways. For example, it only works on title and text, or, it only works when search option for 'title and text' is selected, or just 'it doesn't work on note creation time or tags.'
At least the mystery is solved now!

Return to “CintaNotes Personal Notes Manager”