packages.search

Description

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

Namespace:

packages.search

Method: advanced

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

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

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

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 actKey - 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

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

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 - 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

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

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

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"