Search Response

Search Response

All information regarding the processed search query is available in the search response. The search response is available in JSON format for new search API and Search Servlet. You can also get the search response in XML for 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 attributes in general search response for New Search API
AttributeDescription
startThe hit or match number of the first search result on this page.
hitsThe number of hits or matches for the query.
endThe hit or match number of the last search result on this page.
facetsThe facets enabled in the search URL.
The list of facets will be available in the response based on the facet. field parameter provided in the search API URL.
facet.countfacet field size specified in the URL.
facet.nameName of the facet field.
facet.int.fromfrom attribute specific to the date and a numeric field.
facet.int.countThe count on the number of results with the specific value.
facet.int.toto attribute specific to the date and numeric field
facet.int.nameThe value for the facet.
facet.int.filterThis attribute will be true if the value of the facet is specified in the facet filter attribute in the URL.
sortdirIndicates whether the search results are sorted in ascending or descending order. The possible values for this attribute are asc and desc.
suggestSpelling suggestions, if available.
tuningTuning related parameters.
tuning.clickweightDescriptive Tuning parameter value for click count.
tuning.tuneKeyDescriptive tuning parameter value for Keywords.
tuning.tuneURLDescriptive tuning parameter value for URL.
tuning.tuneDocDescriptive tuning parameter value for Lastmodified date.
tuning.tuneDescDescriptive tuning parameter value for Description
tuning.tuneTuning parameter value will be true when tuning is enabled and false otherwise.
tuning.tuneTitleDescriptive tuning parameter value for Title.
tuning.tuneURLWeightDescriptive tuning parameter value for the length of URL.
tune.0Tuning parameter value for Title
tune.1Tuning parameter value for Description.
tune.2Tuning parameter value for Keywords.
tune.3Tuning parameter value for URL.
tune.4Tuning parameter value for lastmodified date.
tune.5Tuning parameter value for URL length.
tune.6Tuning parameter value for click count.
lastPageThis indicates the last possible page number for this set of search results.
highlightWhen the highlight option is enabled in search settings the value would be true, otherwise, it would be false.
enddateIndicates the end date for the date range search.
sortIndicates how the search results are sorted. The possible values for this attribute are relevance, date, and alpha.
startdateIndicates the start date for the date range search.
adsFeatured results for the search query
currentPageThis indicates the current page number for this set of search results.
queryThe search query.
resultThe results element with multiple search results. The attributes of this element are listed in the next table.
filterPreset filter used for the query.
timeTime is taken to return the results of the search query in seconds.
pagesizeThe number of search results per page.
  • This table lists the general attributes within each search result for New Search API
  • These are the general fields.
  • There will also be custom fields that will be indexed based on the meta tags and collection type indexed.
Element / AttributeDescription
noThe order number of the search result.
urlSearch result document URL.
lastmodifiedLast modified date of the document.
indexdateDate the document was indexed.
creationdateDate the document was created.
titleTitle of the document.
alphaThe text for the search result that is used for alphabetical sorting.
keywordsThe keywords contained in the document.
contenttypeThe format of the document.
contextThis is the fragment of the content where the search query appears. This is available only when the documents have been indexed with the Keyword-In-Context feature enabled.
descriptionThe description contained in the document.
click_countCount value which gets incremented based on clicking/viewing of corresponding search result.
languageLanguage setting for the document.
scoreThe relevance score for the document for this query.
highlightIndicates terms that have been highlighted.
sizeDocument size in bytes.
urllenThe length of the url.
colCollection number.
colnameCollection name.
filenameName of file indexed.