Interface: Searches

Searches

Searches are performed on a solr search platform.

Methods

<static> search(query, type=, limit, offset) → {Array.<Search>}

/search/:query?type=:type&offset=:offset&limit=:limit

Search for content for the given query (takes offset and content type as arguments)

Parameters:
Name Type Argument Default Description
query string

Search query

type= string | Array.<string> <optional>

Type of content to search for (either host, page, podcast, or program).
Note, if multiple types are to be searched for pass a comma-separated
string with no spaces, i.e. "host,page,program" and not "host, page, program".

limit int <optional>
10

Number of results to return

offset int <optional>
0

Offset for search results

See:
  • /search/simon
  • /search/interne%20affærer?type=program
  • /search/mikael?type=host,program,page
Returns:

Array of search results for the given query

Type
Array.<Search>

<static> search(query, type=, limit, offset, sort) → {Array.<Search>}

/search/:query?type=:type&offset=:offset&limit=:limit

Search for content for the given query (takes offset and content type as arguments)

Parameters:
Name Type Argument Default Description
query string

Search query

type= string | Array.<string> <optional>

Type of content to search for (either host, page, podcast, or program).
Note, if multiple types are to be searched for pass a comma-separated
string with no spaces, i.e. "host,page,program" and not "host, page, program".

limit int <optional>
10

Number of results to return

offset int <optional>
0

Offset for search results

sort boolean <optional>
false

Whether or not to sort after date

See:
  • /search/simon
  • /search/interne%20affærer?type=program
  • /search/mikael?type=host,program,page
Returns:

Array of search results for the given query

Type
Array.<Search>

Interface: Searches

Searches

Searches are performed on a solr search platform.

Methods

<static> search(query, type=, limit, offset) → {Array.<Search>}

/search/:query?type=:type&offset=:offset&limit=:limit

Search for content for the given query (takes offset and content type as arguments)

Parameters:
Name Type Argument Default Description
query string

Search query

type= string | Array.<string> <optional>

Type of content to search for (either host, page, podcast, or program).
Note, if multiple types are to be searched for pass a comma-separated
string with no spaces, i.e. "host,page,program" and not "host, page, program".

limit int <optional>
10

Number of results to return

offset int <optional>
0

Offset for search results

See:
  • /search/simon
  • /search/interne%20affærer?type=program
  • /search/mikael?type=host,program,page
Returns:

Array of search results for the given query

Type
Array.<Search>

<static> search(query, type=, limit, offset, sort) → {Array.<Search>}

/search/:query?type=:type&offset=:offset&limit=:limit

Search for content for the given query (takes offset and content type as arguments)

Parameters:
Name Type Argument Default Description
query string

Search query

type= string | Array.<string> <optional>

Type of content to search for (either host, page, podcast, or program).
Note, if multiple types are to be searched for pass a comma-separated
string with no spaces, i.e. "host,page,program" and not "host, page, program".

limit int <optional>
10

Number of results to return

offset int <optional>
0

Offset for search results

sort boolean <optional>
false

Whether or not to sort after date

See:
  • /search/simon
  • /search/interne%20affærer?type=program
  • /search/mikael?type=host,program,page
Returns:

Array of search results for the given query

Type
Array.<Search>