From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Joel Reicher Newsgroups: gmane.emacs.help Subject: Re: Any package for boolean search? Date: Sat, 28 Dec 2024 14:44:59 +1100 Message-ID: <86seq8a2tg.fsf@gmail.com> References: <86a5cjdlrv.fsf@gmail.com> <86v7v6avg8.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; format=flowed Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30104"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) To: Help GNU Emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat Dec 28 04:45:45 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 1tRNlo-0007es-QM for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 28 Dec 2024 04:45:44 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tRNlF-0002Wg-9C; Fri, 27 Dec 2024 22:45:09 -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 1tRNlD-0002Uv-PP for help-gnu-emacs@gnu.org; Fri, 27 Dec 2024 22:45:07 -0500 Original-Received: from mail-pl1-x62c.google.com ([2607:f8b0:4864:20::62c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tRNlB-0008Dh-7C for help-gnu-emacs@gnu.org; Fri, 27 Dec 2024 22:45:07 -0500 Original-Received: by mail-pl1-x62c.google.com with SMTP id d9443c01a7336-216395e151bso69552275ad.0 for ; Fri, 27 Dec 2024 19:45:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1735357503; x=1735962303; darn=gnu.org; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:to:from:from:to:cc:subject:date:message-id:reply-to; bh=H2lXz2epkvBj/MXZ3LuZ7Lv5oS7eDX+/d7txi6RFCWY=; b=AmlU4ToYctzmJMrDAQLidTJBnVC6Mg46PEsBijEGi2UX0xvUac7xz70AYWu8Flg5zh TxmuJ6HiggTtt2BvOFuq53dLeHcRZzJCrYSBwYHKa7pY9yE+e0IAHD5pxK/v8xMyNh+l 4xr2d2nLrQx8MB3JU679c83VY1Sq8eXLhBXeSU+nYmgp7sC8qpw3i3PY+AngjSpxjLJJ qk8Sg9Qh3oKFHOQbU2TQ/yYUX5tbPmBDU/sihDyig/wllMneEemC1trqLB3I8HZHL2aV 7Nm3tPVadb2gFM/65b3s3poVjrbKlpQf2Cqbrw7ivPD6YEr4ifoUHh1EitDDpmd5c4M6 U/yw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1735357503; x=1735962303; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=H2lXz2epkvBj/MXZ3LuZ7Lv5oS7eDX+/d7txi6RFCWY=; b=e67LADuawQzIxHDmqyA0GBxRqOtccvF35HApKL0jTbqRWbPuaV4QGMrkjtoGuvzuTt r99gtuCg/QsLJa0hKBPqifLnZpZa80qA4g/zKXteWuyowBHXMCnaQGrlOQ7/h14N7fu1 1VhvXvzVooU23GV4u+/nW/29ZTHFSZ9DAD+l5xh8VnnwMhBFRSyXVgRGe96xH0jXxXNN Rkpma50E1CpqU5npwnKszFoMKfJKx0M6s/JjRaF6a6BdT0+3IdsouG6cBPIIR4AX+h8M fDb04zs1pl8hHFnV12tB13xKZyAhFjG1q2PttbPQgxoqSvdlR7TMrWlkWvWKkvwP6Lam z+vg== X-Gm-Message-State: AOJu0YyLzEaRAyZboQDhFFiaWCjmC8SPZPoDnL2NETC4kKySI2Ae5bYE L2fjNn5zBvN8i2NCXwa/8TqxeyXIJNszVoALMl8q+Yg3Q7vJQbgXfACKuw== X-Gm-Gg: ASbGnctXoZ5npJUztv+4R3gh3aMW1HIE/RLUik4//KdMHFHPqg9PaZdb6E7tPlCZoq5 BU1ujUdXehqHnHE6FW7GGcgwi9JdJqkzRk+/30Iv+g2rLUMGBReSkDwmAEYzpS1lXxH1QuJ6JXy GTKQglrdjmyBR9hpdUV9ahd+cQ4Dy3CvKItQ9669VeRSJsXueNDET3j/msD6VNXYjdwQXrarPwt JPd30SYngo/7QcaAAnrZce7aVQb/8ZcNVIBYI8uv7LmJKUVycSCLEVR07sfd7RsK9b5NRpfXOlY e9Jo400+wLfTU8KAPlNYQVyVRhZD3aeGqCzC34N3Qv7Y X-Google-Smtp-Source: AGHT+IEUDLX2lP48g8NaG8uqKe+6udEo2GkCFh4ZeWcJbNEoh7ckE7LVIrv9+HDVmxnvV/2I/vp9rA== X-Received: by 2002:a17:902:e5d2:b0:216:4676:dfb5 with SMTP id d9443c01a7336-219e6d59e98mr466869375ad.21.1735357503346; Fri, 27 Dec 2024 19:45:03 -0800 (PST) Original-Received: from LAPTOP-ACR66VVN (139-218-25-158.sta.wbroadband.net.au. [139.218.25.158]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-219dc962c3dsm141963445ad.31.2024.12.27.19.45.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Dec 2024 19:45:02 -0800 (PST) In-Reply-To: (Jean Louis's message of "Fri, 27 Dec 2024 14:05:40 +0300") Received-SPF: pass client-ip=2607:f8b0:4864:20::62c; envelope-from=joel.reicher@gmail.com; helo=mail-pl1-x62c.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham 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:149037 Archived-At: Jean Louis writes: > * Joel Reicher [2024-12-27 02:16]: >> Jean Louis writes: >> >>> * Joel Reicher [2024-12-26 09:03]: >> >> [...] >> >>>> Is there an Emacs or elisp aspect to this question I might be >>>> missing? >>> >>> I don't know what you mean. I am looking for some ready >>> package that provides maybe string searching within other >>> strings, by using boolean operators. >> >> Why are you expecting this to be a package? Strings are a >> native/primitive elisp datatype. > > Thanks, though, I do not expect, I am asking if someone knows > about it. Those AND, OR, NOT are pretty classic, not so? For algebra, yes. For searching, no. But because searching is done with predicates (equality and perhaps an ordering, as I mentioned in another email) other predicates can be formed from the basic ones using algebraic operators. >> (info "(elisp) Text Comparison") > > I can't find there anything related, sure as basic functions is > very useful, but doesn't parse the query. Oh, you're asking for something to parse a query. Now I understand. You can't expect there already to be a package for parsing a syntax you're designing now. But if you're not designing the syntax and you want to find something that will do an existing syntax, possibly the simplest is Lisp itself since Lisp has all these operators and is homoiconic. If the query syntax is Lisp, the string can be passed to read and eval and you're done, I think. Regards, - Joel