* Any package for boolean search?
@ 2024-12-25 10:01 Jean Louis
2024-12-25 16:21 ` [External] : " Drew Adams
0 siblings, 1 reply; 3+ messages in thread
From: Jean Louis @ 2024-12-25 10:01 UTC (permalink / raw)
To: Help GNU Emacs
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: [External] : Any package for boolean search?
2024-12-25 10:01 Any package for boolean search? Jean Louis
@ 2024-12-25 16:21 ` Drew Adams
2024-12-26 0:15 ` Jean Louis
0 siblings, 1 reply; 3+ messages in thread
From: Drew Adams @ 2024-12-25 16:21 UTC (permalink / raw)
To: Jean Louis, Help GNU Emacs
> 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.
I can't help you wrt website searches etc. Hopefully
someone else will.
___
But FWIW, Isearch+ provides such functionality, on
the fly, for incremental buffer/file searching.
https://www.emacswiki.org/emacs/DynamicIsearchFiltering
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [External] : Any package for boolean search?
2024-12-25 16:21 ` [External] : " Drew Adams
@ 2024-12-26 0:15 ` Jean Louis
0 siblings, 0 replies; 3+ messages in thread
From: Jean Louis @ 2024-12-26 0:15 UTC (permalink / raw)
To: Drew Adams; +Cc: Help GNU Emacs
* Drew Adams <drew.adams@oracle.com> [2024-12-25 19:21]:
> > 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.
>
> I can't help you wrt website searches etc. Hopefully
> someone else will.
I need more time, as I spend time in research. I think hashes are not
easiest way to go, so I will do this way:
1. Make a simple list of strings;
2. Concatenate id, name, description, summary or full text without
markup to single line;
3. Search lines;
4. Extract ID
5. Load nicely prepared name, description, image from hash
6. Display on the website.
We will see how fast it works.
> But FWIW, Isearch+ provides such functionality, on
> the fly, for incremental buffer/file searching.
>
> https://www.emacswiki.org/emacs/DynamicIsearchFiltering
--
Jean Louis
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-12-26 0:15 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-25 10:01 Any package for boolean search? Jean Louis
2024-12-25 16:21 ` [External] : " Drew Adams
2024-12-26 0:15 ` Jean Louis
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.