[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Guix Website] A Search Page for Packages
From: |
Christopher Baines |
Subject: |
Re: [Guix Website] A Search Page for Packages |
Date: |
Sat, 19 Nov 2022 16:13:01 +0000 |
User-agent: |
mu4e 1.8.11; emacs 28.2 |
John Kehayias <john.kehayias@protonmail.com> writes:
> Question: what is the search syntax that is expected? I tried
> searching for "stump" and it only returned a go package that ended in
> "stump." Searching for "stumpwm" turned up all the expected suspects
> though. While "stump*" was the same as "stump."
The search functionality is being provided by the Guix Data Service,
which in turn is searching through records in a PostgreSQL database.
The relevant code is here [1], and it's the plainto_tsquery bit that
starts the transformation from a string to what PostgreSQL is using for
the search.
1:
https://git.savannah.gnu.org/cgit/guix/data-service.git/tree/guix-data-service/model/package.scm#n144
So yeah, I don't think the way it's implemented currently supports * as
a wildcard, although maybe that could be supported by changing the way
the query works.
Chris
signature.asc
Description: PGP signature
- Re: [Guix Website] A Search Page for Packages, (continued)
- Re: [Guix Website] A Search Page for Packages, Luis Felipe, 2022/11/16
- Re: [Guix Website] A Search Page for Packages, Luis Felipe, 2022/11/16
- Re: [Guix Website] A Search Page for Packages, Christopher Baines, 2022/11/16
- Re: [Guix Website] A Search Page for Packages, Luis Felipe, 2022/11/16
- Re: [Guix Website] A Search Page for Packages, Luis Felipe, 2022/11/18
- Re: [Guix Website] A Search Page for Packages, Christopher Baines, 2022/11/19
- Re: [Guix Website] A Search Page for Packages, Luis Felipe, 2022/11/19
- Re: [Guix Website] A Search Page for Packages, Luis Felipe, 2022/11/19
- Re: [Guix Website] A Search Page for Packages, Ludovic Courtès, 2022/11/21
- Re: [Guix Website] A Search Page for Packages, John Kehayias, 2022/11/19
- Re: [Guix Website] A Search Page for Packages,
Christopher Baines <=
- Re: [Guix Website] A Search Page for Packages, John Kehayias, 2022/11/21
- Re: [Guix Website] A Search Page for Packages, zimoun, 2022/11/20
- Re: [Guix Website] A Search Page for Packages, Christopher Baines, 2022/11/21
- Re: [Guix Website] A Search Page for Packages, zimoun, 2022/11/21
- Re: [Guix Website] A Search Page for Packages, Christopher Baines, 2022/11/22
- Re: [Guix Website] A Search Page for Packages, Ludovic Courtès, 2022/11/21
- Re: [Guix Website] A Search Page for Packages, Christopher Baines, 2022/11/21
- Re: [Guix Website] A Search Page for Packages, Luis Felipe, 2022/11/21
- Re: [Guix Website] A Search Page for Packages, Luis Felipe, 2022/11/21
- Re: [Guix Website] A Search Page for Packages, Julien Lepiller, 2022/11/21