**This is the bug tracker for the AUR web interface.**
Use this tracker to report bugs or make feature requests regarding the behaviour or implementation of the AUR software.
Please read the Reporting Bug Guidelines before filing a new task.
http://wiki.archlinux.org/index.php/Reporting_Bug_Guidelines
- Please report bugs related to Arch Linux official packages here: http://bugs.archlinux.org/index.php?project=1
- Please report bugs for [community] packages here: http://bugs.archlinux.org/index.php?project=5
- For any packages in the AUR contact the maintainer or leave a comment on the package's detail page.
Source Code:
https://projects.archlinux.org/aurweb.git/
Use this tracker to report bugs or make feature requests regarding the behaviour or implementation of the AUR software.
Please read the Reporting Bug Guidelines before filing a new task.
http://wiki.archlinux.org/index.php/Reporting_Bug_Guidelines
- Please report bugs related to Arch Linux official packages here: http://bugs.archlinux.org/index.php?project=1
- Please report bugs for [community] packages here: http://bugs.archlinux.org/index.php?project=5
- For any packages in the AUR contact the maintainer or leave a comment on the package's detail page.
Source Code:
https://projects.archlinux.org/aurweb.git/
FS#49133 - AUR RPC cannot provide same results as AUR site search
|
DetailsWhen searching by multiple arguments (e.g. 'git client'), AUR site search seems to use AND operation, i.e. the search results will contain 'git' AND 'client' (378 results total at the moment).
How can the same be achieved by using AUR RPC? If I search for 'git client' (https://aur.archlinux.org/rpc/?v=5&type=search&arg=git%20client), I get 2 results. If I provide both arguments separately (https://aur.archlinux.org/rpc/?v=5&type=search&arg=git&arg=client), I get 1370 results - looks like OR operation is used. |
This task depends upon
Plan for legacy + patch support:
A new API version 6 allows the user to take advantage of new search criteria: When searching with `v=6` by `name` or `name-desc`, return all packages containing _all_ keywords given (quoted substrings are preserved).
Examples:
Search for packages containing literal `blah blah`:
curl 'https://aur.archlinux.org/rpc/?v=6&type=search&arg="blah blah"'
Search for packages containing literal `blah blah` AND `ha ha`:
curl 'https://aur.archlinux.org/rpc/?v=6&type=search&arg="blah blah"%20"ha ha"'
Search for packages containing `blah` AND `hah`:
curl 'https://aur.archlinux.org/rpc/?v=6&type=search&arg=blah%20hah'
Using `v=5` preserves the current (legacy) behavior.
A message titled "[PATCH] Bump RPC API Version 6" has been submitted to aur-dev@archlinux.org regarding this task.