all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Jean Louis <bugs@gnu.support>
To: Help GNU Emacs <help-gnu-emacs@gnu.org>
Subject: Any package for boolean search?
Date: Wed, 25 Dec 2024 13:01:44 +0300	[thread overview]
Message-ID: <fb263a7cee1a34b91c33d70cc20d1bb8.support1@rcdrun.com> (raw)

Hello to all,

Boolean Search: This is a method where search terms are combined using
boolean logic, as described by the operators AND, OR, and NOT.

I would like to implement this classic into the website search. And I
wish to keep it simple.

Here are 20 different queries using boolean search operators AND, OR, and NOT:

1. `apple AND fruit`
2. `car OR truck`
3. `not google`
4. `(apple OR banana) AND fruit`
5. `football NOT soccer`
6. `book AND author`
7. `(dog OR cat) NOT animal`
8. `house AND (furniture OR decor)`
9. `google AND (search OR engine)`
10. `not (car OR truck)`
11. `(phone OR laptop) AND technology`
12. `flower AND (garden OR plant)`
13. `(music OR video) NOT entertainment`
14. `amazon AND (shopping OR online)`
15. `not (phone OR computer)`
16. `(camera OR photo) AND equipment`
17. `travel AND (hotel OR resort)`
18. `(newspaper OR magazine) NOT media`
19. `(game OR puzzle) AND entertainment`
20. `(coffee OR tea) AND (breakfast OR morning)`

I think if there are no parenthesis I should even disregard the OR, is
it right?

I wish there would be some ready made package that handles those
issues.


Jean Louis



             reply	other threads:[~2024-12-25 10:01 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-25 10:01 Jean Louis [this message]
2024-12-25 16:21 ` [External] : Any package for boolean search? Drew Adams
2024-12-26  0:15   ` Jean Louis
2024-12-26  6:02 ` Joel Reicher
2024-12-26 10:58   ` Jean Louis
2024-12-26 11:00   ` Jean Louis

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=fb263a7cee1a34b91c33d70cc20d1bb8.support1@rcdrun.com \
    --to=bugs@gnu.support \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.