help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Any package for boolean search?


From: Joel Reicher
Subject: Re: Any package for boolean search?
Date: Sat, 28 Dec 2024 14:44:59 +1100
User-agent: Gnus/5.13 (Gnus v5.13)

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 via email to

[Prev in Thread] Current Thread [Next in Thread]