Search

Search

General search function.

search(sid, resultType, casesensitive, allRequired, queryRows);

sid

Session id.

resultType

resultType is a string that can be any of following values:

  • Track returns trackId:s as result

  • Album returns albumId as result

  • AArtist returns artistId as result. Requires that the artist is the Album Artist.

  • TArtist returns artistId as result. Requires that the artist is the Album Artist.

casesensitive

Either True or False.

allRequired

Either True or False.

queryRows

An array of arrays. The first array can have any number of rows (query rows). The second array has always three elements:

  1. source which can be any of following values:

    • Album artist name

    • Album artist i

    • Album title

    • Album id

    • Album release year

    • Album cd

    • Track name

    • Track id

    • Track number

    • Track length

    • Track artist name, only for testing

    • Track artist id, only for testing

  2. Operator

    • contains

    • not contains

    • is

    • is not

    • greater than

    • lesser than

  3. argument