Menu

XML search results

This page is generated by Machine Translation from Japanese.

Search through XML response

To emit the XML results of Fess . You need to do this output in XML Management screen crawl settings XML response enabled by you.

Request

To get the output XML http://localhost:8080/ |Fess| /XML? 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.

Table: Request parameter

Responses to

Returns the following response.

<?xml version="1.0" encoding="UTF-8"?>
<response>
  <version>1</version>
  <status>0</status>
  <query>テスト</query>
  <exec-time>0.64</exec-time>
  <page-size>20</page-size>
  <page-number>1</page-number>
  <record-count>101</record-count>
  <page-count>6</page-count>
  <result>
    <doc>
      <site>speedtest.goo.ne.jp/</site>
      <content-description>goo の提供するスピード&lt;em&gt;テスト&lt;/em&gt;
        ページです</content-description>
      <host>speedtest.goo.ne.jp</host>
      <last-modified>1284739487873</last-modified>
      <cache>--&gt;
&lt;meta http-equiv="Content-Type" content="text/html; charset=EUC-JP"&gt;
&lt;title&gt;
goo スピード&lt;em&gt;テスト&lt;/em&gt;
&lt;/title&gt;
&lt;meta..."&gt;

&lt;meta name="description" content="goo の提供するスピード&lt;em&gt;テスト
&lt;/em&gt;ページです"&gt;
&lt;meta name="keywords" content="ADSL,ブロードバンド,フレ...ッツ,BB,無線LAN,
CATV,ISDN,スピード&lt;em&gt;
テスト&lt;/em&gt;"&gt;
&lt;meta name="Copyright" content="Copyright &amp;copy; ...://speedtest.goo.ne.jp/"
&gt;&lt;img src="/img/h1/h1_76.gif" width="129" height="22" border="0"
alt="スピード&lt;em&gt;テスト
&lt;/em&gt;"&gt;&lt;img src..." color="#ffffff"&gt;goo スピード&lt;em&gt;テスト
&lt;/em&gt;&lt;/font
&gt;&lt;/a&gt;&lt;/b&gt;&lt;/td&gt;
&lt;!--/NAME SERVICE--&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td</cache>
      <score>4.98744</score>
      <digest>goo の提供するスピード&lt;em&gt;テスト&lt;/em&gt;ページです</digest>
      <tstamp>1284739487887</tstamp>
      <url>http://speedtest.goo.ne.jp/</url>
      <id>http://speedtest.goo.ne.jp/;type=au,docomo,pc,softbank</id>
      <mimetype>text/html</mimetype>
      <title>
goo スピードテスト
</title>
      <content-title>
goo スピードテスト
</content-title>
      <boost>1.0</boost>
      <content-length>17810</content-length>
      <url-link>http://speedtest.goo.ne.jp/</url-link>
    </doc>
...
  </result>
</response>

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.
exec-time Response time. Unit is seconds.
page-size The number of display.
page-number Page number.
record-count Number of hits for the search term.
page-count Page number of the number of hits for the search term.
result Parent element of the search results.
doc The elements of the search results.
site The name of the site.
content-description A description of the content.
host The name of the host.
last-modified 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.
content-title The title of the document for viewing.
content-length The size of the document.
URL-link The URL as the search results.

Table: Responses to information