packages.search

Description

Methods to interface to package search capabilities in search server..

Namespace:

packages.search

Method: advanced

HTTP GET

Description:

Advanced method to search lucene indexes with a passed in query written in Lucene Query Parser syntax. Lucene Query Parser syntax is defined at http://lucene.apache.org/java/3_5_0/queryparsersyntax.html_blank lucene.apache.org. Fields searchable for Packages: name, epoch, version, release, arch, description, summary Lucene Query Example: "name:kernel AND version:2.6.18 AND -description:devel"

Parameters:

  • string sessionKey

  • string luceneQuery - a query written in the form of Lucene QueryParser Syntax

Returns:

  • array :

  • struct package overview

    • int "id"

    • string "name"

    • string "summary"

    • string "description"

    • string "version"

    • string "release"

    • string "arch"

    • string "epoch"

    • string "provider"

Method: advancedWithActKey

HTTP GET

Description:

Advanced method to search lucene indexes with a passed in query written in Lucene Query Parser syntax, additionally this method will limit results to those which are associated with a given activation key. Lucene Query Parser syntax is defined at http://lucene.apache.org/java/3_5_0/queryparsersyntax.html_blank lucene.apache.org. Fields searchable for Packages: name, epoch, version, release, arch, description, summary Lucene Query Example: "name:kernel AND version:2.6.18 AND -description:devel"

Parameters:

  • string sessionKey

  • string luceneQuery - a query written in the form of Lucene QueryParser Syntax

  • string activationKey - activation key to look for packages in

Returns:

  • array :

  • struct package overview

    • int "id"

    • string "name"

    • string "summary"

    • string "description"

    • string "version"

    • string "release"

    • string "arch"

    • string "epoch"

    • string "provider"

Method: advancedWithChannel

HTTP GET

Description:

Advanced method to search lucene indexes with a passed in query written in Lucene Query Parser syntax, additionally this method will limit results to those which are in the passed in channel label. Lucene Query Parser syntax is defined at http://lucene.apache.org/java/3_5_0/queryparsersyntax.html_blank lucene.apache.org. Fields searchable for Packages: name, epoch, version, release, arch, description, summary Lucene Query Example: "name:kernel AND version:2.6.18 AND -description:devel"

Parameters:

  • string sessionKey

  • string luceneQuery - a query written in the form of Lucene QueryParser Syntax

  • string channelLabel - the channel Label

Returns:

  • array :

  • struct package overview

    • int "id"

    • string "name"

    • string "summary"

    • string "description"

    • string "version"

    • string "release"

    • string "arch"

    • string "epoch"

    • string "provider"

Method: name

HTTP GET

Description:

Search the lucene package indexes for all packages which match the given name.

Parameters:

  • string sessionKey

  • string name - package name to search for

Returns:

  • array :

  • struct package overview

    • int "id"

    • string "name"

    • string "summary"

    • string "description"

    • string "version"

    • string "release"

    • string "arch"

    • string "epoch"

    • string "provider"

Method: nameAndDescription

HTTP GET

Description:

Search the lucene package indexes for all packages which match the given query in name or description

Parameters:

  • string sessionKey

  • string query - text to match in package name or description

Returns:

  • array :

  • struct package overview

    • int "id"

    • string "name"

    • string "summary"

    • string "description"

    • string "version"

    • string "release"

    • string "arch"

    • string "epoch"

    • string "provider"

Method: nameAndSummary

HTTP GET

Description:

Search the lucene package indexes for all packages which match the given query in name or summary.

Parameters:

  • string sessionKey

  • string query - text to match in package name or summary

Returns:

  • array :

  • struct package overview

    • int "id"

    • string "name"

    • string "summary"

    • string "description"

    • string "version"

    • string "release"

    • string "arch"

    • string "epoch"

    • string "provider"