unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Joel Reicher <joel.reicher@gmail.com>
To: Help GNU Emacs <help-gnu-emacs@gnu.org>
Subject: Re: Any package for boolean search?
Date: Sat, 28 Dec 2024 14:44:59 +1100	[thread overview]
Message-ID: <86seq8a2tg.fsf@gmail.com> (raw)
In-Reply-To: <Z26KBPXZyrGbJnJj@lco2> (Jean Louis's message of "Fri, 27 Dec 2024 14:05:40 +0300")

Jean Louis <bugs@gnu.support> writes:

> * Joel Reicher <joel.reicher@gmail.com> [2024-12-27 02:16]:
>> Jean Louis <bugs@gnu.support> writes:
>>
>>> * Joel Reicher <joel.reicher@gmail.com> [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



  reply	other threads:[~2024-12-28  3:44 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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
2024-12-26  6:02 ` Joel Reicher
2024-12-26 10:58   ` Jean Louis
2024-12-26 23:14     ` Joel Reicher
2024-12-27 11:05       ` Jean Louis
2024-12-28  3:44         ` Joel Reicher [this message]
2024-12-28 13:43           ` Jean Louis
2024-12-28 16:06             ` Joel Reicher
2024-12-28 16:20               ` 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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=86seq8a2tg.fsf@gmail.com \
    --to=joel.reicher@gmail.com \
    --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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).