[Search]Seach with boolean operators

altaiir
Posts: 3
Joined: Thu Mar 18, 2010 8:03 am
Contact:

[Search]Seach with boolean operators

Postby altaiir » Fri Mar 19, 2010 4:43 am

Awesome author, I strongly suggest that Cintanotes should take advantage of the below feature of everything. with this, i think Cintanotes will get a great improvement!!!
==================================================
How do I use boolean operators?
AND is the default boolean operator.
For example, here is how to search for foo and bar: foo bar
To search for either of two search terms, add a | between the terms.
For example, here is how to search for .jpg or .bmp: .jpg | .bmp
To exclude something from the search include a ! at the front of the term.
For example, here is how to search for abc and not 123: abc !123
How do I use wildcards?
Using a * in your search will match any number of any type of character.
For example, here is how to search for files and folders that start with e and end with g: e*g
Using a ? in your search will match one character.
For example, here is how to search for files that have a 2 letter file extension: *.??
==================================================

Best regards!
User avatar
CintaNotes Developer
Site Admin
Posts: 5001
Joined: Fri Dec 12, 2008 4:45 pm
Contact:

Re: [Search]Seach with boolean operators

Postby CintaNotes Developer » Fri Mar 19, 2010 4:47 am

Thanks for your suggestion.
Actually this is already partly imlpemented in version 1.0.
First, make sure that "Exact Search" option in the search menu (click on the magnifying glass) is turned OFF.
Then you can search using the boolean operators.
This is how it works:
  • 'word1 word2' matches all notes that contain both words in any order;
  • '-word1' matches all notes that don't contain word1;
  • 'word1 -word2' matches notes that have word1 but not have word2;
  • 'word1 word2|word3' matches notes that have word1 and have either word2 or word3
  • different combinations of the above also work.
  • It works only for note title and text.
  • '|' (OR operator) binds tighter than ' ' (AND operator).
  • Search result highlighting is not yet on par with this functionality.

As for the wildcards, they are on the roadmap and will be implemented in one of the next versions.
Alex
altaiir
Posts: 3
Joined: Thu Mar 18, 2010 8:03 am
Contact:

Re: [Search]Seach with boolean operators

Postby altaiir » Fri Mar 19, 2010 5:37 am

that's cool..I'm looking forward to the next ver. :P
Midas
Moderator
Posts: 370
Joined: Thu Jan 29, 2009 10:40 am
Contact:

Re: [Search]Seach with boolean operators

Postby Midas » Tue Mar 23, 2010 12:32 am

Alex,

As a specialized search resource, you might want to give future consideration to proximity operators like "apples &3 oranges" for finding term 'apples' within three words of distance from term 'oranges'...

Just a though.
:D Midas, your friendly nugget gobbler, with a message from our sponsors:

Ask questions the smart way -- see www.catb.org/~esr/faqs/
User avatar
CintaNotes Developer
Site Admin
Posts: 5001
Joined: Fri Dec 12, 2008 4:45 pm
Contact:

Re: [Search]Seach with boolean operators

Postby CintaNotes Developer » Mon Mar 29, 2010 4:32 pm

Yes, it is not very hard to do. But I don't think many people will use this all too often.
But maybe I have this impression while I myself don't use this operator.
Another possibility would be to include this in the commercial version.
I think we should start a new topic devoted to this NEAR operator, and see how the poll goes.
Alex

Return to “Completed Feature Requests”