null+****@clear*****
null+****@clear*****
2011年 9月 15日 (木) 18:39:37 JST
Kouhei Sutou 2011-09-15 09:39:37 +0000 (Thu, 15 Sep 2011)
New Revision: 7a20d9a839963af3f08dc40f388f04fe28b9e8a2
Log:
[doc][tutorial] qe -> 11.
Renamed files:
doc/source/example/tutorial11-1.log
(from doc/source/example/tutorialqe-1.log)
doc/source/example/tutorial11-2.log
(from doc/source/example/tutorialqe-2.log)
doc/source/example/tutorial11-3.log
(from doc/source/example/tutorialqe-3.log)
doc/source/tutorial/tutorial11.txt
(from doc/source/tutorial/tutorialqe.txt)
Renamed: doc/source/example/tutorial11-1.log (+0 -0) 100%
===================================================================
Renamed: doc/source/example/tutorial11-2.log (+0 -0) 100%
===================================================================
Renamed: doc/source/example/tutorial11-3.log (+0 -0) 100%
===================================================================
Renamed: doc/source/tutorial/tutorial11.txt (+3 -3) 96%
===================================================================
--- doc/source/tutorial/tutorialqe.txt 2011-09-15 09:09:36 +0000 (4a49c0f)
+++ doc/source/tutorial/tutorial11.txt 2011-09-15 09:39:37 +0000 (cee24b6)
@@ -17,7 +17,7 @@ query_expansion機能を使用するためには、検索対象となる文書
実際に文書テーブルと置換テーブルを作成してみましょう。
.. groonga-command
-.. include:: ../example/tutorialqe-1.log
+.. include:: ../example/tutorial11-1.log
.. table_create Doc TABLE_PAT_KEY ShortText
.. column_create Doc body COLUMN_SCALAR ShortText
.. table_create Term TABLE_PAT_KEY|KEY_NORMALIZE ShortText --default_tokenizer TokenBigram
@@ -43,14 +43,14 @@ query_expansion機能を使用するためには、検索対象となる文書
それでは実際に、準備した置換テーブルを使ってみましょう。まずは、query_expansionパラメータを指定せずにselectコマンドを使って検索してみます。
.. groonga-command
-.. include:: ../example/tutorialqe-2.log
+.. include:: ../example/tutorial11-2.log
.. select Doc --match_columns body --query "シークァーサー"
.. select Doc --match_columns body --query "シークヮーサー"
指定された文字列に完全に一致するレコードのみがそれぞれヒットします。次に、query_expansionパラメータに、準備したSynonymテーブルのbodyカラムを指定してみましょう。
.. groonga-command
-.. include:: ../example/tutorialqe-3.log
+.. include:: ../example/tutorial11-3.log
.. select Doc --match_columns body --query "シークァーサー" --query_expansion Synonym.body
.. select Doc --match_columns body --query "シークヮーサー" --query_expansion Synonym.body