trckpd

GET _/search/term={t}

@See Document

Returns a list of documents whose title or text contain the search term. The information is returned in JSON format containing document details, except for attachments.

Path Parameters :

  • None

Request Headers :

  • Accept: application/json
  • Content-Type: application/json

Query Parameters :

  • term (string) : Any search term, can contain whitespace.

Response Headers :

  • Accept: application/json
  • Content-Type: application/json

Response JSON Array Objects :

  • _id (string) : Document id, UUID string.
  • srcid (string) : Document id at source.
  • title (string) : Title of the document.
  • abstract (string) : First 160 characters of the document.
  • source (string) : Origin of the document. Can be one of three, WIKIPEDIA, GUTENBERG and , YOUTUBE.
  • attachment (list) : HTML or/and plain text.
  • cdate (timestamp) : Time of creation.
  • udate (timestamp) : Last update time.

Status Codes :

  • 200 OK : Request completed successfully.
  • 500 Server Error : Server failed, try later.