Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • A aurweb
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 91
    • Issues 91
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 7
    • Merge requests 7
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Arch Linux
  • aurweb
  • Repository
Switch branch/tag
  • aurweb
  • web
  • lib
  • pkgfuncs.inc.php
Find file BlameHistoryPermalink
  • Kevin Morris's avatar
    Support conjunctive keyword search in RPC interface · 9e30013a
    Kevin Morris authored Jul 05, 2020 and Lukas Fleischer's avatar Lukas Fleischer committed Sep 05, 2020
    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: default avatarKevin Morris <kevr.gtalk@gmail.com>
    Signed-off-by: Lukas Fleischer's avatarLukas Fleischer <lfleischer@archlinux.org>
    9e30013a