[PATCH v3] Support conjunctive keyword search in RPC interface

Kevin Morris kevr.gtalk at gmail.com
Mon Jul 6 20:39:59 UTC 2020


Sweet! Thanks for all your time/help with this, Lukas. I'm growing more
familiar with the codebase, I'll work on reducing the amount of patchsets
I send through for stuff. Sorry about all of them.

On Mon, Jul 6, 2020 at 1:36 PM Lukas Fleischer <lfleischer at archlinux.org>
wrote:

> On Sun, 05 Jul 2020 at 21:19:06, Kevin Morris wrote:
> > Newly supported API Version 6 modifies `type=search` for _by_ type
> > `name-desc`: it now behaves the same as `name-desc` search through the
> > https://aur.archlinux.org/packages/ search page.
> >
> > Search for packages containing the literal keyword `blah blah` AND
> `haha`:
> > https://aur.archlinux.org/rpc/?v=6&type=search&arg="blah blah"%20haha
> >
> > Search for packages containing the literal keyword `abc 123`:
> > https://aur.archlinux.org/rpc/?v=6&type=search&arg="abc 123"
> >
> > The following example searches for packages that contain `blah` AND
> `abc`:
> > https://aur.archlinux.org/rpc/?v=6&type=search&arg=blah%20abc
> >
> > The legacy method still searches for packages that contain `blah abc`:
> > https://aur.archlinux.org/rpc/?v=5&type=search&arg=blah%20abc
> > https://aur.archlinux.org/rpc/?v=5&type=search&arg=blah%20abc
> >
> > API Version 6 is currently only considered during a `search` of
> `name-desc`.
> >
> > Note: This change was written as a solution to
> > https://bugs.archlinux.org/task/49133.
> >
> > PS: + Some spacing issues fixed in comments.
> >
> > Signed-off-by: Kevin Morris <kevr.gtalk at gmail.com>
> > ---
> >  doc/rpc.txt               |  4 ++++
> >  web/lib/aurjson.class.php | 33 +++++++++++++++++++++++----------
> >  web/lib/pkgfuncs.inc.php  | 36 +++++++++++++++++++++++-------------
> >  3 files changed, 50 insertions(+), 23 deletions(-)
>
> Awesome! Pushed to pu with some minor space changes and code
> deduplication. Thanks!
>


-- 
Kevin Morris
Software Developer

Personal Inquiries: kevr.gtalk at gmail.com
Personal Phone: (415) 583-9687

Technologies: C, C++, Python, Django, Ruby, Rails, ReactJS, jQuery,
Javascript, SQL, Redux


More information about the aur-dev mailing list