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.

Search Servlet JSON Response

{
    "results":     {
        "@hits": "265",
        "@time": "12.00",
        "@query": "world",
        "@suggest": "",
        "@filter": "",
        "@sort": "relevance",
        "@sortdir": "desc",
        "@start": "1",
        "@end": "1",
        "@currentpage": "1",
        "@lastpage": "265",
        "@startdate": "0",
        "@enddate": "0",
        "@pagesize": "1",
        "@xsl": "json",
        "result":         {
            "@no": "1",
            "@id": "e961bce18e0be2c3a020e51d05b4a152",
            "score": "100",
            "raw_score": "238.80423",
            "title": " <highlight>World</highlight> news – breaking news, videos and headlines - CNN",
            "context": {"text": " <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..."},
            "col": "6",
            "creationdate": "15 Jul 2020 13:07:01 UTC",
            "twitter-card": "summary_large_image",
            "og-site_name": "CNN",
            "keywords": "world news, international news, world news today",
            "description": "View CNN world 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",
            "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 ",
            "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": "15 Jul 2020 13:07:01 UTC",
            "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": "15 Jul 2020 13:07:01 UTC",
            "og-url": "https://www.cnn.com/world",
            "crawldate": "2020-07-15T13:06:55.162Z",
            "es_metadata_id": "e961bce18e0be2c3a020e51d05b4a152"
        }
    },
    "relevance":     {
        "@tune.0": "5",
        "@tune.1": "3",
        "@tune.2": "2",
        "@tune.3": "5",
        "@tune.4": "180",
        "@tune.5": "10",
        "@tune.6": "10"
    },
    "download04xs": {"@download_url": "http://schwab.searchblox.com/searchblox/servlet/SearchServlet?pretty=true&amp;adsDisplay=true&amp;query=world&amp;tune.4=180&amp;tune.5=10&amp;tune.2=2&amp;sort=relevance&amp;tune.3=5&amp;tune.0=5&amp;tune.1=3&amp;tune=true&amp;predictSearch=false&amp;xsl=json&amp;predictResultSize=3&amp;default=AND&amp;relatedQuery=false&amp;topQuery=false&amp;tune.6=10&amp;pagesize=1&amp;page=1&amp;sortdir=desc&amp;adsCount=3&amp;downloadAsZipAlone=true"},
    "links":     {
        "@url": "../servlet/SearchServlet?query=world&amp;filter=&amp;sort=relevance&amp;sortdir=desc&amp;pagesize=1&amp;col=1&amp;col=6&amp;col=3&amp;col=4&amp;col=2&amp;col=5&amp;startdate=0&amp;enddate=0&amp;xsl=json&amp;default=AND&amp;page=",
        "link":         [
                        {
                "@page": "1",
                "@url": "../servlet/SearchServlet?query=world&amp;filter=&amp;sort=relevance&amp;sortdir=desc&amp;pagesize=1&amp;col=1&amp;col=6&amp;col=3&amp;col=4&amp;col=2&amp;col=5&amp;startdate=0&amp;enddate=0&amp;xsl=json&amp;default=AND&amp;page=1"
            },
                        {
                "@page": "2",
                "@url": "../servlet/SearchServlet?query=world&amp;filter=&amp;sort=relevance&amp;sortdir=desc&amp;pagesize=1&amp;col=1&amp;col=6&amp;col=3&amp;col=4&amp;col=2&amp;col=5&amp;startdate=0&amp;enddate=0&amp;xsl=json&amp;default=AND&amp;page=2"
            },
                        {
                "@page": "3",
                "@url": "../servlet/SearchServlet?query=world&amp;filter=&amp;sort=relevance&amp;sortdir=desc&amp;pagesize=1&amp;col=1&amp;col=6&amp;col=3&amp;col=4&amp;col=2&amp;col=5&amp;startdate=0&amp;enddate=0&amp;xsl=json&amp;default=AND&amp;page=3"
            },
                        {
                "@page": "4",
                "@url": "../servlet/SearchServlet?query=world&amp;filter=&amp;sort=relevance&amp;sortdir=desc&amp;pagesize=1&amp;col=1&amp;col=6&amp;col=3&amp;col=4&amp;col=2&amp;col=5&amp;startdate=0&amp;enddate=0&amp;xsl=json&amp;default=AND&amp;page=4"
            },
                        {
                "@page": "5",
                "@url": "../servlet/SearchServlet?query=world&amp;filter=&amp;sort=relevance&amp;sortdir=desc&amp;pagesize=1&amp;col=1&amp;col=6&amp;col=3&amp;col=4&amp;col=2&amp;col=5&amp;startdate=0&amp;enddate=0&amp;xsl=json&amp;default=AND&amp;page=5"
            },
                        {
                "@page": "6",
                "@url": "../servlet/SearchServlet?query=world&amp;filter=&amp;sort=relevance&amp;sortdir=desc&amp;pagesize=1&amp;col=1&amp;col=6&amp;col=3&amp;col=4&amp;col=2&amp;col=5&amp;startdate=0&amp;enddate=0&amp;xsl=json&amp;default=AND&amp;page=6"
            },
                        {
                "@page": "7",
                "@url": "../servlet/SearchServlet?query=world&amp;filter=&amp;sort=relevance&amp;sortdir=desc&amp;pagesize=1&amp;col=1&amp;col=6&amp;col=3&amp;col=4&amp;col=2&amp;col=5&amp;startdate=0&amp;enddate=0&amp;xsl=json&amp;default=AND&amp;page=7"
            },
                        {
                "@page": "8",
                "@url": "../servlet/SearchServlet?query=world&amp;filter=&amp;sort=relevance&amp;sortdir=desc&amp;pagesize=1&amp;col=1&amp;col=6&amp;col=3&amp;col=4&amp;col=2&amp;col=5&amp;startdate=0&amp;enddate=0&amp;xsl=json&amp;default=AND&amp;page=8"
            },
                        {
                "@page": "9",
                "@url": "../servlet/SearchServlet?query=world&amp;filter=&amp;sort=relevance&amp;sortdir=desc&amp;pagesize=1&amp;col=1&amp;col=6&amp;col=3&amp;col=4&amp;col=2&amp;col=5&amp;startdate=0&amp;enddate=0&amp;xsl=json&amp;default=AND&amp;page=9"
            },
                        {
                "@page": "10",
                "@url": "../servlet/SearchServlet?query=world&amp;filter=&amp;sort=relevance&amp;sortdir=desc&amp;pagesize=1&amp;col=1&amp;col=6&amp;col=3&amp;col=4&amp;col=2&amp;col=5&amp;startdate=0&amp;enddate=0&amp;xsl=json&amp;default=AND&amp;page=10"
            },
                        {
                "@page": "next",
                "@url": "../servlet/SearchServlet?query=world&amp;filter=&amp;sort=relevance&amp;sortdir=desc&amp;pagesize=1&amp;col=1&amp;col=6&amp;col=3&amp;col=4&amp;col=2&amp;col=5&amp;startdate=0&amp;enddate=0&amp;xsl=json&amp;default=AND&amp;page=2"
            },
                        {
                "@page": "date",
                "@url": "../servlet/SearchServlet?query=world&amp;filter=&amp;sort=date&amp;col=1&amp;col=6&amp;col=3&amp;col=4&amp;col=2&amp;col=5&amp;startdate=0&amp;enddate=0&amp;page=1&amp;pagesize=1&amp;xsl=json"
            },
                        {
                "@page": "alpha",
                "@url": "../servlet/SearchServlet?query=world&amp;filter=&amp;sort=alpha&amp;col=1&amp;col=6&amp;col=3&amp;col=4&amp;col=2&amp;col=5&amp;startdate=0&amp;enddate=0&amp;page=1&amp;pagesize=1&amp;xsl=json"
            },
                        {
                "@page": "relevance",
                "@url": "../servlet/SearchServlet?query=world&amp;filter=&amp;sort=relevance&amp;col=1&amp;col=6&amp;col=3&amp;col=4&amp;col=2&amp;col=5&amp;startdate=0&amp;enddate=0&amp;page=1&amp;pagesize=1&amp;xsl=json"
            }
        ]
    },
    "facets": [],
    "searchform":     {
        "@url": "../servlet/SearchServlet",
        "@query": "world",
        "collections":         [
                        {
                "@id": "1",
                "@name": "HTTPCollection",
                "@checked": "true"
            },
                        {
                "@id": "6",
                "@name": "atest",
                "@checked": "true"
            },
                        {
                "@id": "3",
                "@name": "dbs",
                "@checked": "true"
            },
                        {
                "@id": "4",
                "@name": "developer",
                "@checked": "true"
            },
                        {
                "@id": "2",
                "@name": "test",
                "@checked": "true"
            },
                        {
                "@id": "5",
                "@name": "test1",
                "@checked": "true"
            }
        ]
    }
}

Search Servlet XML Response

<searchdoc>
<results hits="292" time="12.00" query="world" suggest="" filter="" sort="relevance" sortdir="desc" start="1" end="1" currentpage="1" lastpage="292" startdate="0" enddate="0" pagesize="1" xsl="xml">
<result no="1" id="e961bce18e0be2c3a020e51d05b4a152">
<score>99</score>
<raw_score>254.77159</raw_score>
<title>
<highlight>World</highlight>
<text> news – breaking news, videos and headlines - CNN</text>
</title>
<context>
<highlight>World</highlight>
<text> news – breaking news, videos and headlines - CNN </text>
<highlight>World</highlight>
<text> Africa Americas Asia Australia China Europe India Middle East United Kingdom Edition U.S. International Arabic Español Search CNN Open</text>
<text>...</text>
<text>Menu Africa Americas Asia Australia China Europe India Middle East United Kingdom Search Edition U.S. International Arabic Español </text>
<highlight>World</highlight>
<text> Africa Americas Asia Australia China Europe India Middle East</text>
<text>...</text>
<text>Shows A-Z CNNVR Features Call to Earth Freedom Project Impact Your </text>
<highlight>World</highlight>
<text> Inside Africa 2 Degrees CNN Heroes All Features More Photos Longform Investigations CNN Profiles CNN Leadership CNN Newsletters</text>
<text>...</text>
</context>
<col>6</col>
<creationdate>15 Jul 2020 13:07:01 UTC</creationdate>
<twitter-card>summary_large_image</twitter-card>
<og-site_name>CNN</og-site_name>
<keywords>world news, international news, world news today</keywords>
<description>View CNN world news today for international news and videos from Europe, Asia, Africa, the Middle East and the Americas.</description>
<click_count>1.0</click_count>
<section>world</section>
<language>en</language>
<vr-canonical>https://edition.cnn.com/world</vr-canonical>
<sb_boost>1.0</sb_boost>
<og-description>View CNN world news today for international news and videos from Europe, Asia, Africa, the Middle East and the Americas.</og-description>
<document_allow>[unsecured]</document_allow>
<og-pubdate>2014-02-18T16:43:26Z</og-pubdate>
<uid>e961bce18e0be2c3a020e51d05b4a152</uid>
<colname>atest</colname>
<alpha>World news – breaking news, videos </alpha>
<lastmod>2020-07-07T10:01:53Z</lastmod>
<pubdate>2014-02-18T16:43:26Z</pubdate>
<twitter-title>World news – breaking news, videos and headlines - CNN</twitter-title>
<og-type>website</og-type>
<indexdate>15 Jul 2020 13:07:01 UTC</indexdate>
<urllen>29.0</urllen>
<og-title>World news – breaking news, videos and headlines - CNN</og-title>
<fb-pages>5550296508,18793419640</fb-pages>
<url>https://edition.cnn.com/world</url>
<contenttype>HTML</contenttype>
<referrer>unsafe-url</referrer>
<fb-app_id>80401312489</fb-app_id>
<filename/>
<size>1347832</size>
<viewport>widthdevice-width, initial-scale1.0, minimum-scale1.0</viewport>
<old_uid>https://edition.cnn.com/world</old_uid>
<twitter-description>View CNN world news today for international news and videos from Europe, Asia, Africa, the Middle East and the Americas.</twitter-description>
<lastmodified>15 Jul 2020 13:07:01 UTC</lastmodified>
<og-url>https://www.cnn.com/world</og-url>
<crawldate>2020-07-15T13:06:55.162Z</crawldate>
<es_metadata_id>e961bce18e0be2c3a020e51d05b4a152</es_metadata_id>
</result>
</results>
<relevance tune.0="5" tune.1="3" tune.2="2" tune.3="5" tune.4="180" tune.5="10" tune.6="10"/>
<download04xs download_url="http://schwab.searchblox.com/searchblox/servlet/SearchServlet?pretty=true&amp;adsDisplay=true&amp;query=world&amp;tune.4=180&amp;tune.5=10&amp;tune.2=2&amp;sort=relevance&amp;tune.3=5&amp;tune.0=5&amp;tune.1=3&amp;tune=true&amp;predictSearch=false&amp;xsl=xml&amp;predictResultSize=3&amp;default=AND&amp;relatedQuery=false&amp;topQuery=false&amp;tune.6=10&amp;pagesize=1&amp;page=1&amp;sortdir=desc&amp;adsCount=3&amp;downloadAsZipAlone=true"/>
<links url="../servlet/SearchServlet?query=world&amp;filter=&amp;sort=relevance&amp;sortdir=desc&amp;pagesize=1&amp;col=1&amp;col=6&amp;col=3&amp;col=4&amp;col=2&amp;col=5&amp;startdate=0&amp;enddate=0&amp;xsl=xml&amp;default=AND&amp;page=">
<link page="1" url="../servlet/SearchServlet?query=world&amp;filter=&amp;sort=relevance&amp;sortdir=desc&amp;pagesize=1&amp;col=1&amp;col=6&amp;col=3&amp;col=4&amp;col=2&amp;col=5&amp;startdate=0&amp;enddate=0&amp;xsl=xml&amp;default=AND&amp;page=1"/>
<link page="2" url="../servlet/SearchServlet?query=world&amp;filter=&amp;sort=relevance&amp;sortdir=desc&amp;pagesize=1&amp;col=1&amp;col=6&amp;col=3&amp;col=4&amp;col=2&amp;col=5&amp;startdate=0&amp;enddate=0&amp;xsl=xml&amp;default=AND&amp;page=2"/>
<link page="3" url="../servlet/SearchServlet?query=world&amp;filter=&amp;sort=relevance&amp;sortdir=desc&amp;pagesize=1&amp;col=1&amp;col=6&amp;col=3&amp;col=4&amp;col=2&amp;col=5&amp;startdate=0&amp;enddate=0&amp;xsl=xml&amp;default=AND&amp;page=3"/>
<link page="4" url="../servlet/SearchServlet?query=world&amp;filter=&amp;sort=relevance&amp;sortdir=desc&amp;pagesize=1&amp;col=1&amp;col=6&amp;col=3&amp;col=4&amp;col=2&amp;col=5&amp;startdate=0&amp;enddate=0&amp;xsl=xml&amp;default=AND&amp;page=4"/>
<link page="5" url="../servlet/SearchServlet?query=world&amp;filter=&amp;sort=relevance&amp;sortdir=desc&amp;pagesize=1&amp;col=1&amp;col=6&amp;col=3&amp;col=4&amp;col=2&amp;col=5&amp;startdate=0&amp;enddate=0&amp;xsl=xml&amp;default=AND&amp;page=5"/>
<link page="6" url="../servlet/SearchServlet?query=world&amp;filter=&amp;sort=relevance&amp;sortdir=desc&amp;pagesize=1&amp;col=1&amp;col=6&amp;col=3&amp;col=4&amp;col=2&amp;col=5&amp;startdate=0&amp;enddate=0&amp;xsl=xml&amp;default=AND&amp;page=6"/>
<link page="7" url="../servlet/SearchServlet?query=world&amp;filter=&amp;sort=relevance&amp;sortdir=desc&amp;pagesize=1&amp;col=1&amp;col=6&amp;col=3&amp;col=4&amp;col=2&amp;col=5&amp;startdate=0&amp;enddate=0&amp;xsl=xml&amp;default=AND&amp;page=7"/>
<link page="8" url="../servlet/SearchServlet?query=world&amp;filter=&amp;sort=relevance&amp;sortdir=desc&amp;pagesize=1&amp;col=1&amp;col=6&amp;col=3&amp;col=4&amp;col=2&amp;col=5&amp;startdate=0&amp;enddate=0&amp;xsl=xml&amp;default=AND&amp;page=8"/>
<link page="9" url="../servlet/SearchServlet?query=world&amp;filter=&amp;sort=relevance&amp;sortdir=desc&amp;pagesize=1&amp;col=1&amp;col=6&amp;col=3&amp;col=4&amp;col=2&amp;col=5&amp;startdate=0&amp;enddate=0&amp;xsl=xml&amp;default=AND&amp;page=9"/>
<link page="10" url="../servlet/SearchServlet?query=world&amp;filter=&amp;sort=relevance&amp;sortdir=desc&amp;pagesize=1&amp;col=1&amp;col=6&amp;col=3&amp;col=4&amp;col=2&amp;col=5&amp;startdate=0&amp;enddate=0&amp;xsl=xml&amp;default=AND&amp;page=10"/>
<link page="next" url="../servlet/SearchServlet?query=world&amp;filter=&amp;sort=relevance&amp;sortdir=desc&amp;pagesize=1&amp;col=1&amp;col=6&amp;col=3&amp;col=4&amp;col=2&amp;col=5&amp;startdate=0&amp;enddate=0&amp;xsl=xml&amp;default=AND&amp;page=2"/>
<link page="date" url="../servlet/SearchServlet?query=world&amp;filter=&amp;sort=date&amp;col=1&amp;col=6&amp;col=3&amp;col=4&amp;col=2&amp;col=5&amp;startdate=0&amp;enddate=0&amp;page=1&amp;pagesize=1&amp;xsl=xml"/>
<link page="alpha" url="../servlet/SearchServlet?query=world&amp;filter=&amp;sort=alpha&amp;col=1&amp;col=6&amp;col=3&amp;col=4&amp;col=2&amp;col=5&amp;startdate=0&amp;enddate=0&amp;page=1&amp;pagesize=1&amp;xsl=xml"/>
<link page="relevance" url="../servlet/SearchServlet?query=world&amp;filter=&amp;sort=relevance&amp;col=1&amp;col=6&amp;col=3&amp;col=4&amp;col=2&amp;col=5&amp;startdate=0&amp;enddate=0&amp;page=1&amp;pagesize=1&amp;xsl=xml"/>
</links>
<facets/>
<searchform url="../servlet/SearchServlet" query="world">
<collections>
<collection id="1" name="HTTPCollection" checked="true"/>
<collection id="6" name="atest" checked="true"/>
<collection id="3" name="dbs" checked="true"/>
<collection id="4" name="developer" checked="true"/>
<collection id="2" name="test" checked="true"/>
<collection id="5" name="test1" checked="true"/>
</collections>
</searchform>
</searchdoc>

Attributes for Search Servlet Response

  • This table lists the attributes in general search response for Search Servlet
AttributeDescription
hitsNumber of hits or matches for the query.
timeTime is taken to return the results of the search query in seconds.
queryThe search query.
suggestSpelling suggestions, if available.
filterPreset filter used for the query.
sortIndicates how the search results are sorted. The possible values for this attribute are relevance, date, and alpha.
sortdirIndicates whether the search results are sorted in ascending or descending order. The possible values for this attribute are asc and desc.
startThe hit or match number of the first search result on this page.
endThe hit or match number of the last search result on this page.
currentpageThis indicates the current page number for this set of search results.
lastpageThis indicates the last possible page number for this set of search results.
startdateIndicates the start date for the date range search.
enddateIndicates the end date for the date range search.
pagesizeNumber of search results per page.
xslThe template in which the search results appear.
resultThe result element with multiple search results. The attributes of this element are listed in the next table.
relevance.tune.0Tuning parameter value for Title.
relevance.tune.1Tuning parameter value for Description.
relevance.tune.2Tuning parameter value for Keywords.
relevance.tune.3Tuning parameter value for URL.
relevance.tune.4Tuning parameter value for lastmodified date.
relevance.tune.5Tuning parameter value for URL length.
relevance.tune.6Tuning parameter value for click count.
facets.@nameName of the facet field.
facets.@countFacet field size specified in the URL.
facets.int.@nameThe value for the facet.
facets.int.@filterThis attribute will be true if the value of the facet is specified in the facet filter attribute in URL.
facets.int.#textThe count on the number of results with the specific value.
facets.int.fromfrom attribute specific to the date and a numeric field.
facets.int.toto attribute specific to the date and a numeric field.
linksThe element contains pre-canned page URLs to simplify the process of paginating through the search results.
The page URLs available here include links to specific page numbers, the next and previous pages to the current page, and the URLs for the alternative sorting options.
searchformThe element provides all the information to display the search form as part of the search results.
searchform.@urlSearch Servlet reference for collection based search.
searchform.@querySearch query.
searchform.collections.@idCollection number.
searchform.collections.@nameCollection name.
searchform.collections.@checkedIf the collection is selected or provided in URL parameter the value will be true otherwise false.
  • This table lists the attributes within each search result for Search Servlet
  • 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 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.

👍

General Information

  • Facet filters display results count JSON/XML.
  • View results in JSON or XML in a parametrized search to view the relevant response.* When
    using Advanced Search use parameters specific to the same.