From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jean Louis Newsgroups: gmane.emacs.help Subject: Any package for boolean search? Date: Wed, 25 Dec 2024 13:01:44 +0300 Message-ID: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11470"; mail-complaints-to="usenet@ciao.gmane.io" To: Help GNU Emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Dec 25 11:02:31 2024 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tQODl-0002uC-W4 for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 25 Dec 2024 11:02:29 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tQODD-0001N1-0w; Wed, 25 Dec 2024 05:01:55 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tQODA-0001MV-L1 for help-gnu-emacs@gnu.org; Wed, 25 Dec 2024 05:01:52 -0500 Original-Received: from stw1.rcdrun.com ([217.170.207.13]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tQOD7-0006jv-Ma for help-gnu-emacs@gnu.org; Wed, 25 Dec 2024 05:01:51 -0500 Original-Received: from localhost ([::ffff:41.75.177.228]) (AUTH: PLAIN admin, TLS: TLS1.3,256bits,ECDHE_RSA_AES_256_GCM_SHA384) by stw1.rcdrun.com with ESMTPSA id 000000000007DC8D.00000000676BD80A.0011A2D8; Wed, 25 Dec 2024 03:01:46 -0700 Received-SPF: pass client-ip=217.170.207.13; envelope-from=support1@rcdrun.com; helo=stw1.rcdrun.com X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.156, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:148967 Archived-At: 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