Shinsuke Sugaya пре 11 година
родитељ
комит
13fcdad905

+ 1 - 1
src/main/resources/app.dicon

@@ -66,7 +66,7 @@
 		<initMethod name="setApiResponseFields">
 			<arg>new String[]{"id", "docId", "score", "boost",
             "contentLength", "host", "site", "lastModified", "mimetype", "filetype_s",
-            "created", "title", "digest", "url"}</arg>
+            "created", "title", "digest", "url", "urlLink", "contentDescription"}</arg>
 		</initMethod>
 		<initMethod name="addHighlightField">
 			<arg>"title"</arg>

+ 20 - 20
src/site/ja/xdoc/9.1/user/json-response.xml

@@ -42,7 +42,7 @@
     "response": {
         "version": 1,
         "status": 0,
-        "query": "\u30C6\u30B9\u30C8",
+        "query": "Fess",
         "execTime": 0.59,
         "pageSize": 20,
         "pageNumber": 1,
@@ -50,22 +50,22 @@
         "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"
+            "created":"2014-05-24T15:13:29.096+0900",
+            "docId":"0592263c6cae4141b3a276894e8e326d",
+            "title":"Fess \u3092\u5229\u7528\u3057\u3066\u3044\u308B\u30B5\u30A4\u30C8",
+            "url":"http:\u002F\u002Ffess.codelibs.org\u002Fja\u002Fusers.html",
+            "score":0.7036715,
+            "site":"fess.codelibs.org\u002Fja\u002Fusers.html",
+            "filetype_s":"html",
+            "contentDescription":" <em>fess<\u002Fem> \u5168\u822C \u5165\u9580...",
+            "digest":" Fess \u5168\u822C \u5165\u9580 \u30C9\u30AD\u30E5\u30E1\u30F3 Jav...",
+            "host":"fess.codelibs.org",
+            "mimetype":"text\u002Fhtml",
+            "contentLength":22788,
+            "boost":1.0,
+            "lastModified":"2014-05-22T11:09:07.000+0900",
+            "id":"http:\u002F\u002Ffess.codelibs.org\u002Fja\u002Fusers.html",
+            "urlLink":"http:\u002F\u002Ffess.codelibs.org\u002Fja\u002Fusers.html"
             },
 ...
         ]
@@ -130,7 +130,7 @@
             </tr>
             <tr>
               <th>lastModified</th>
-              <td>最終更新日時。1970/01/01 00:00:00 から始まるミリ秒。</td>
+              <td>最終更新日時。</td>
             </tr>
             <tr>
               <th>cache</th>
@@ -145,8 +145,8 @@
               <td>ドキュメントのダイジェスト文字列。</td>
             </tr>
             <tr>
-              <th>tstamp</th>
-              <td>ドキュメントの生成日時。1970/01/01 00:00:00 から始まるミリ秒。</td>
+              <th>created</th>
+              <td>ドキュメントの生成日時。</td>
             </tr>
             <tr>
               <th>url</th>

+ 18 - 47
src/site/ja/xdoc/9.1/user/xml-response.xml

@@ -38,7 +38,7 @@
 <response>
   <version>1</version>
   <status>0</status>
-  <query>テスト</query>
+  <query>Fess</query>
   <exec-time>0.64</exec-time>
   <page-size>20</page-size>
   <page-number>1</page-number>
@@ -46,51 +46,22 @@
   <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>
+      <created>2014-05-24T15:13:27.692+0900</created>
+      <doc-id>d55275b552da44999cafe118aa8fed62</doc-id>
+      <title>Fess&#12398;&#12452;&#12531;...</title>
+      <url>http://fess.codelibs.org/ja/setup.html</url>
+      <score>0.83177954</score>
+      <site>fess.codelibs.org/ja/setup.html</site>
+      <filetype-s>html</filetype-s>
+      <content-description> &lt;em&gt;fess&lt;/em&gt;...</content-description>
+      <digest>&#12458;&#12540;&#12503;&#12531;&#12477;...</digest>
+      <host>fess.codelibs.org</host>
       <mimetype>text/html</mimetype>
-      <title>
-goo スピードテスト
-</title>
-      <content-title>
-goo スピードテスト
-</content-title>
+      <content-length>49702</content-length>
       <boost>1.0</boost>
-      <content-length>17810</content-length>
-      <url-link>http://speedtest.goo.ne.jp/</url-link>
+      <last-modified>2014-05-22T11:09:07.000+0900</last-modified>
+      <id>http://fess.codelibs.org/ja/setup.html</id>
+      <url-link>http://fess.codelibs.org/ja/setup.html</url-link>
     </doc>
 ...
   </result>
@@ -158,7 +129,7 @@ goo スピードテスト
             </tr>
             <tr>
               <th>last-modified</th>
-              <td>最終更新日時。1970/01/01 00:00:00 から始まるミリ秒。</td>
+              <td>最終更新日時。</td>
             </tr>
             <tr>
               <th>cache</th>
@@ -173,8 +144,8 @@ goo スピードテスト
               <td>ドキュメントのダイジェスト文字列。</td>
             </tr>
             <tr>
-              <th>tstamp</th>
-              <td>ドキュメントの生成日時。1970/01/01 00:00:00 から始まるミリ秒。</td>
+              <th>created</th>
+              <td>ドキュメントの生成日時。</td>
             </tr>
             <tr>
               <th>url</th>