Search results for JSON

This page is generated by Machine Translation from Japanese.

Search by the JSON response

Outputs a JSON results of Fess . You must in order to emit JSON enabled keep JSON response in the General Management screen crawl settings.

Request

To get JSON output http://localhost:8080/ |Fess| /JSON? query = search terms Of these sends a request. Request parameters are as follows.

query Search language. Pass the URL encoding.
Start The number of where to start. Starts at 0.
NUM The number of display. The default is 20. You can display up to 100.
fields.label The label value. Use to specify the label.
callback If you use the JSONP callback name. You do not need to specify if you do not use the JSONP.

Table: Request parameter

Responses to

Returns the following response.

{
    "response": {
        "version": 1,
        "status": 0,
        "query": "\u30C6\u30B9\u30C8",
        "execTime": 0.59,
        "pageSize": 20,
        "pageNumber": 1,
        "recordCount": 101,
        "pageCount": 6,
        "result": [
            {
                "site": "speedtest.goo.ne.jp\u002F",
                "contentDescription": "goo \u306E\u63D0\u4F9B\u3059\u308B\u30B9\u30D4\u3C..",
                "host": "speedtest.goo.ne.jp",
                "lastModified": "1284739487873",
                "cache": "\u9FA0-->\n<meta http-equiv=\u0022Content-Type\u0022 content=\..",
                "score": "4.98744",
                "digest": "goo \u306E\u63D0\u4F9B\u3059\u308B\u30B9\u30D4\u30FC\u30C9<em>..",
                "tstamp": "1284739487887",
                "url": "http:\u002F\u002Fspeedtest.goo.ne.jp\u002F",
                "id": "http:\u002F\u002Fspeedtest.goo.ne.jp\u002F;type=au,docomo,pc,softbank",
                "mimetype": "text\u002Fhtml",
                "title": "\ngoo \u30B9\u30D4\u30FC\u30C9\u30C6\u30B9\u30C8\n",
                "contentTitle": "\ngoo \u30B9\u30D4\u30FC\u30C9\u30C6\u30B9\u30C8\n",
                "boost": "1.0",
                "contentLength": "17810",
                "urlLink": "http:\u002F\u002Fspeedtest.goo.ne.jp\u002F"
            },
...
        ]
    }
}

Each element is as follows.

response The root element.
version Format version.
status The status of the response. the status value is 0: normal, 1: search error, 2 or 3: request parameter error, 9: in service, 1: API type of error is.
query Search language.
execTime Response time. Unit is seconds.
pageSize The number of display.
pageNumber Page number.
recordCount Number of hits for the search term.
pageCount Page number of the number of hits for the search term.
result Parent element of the search results.
site The name of the site.
contentDescription A description of the content.
host The name of the host.
lastModified Last update date. 1970 / 01 / 01 milliseconds starting at 00: 00: 00.
cache The contents of the content.
score Score values of the document.
Digest Digest a string of documents.
Tstamp Document creation date. 1970 / 01 / 01 milliseconds starting at 00: 00: 00.
URL The URL of the document.
ID The ID of the document.
mimetype The MIME type.
title The title of the document.
contentTitle The title of the document for viewing.
contentLength The size of the document.
urlLink The URL as the search results.

Table: Responses to information