Search Response

Search Response

All details about the processed search query are included in the search response, which is provided in JSON format for both the new Search API and the Search Servlet.

New Search API JSON Response

{
  "start" : 1,
  "hits" : 218,
  "end" : 1,
   "facets" : [ {
    "facet" : [ {
      "count" : 1,
      "name" : "keywords",
      "int" : [ {
        "from" : null,
        "count" : 2,
        "to" : null,
        "name" : "world news",
        "filter" : false
      } ]
    } ]
  },
  "sortDir" : "desc",
  "suggest" : "",
  "tuning" : {
    "clickWeight" : "10",
    "tuneKey" : "2",
    "tuneURL" : "5",
    "tuneDoc" : "180",
    "tuneDesc" : "3",
    "tune" : true,
    "tuneTitle" : "5",
    "tuneURLWeight" : "10",
    "tune.0" : "5",
    "tune.1" : "3",
    "tune.2" : "2",
    "tune.3" : "5",
    "tune.4" : "180",
    "tune.5" : "10",
    "tune.6" : "10"
  },
  "lastPage" : 218,
  "highlight" : true,
  "enddate" : "",
  "sort" : "relevance",
  "startdate" : "",
  "ads" : [ ],
  "currentPage" : 1,
  "query" : "world",
  "result" : [ {
    "col" : "6",
    "creationdate" : "2020-07-15T13:07:01.249Z",
    "twitter:card" : "summary_large_image",
    "og:site_name" : "CNN",
    "keywords" : "world news, international news, world news today",
    "description" : "View CNN <highlight>world</highlight> news today for international news and videos from Europe, Asia, Africa, the Middle East and the Americas.",
    "click_count" : 1.0,
    "section" : "world",
    "language" : "en",
    "vr:canonical" : "https://edition.cnn.com/world",
    "title" : "<highlight>World</highlight> news – breaking news, videos and headlines - CNN",
    "sb_boost" : 1.0,
    "og:description" : "View CNN world news today for international news and videos from Europe, Asia, Africa, the Middle East and the Americas.",
    "document_allow" : [ "unsecured" ],
    "og:pubdate" : "2014-02-18T16:43:26Z",
    "uid" : "e961bce18e0be2c3a020e51d05b4a152",
    "colname" : "atest",
    "alpha" : "World news – breaking news, videos ",
    "sortdate" : "2020-07-15T13:07:01.071Z",
    "lastmod" : "2020-07-07T10:01:53Z",
    "pubdate" : "2014-02-18T16:43:26Z",
    "twitter:title" : "World news – breaking news, videos and headlines - CNN",
    "og:type" : "website",
    "indexdate" : "2020-07-15T13:07:01.249Z",
    "urllen" : 29.0,
    "og:title" : "World news – breaking news, videos and headlines - CNN",
    "fb:pages" : "5550296508,18793419640",
    "url" : "https://edition.cnn.com/world",
    "contenttype" : "HTML",
    "referrer" : "unsafe-url",
    "fb:app_id" : "80401312489",
    "filename" : "",
    "size" : "1347832",
    "viewport" : "widthdevice-width, initial-scale1.0, minimum-scale1.0",
    "old_uid" : "https://edition.cnn.com/world",
    "twitter:description" : "View CNN world news today for international news and videos from Europe, Asia, Africa, the Middle East and the Americas.",
    "lastmodified" : "2020-07-15T13:07:01.071Z",
    "og:url" : "https://www.cnn.com/world",
    "crawldate" : "2020-07-15T13:06:55.162Z",
    "es_metadata_id" : "e961bce18e0be2c3a020e51d05b4a152",
    "context" : "<highlight>World</highlight> news – breaking news, videos and headlines - CNN <highlight>World</highlight> Africa Americas Asia Australia China Europe India Middle East United Kingdom Edition U.S. International Arabic Español Search CNN Open...Menu Africa Americas Asia Australia China Europe India Middle East United Kingdom Search Edition U.S. International Arabic Español <highlight>World</highlight> Africa Americas Asia Australia China Europe India Middle East...Shows A-Z CNNVR Features Call to Earth Freedom Project Impact Your <highlight>World</highlight> Inside Africa 2 Degrees CNN Heroes All Features More Photos Longform Investigations CNN Profiles CNN Leadership CNN Newsletters...",
    "no" : "1"
  } ],
  "filter" : "",
  "time" : 23.0
}

Attributes for New Search API Response

  • This table lists the main attributes included in the general search response for the New Search API.
AttributeDescription
startShows the number of the first result on the page.
hitsTotal number of matching results for the search.
endShows the number of the last result on the page.
facetsLists the facet filters used in the search URL, based on the facet.field parameter.
facet.countNumber of facet values returned (as set in the URL).
facet.nameName of the facet field.
facet.int.fromThe starting value for a date or number range.
facet.int.countNumber of results that match that specific value or range.
facet.int.toThe ending value for a date or number range.
facet.int.nameThe actual facet value displayed.
facet.int.filterShows true if that facet value was applied as a filter.
sortdirSorting order of results: asc (ascending) or desc (descending).
suggestShows spelling suggestion if available.
tuningShows relevancy tuning information.
tuning.clickweightDescriptive tuning value for click count.
tuning.tuneKeyDescriptive tuning value for keywords.
tuning.tuneURLDescriptive tuning value for URL.
tuning.tuneDocDescriptive tuning value for lastmodified date.
tuning.tuneDescDescriptive tuning value for description.
tuning.tuneTrue if tuning is ON, false if OFF.
tuning.tuneTitleDescriptive tuning value for title.
tuning.tuneURLWeightDescriptive tuning value for URL length.
tune.0Tuning value for title.
tune.1Tuning value for description.
tune.2Tuning value for keywords.
tune.3Tuning value for URL.
tune.4Tuning value for lastmodified date.
tune.5Tuning value for URL length.
tune.6Tuning value for click count.
lastPageLast page number for the results.
highlightTrue if highlighting is ON, false if OFF.
enddateEnd date used in date range search.
sortSorting type: relevance, date, or alpha.
startdateStart date used in date range search.
adsFeatured results for the query.
currentPageThe page number you are currently on.
queryThe search text you entered.
resultContains all search results (details shown in next table).
filterAny preset filter used.
timeTime taken to show results (in seconds).
pagesizeNumber of results shown per page.
  • This table lists the basic details included with each search result in the New Search API.
  • These are the common fields that appear for all results.
  • Additional custom fields may also appear depending on the meta tags and the type of collection you indexed.
Element / AttributeDescription
noThe position number of the search result.
urlThe link to the document in the search result.
lastmodifiedThe date when the document was last updated.
indexdateThe date when the document was added to the search index.
creationdateThe date when the document was originally created.
titleThe name or title of the document.
alphaText used for sorting results alphabetically.
keywordsWords or tags found inside the document.
contenttypeThe file type or format of the document.
contextA small preview showing where the searched words appear in the document (shown only if Keyword-In-Context is enabled).
descriptionA short description from the document.
click_countThe number of times this search result has been clicked or viewed.
languageThe language used in the document.
scoreHow relevant the document is to the search query.
highlightShows the words that are highlighted in the search result.
sizeThe file size of the document (in bytes).
urllenThe total number of characters in the URL.
colCollection number.
colnameCollection name.
filenameName of file indexed.