[Groonga-commit] groonga/groonga [master] [doc][tutorial] use meaningful name for filename.

Back to archive index

null+****@clear***** null+****@clear*****
2011年 9月 26日 (月) 21:54:57 JST


Kouhei Sutou	2011-09-26 12:54:57 +0000 (Mon, 26 Sep 2011)

  New Revision: f96d5a76da236637e23ff2ab81a04802997c85c7

  Log:
    [doc][tutorial] use meaningful name for filename.

  Modified files:
    doc/source/tutorial.txt
  Renamed files:
    doc/source/example/tutorial/data-1.log
      (from doc/source/example/tutorial03-1.log)
    doc/source/example/tutorial/data-2.log
      (from doc/source/example/tutorial03-2.log)
    doc/source/example/tutorial/data-3.log
      (from doc/source/example/tutorial03-3.log)
    doc/source/example/tutorial/drilldown-1.log
      (from doc/source/example/tutorial05-1.log)
    doc/source/example/tutorial/drilldown-2.log
      (from doc/source/example/tutorial05-2.log)
    doc/source/example/tutorial/drilldown-3.log
      (from doc/source/example/tutorial05-3.log)
    doc/source/example/tutorial/drilldown-4.log
      (from doc/source/example/tutorial05-4.log)
    doc/source/example/tutorial/drilldown-5.log
      (from doc/source/example/tutorial05-5.log)
    doc/source/example/tutorial/drilldown-6.log
      (from doc/source/example/tutorial05-6.log)
    doc/source/example/tutorial/index-1.log
      (from doc/source/example/tutorial06-1.log)
    doc/source/example/tutorial/index-2.log
      (from doc/source/example/tutorial06-2.log)
    doc/source/example/tutorial/index-3.log
      (from doc/source/example/tutorial06-3.log)
    doc/source/example/tutorial/index-4.log
      (from doc/source/example/tutorial06-4.log)
    doc/source/example/tutorial/index-5.log
      (from doc/source/example/tutorial06-5.log)
    doc/source/example/tutorial/index-6.log
      (from doc/source/example/tutorial06-6.log)
    doc/source/example/tutorial/index-7.log
      (from doc/source/example/tutorial06-7.log)
    doc/source/example/tutorial/introduction-1.log
      (from doc/source/example/tutorial01-1.log)
    doc/source/example/tutorial/introduction-10.log
      (from doc/source/example/tutorial01-10.log)
    doc/source/example/tutorial/introduction-11.log
      (from doc/source/example/tutorial01-11.log)
    doc/source/example/tutorial/introduction-12.log
      (from doc/source/example/tutorial01-12.log)
    doc/source/example/tutorial/introduction-13.log
      (from doc/source/example/tutorial01-13.log)
    doc/source/example/tutorial/introduction-14.log
      (from doc/source/example/tutorial01-14.log)
    doc/source/example/tutorial/introduction-15.log
      (from doc/source/example/tutorial01-15.log)
    doc/source/example/tutorial/introduction-16.log
      (from doc/source/example/tutorial01-16.log)
    doc/source/example/tutorial/introduction-17.log
      (from doc/source/example/tutorial01-17.log)
    doc/source/example/tutorial/introduction-2.log
      (from doc/source/example/tutorial01-2.log)
    doc/source/example/tutorial/introduction-3.log
      (from doc/source/example/tutorial01-3.log)
    doc/source/example/tutorial/introduction-4.log
      (from doc/source/example/tutorial01-4.log)
    doc/source/example/tutorial/introduction-5.log
      (from doc/source/example/tutorial01-5.log)
    doc/source/example/tutorial/introduction-6.log
      (from doc/source/example/tutorial01-6.log)
    doc/source/example/tutorial/introduction-7.log
      (from doc/source/example/tutorial01-7.log)
    doc/source/example/tutorial/introduction-8.log
      (from doc/source/example/tutorial01-8.log)
    doc/source/example/tutorial/introduction-9.log
      (from doc/source/example/tutorial01-9.log)
    doc/source/example/tutorial/match_columns-1.log
      (from doc/source/example/tutorial07-1.log)
    doc/source/example/tutorial/match_columns-2.log
      (from doc/source/example/tutorial07-2.log)
    doc/source/example/tutorial/match_columns-3.log
      (from doc/source/example/tutorial07-3.log)
    doc/source/example/tutorial/match_columns-4.log
      (from doc/source/example/tutorial07-4.log)
    doc/source/example/tutorial/micro_blog-1.log
      (from doc/source/example/tutorial10-1.log)
    doc/source/example/tutorial/micro_blog-10.log
      (from doc/source/example/tutorial10-10.log)
    doc/source/example/tutorial/micro_blog-2.log
      (from doc/source/example/tutorial10-2.log)
    doc/source/example/tutorial/micro_blog-3.log
      (from doc/source/example/tutorial10-3.log)
    doc/source/example/tutorial/micro_blog-4.log
      (from doc/source/example/tutorial10-4.log)
    doc/source/example/tutorial/micro_blog-5.log
      (from doc/source/example/tutorial10-5.log)
    doc/source/example/tutorial/micro_blog-6.log
      (from doc/source/example/tutorial10-6.log)
    doc/source/example/tutorial/micro_blog-7.log
      (from doc/source/example/tutorial10-7.log)
    doc/source/example/tutorial/micro_blog-8.log
      (from doc/source/example/tutorial10-8.log)
    doc/source/example/tutorial/micro_blog-9.log
      (from doc/source/example/tutorial10-9.log)
    doc/source/example/tutorial/network-1.log
      (from doc/source/example/tutorial02-1.log)
    doc/source/example/tutorial/network-2.log
      (from doc/source/example/tutorial02-2.log)
    doc/source/example/tutorial/network-3.log
      (from doc/source/example/tutorial02-3.log)
    doc/source/example/tutorial/patricia_trie-1.log
      (from doc/source/example/tutorial08-1.log)
    doc/source/example/tutorial/patricia_trie-2.log
      (from doc/source/example/tutorial08-2.log)
    doc/source/example/tutorial/query_expansion-1.log
      (from doc/source/example/tutorial11-1.log)
    doc/source/example/tutorial/query_expansion-2.log
      (from doc/source/example/tutorial11-2.log)
    doc/source/example/tutorial/query_expansion-3.log
      (from doc/source/example/tutorial11-3.log)
    doc/source/example/tutorial/search-1.log
      (from doc/source/example/tutorial04-1.log)
    doc/source/example/tutorial/search-2.log
      (from doc/source/example/tutorial04-2.log)
    doc/source/example/tutorial/search-3.log
      (from doc/source/example/tutorial04-3.log)
    doc/source/example/tutorial/search-4.log
      (from doc/source/example/tutorial04-4.log)
    doc/source/example/tutorial/search-5.log
      (from doc/source/example/tutorial04-5.log)
    doc/source/example/tutorial/search-6.log
      (from doc/source/example/tutorial04-6.log)
    doc/source/example/tutorial/search-7.log
      (from doc/source/example/tutorial04-7.log)
    doc/source/tutorial/data.txt
      (from doc/source/tutorial/tutorial03.txt)
    doc/source/tutorial/drilldown.txt
      (from doc/source/tutorial/tutorial05.txt)
    doc/source/tutorial/index.txt
      (from doc/source/tutorial/tutorial06.txt)
    doc/source/tutorial/introduction.txt
      (from doc/source/tutorial/tutorial01.txt)
    doc/source/tutorial/lexicon.txt
      (from doc/source/tutorial/tutorial09.txt)
    doc/source/tutorial/match_columns.txt
      (from doc/source/tutorial/tutorial07.txt)
    doc/source/tutorial/micro_blog.txt
      (from doc/source/tutorial/tutorial10.txt)
    doc/source/tutorial/network.txt
      (from doc/source/tutorial/tutorial02.txt)
    doc/source/tutorial/patricia_trie.txt
      (from doc/source/tutorial/tutorial08.txt)
    doc/source/tutorial/query_expansion.txt
      (from doc/source/tutorial/tutorial11.txt)
    doc/source/tutorial/search.txt
      (from doc/source/tutorial/tutorial04.txt)

  Renamed: doc/source/example/tutorial/data-1.log (+0 -0) 100%
===================================================================

  Renamed: doc/source/example/tutorial/data-2.log (+0 -0) 100%
===================================================================

  Renamed: doc/source/example/tutorial/data-3.log (+0 -0) 100%
===================================================================

  Renamed: doc/source/example/tutorial/drilldown-1.log (+0 -0) 100%
===================================================================

  Renamed: doc/source/example/tutorial/drilldown-2.log (+0 -0) 100%
===================================================================

  Renamed: doc/source/example/tutorial/drilldown-3.log (+0 -0) 100%
===================================================================

  Renamed: doc/source/example/tutorial/drilldown-4.log (+0 -0) 100%
===================================================================

  Renamed: doc/source/example/tutorial/drilldown-5.log (+0 -0) 100%
===================================================================

  Renamed: doc/source/example/tutorial/drilldown-6.log (+0 -0) 100%
===================================================================

  Renamed: doc/source/example/tutorial/index-1.log (+0 -0) 100%
===================================================================

  Renamed: doc/source/example/tutorial/index-2.log (+0 -0) 100%
===================================================================

  Renamed: doc/source/example/tutorial/index-3.log (+0 -0) 100%
===================================================================

  Renamed: doc/source/example/tutorial/index-4.log (+0 -0) 100%
===================================================================

  Renamed: doc/source/example/tutorial/index-5.log (+0 -0) 100%
===================================================================

  Renamed: doc/source/example/tutorial/index-6.log (+0 -0) 100%
===================================================================

  Renamed: doc/source/example/tutorial/index-7.log (+0 -0) 100%
===================================================================

  Renamed: doc/source/example/tutorial/introduction-1.log (+0 -0) 100%
===================================================================

  Renamed: doc/source/example/tutorial/introduction-10.log (+0 -0) 100%
===================================================================

  Renamed: doc/source/example/tutorial/introduction-11.log (+0 -0) 100%
===================================================================

  Renamed: doc/source/example/tutorial/introduction-12.log (+0 -0) 100%
===================================================================

  Renamed: doc/source/example/tutorial/introduction-13.log (+0 -0) 100%
===================================================================

  Renamed: doc/source/example/tutorial/introduction-14.log (+0 -0) 100%
===================================================================

  Renamed: doc/source/example/tutorial/introduction-15.log (+0 -0) 100%
===================================================================

  Renamed: doc/source/example/tutorial/introduction-16.log (+0 -0) 100%
===================================================================

  Renamed: doc/source/example/tutorial/introduction-17.log (+0 -0) 100%
===================================================================

  Renamed: doc/source/example/tutorial/introduction-2.log (+0 -0) 100%
===================================================================

  Renamed: doc/source/example/tutorial/introduction-3.log (+0 -0) 100%
===================================================================

  Renamed: doc/source/example/tutorial/introduction-4.log (+0 -0) 100%
===================================================================

  Renamed: doc/source/example/tutorial/introduction-5.log (+0 -0) 100%
===================================================================

  Renamed: doc/source/example/tutorial/introduction-6.log (+0 -0) 100%
===================================================================

  Renamed: doc/source/example/tutorial/introduction-7.log (+0 -0) 100%
===================================================================

  Renamed: doc/source/example/tutorial/introduction-8.log (+0 -0) 100%
===================================================================

  Renamed: doc/source/example/tutorial/introduction-9.log (+0 -0) 100%
===================================================================

  Renamed: doc/source/example/tutorial/match_columns-1.log (+0 -0) 100%
===================================================================

  Renamed: doc/source/example/tutorial/match_columns-2.log (+0 -0) 100%
===================================================================

  Renamed: doc/source/example/tutorial/match_columns-3.log (+0 -0) 100%
===================================================================

  Renamed: doc/source/example/tutorial/match_columns-4.log (+0 -0) 100%
===================================================================

  Renamed: doc/source/example/tutorial/micro_blog-1.log (+0 -0) 100%
===================================================================

  Renamed: doc/source/example/tutorial/micro_blog-10.log (+0 -0) 100%
===================================================================

  Renamed: doc/source/example/tutorial/micro_blog-2.log (+0 -0) 100%
===================================================================

  Renamed: doc/source/example/tutorial/micro_blog-3.log (+0 -0) 100%
===================================================================

  Renamed: doc/source/example/tutorial/micro_blog-4.log (+0 -0) 100%
===================================================================

  Renamed: doc/source/example/tutorial/micro_blog-5.log (+0 -0) 100%
===================================================================

  Renamed: doc/source/example/tutorial/micro_blog-6.log (+0 -0) 100%
===================================================================

  Renamed: doc/source/example/tutorial/micro_blog-7.log (+0 -0) 100%
===================================================================

  Renamed: doc/source/example/tutorial/micro_blog-8.log (+0 -0) 100%
===================================================================

  Renamed: doc/source/example/tutorial/micro_blog-9.log (+0 -0) 100%
===================================================================

  Renamed: doc/source/example/tutorial/network-1.log (+0 -0) 100%
===================================================================

  Renamed: doc/source/example/tutorial/network-2.log (+0 -0) 100%
===================================================================

  Renamed: doc/source/example/tutorial/network-3.log (+0 -0) 100%
===================================================================

  Renamed: doc/source/example/tutorial/patricia_trie-1.log (+0 -0) 100%
===================================================================

  Renamed: doc/source/example/tutorial/patricia_trie-2.log (+0 -0) 100%
===================================================================

  Renamed: doc/source/example/tutorial/query_expansion-1.log (+0 -0) 100%
===================================================================

  Renamed: doc/source/example/tutorial/query_expansion-2.log (+0 -0) 100%
===================================================================

  Renamed: doc/source/example/tutorial/query_expansion-3.log (+0 -0) 100%
===================================================================

  Renamed: doc/source/example/tutorial/search-1.log (+0 -0) 100%
===================================================================

  Renamed: doc/source/example/tutorial/search-2.log (+0 -0) 100%
===================================================================

  Renamed: doc/source/example/tutorial/search-3.log (+0 -0) 100%
===================================================================

  Renamed: doc/source/example/tutorial/search-4.log (+0 -0) 100%
===================================================================

  Renamed: doc/source/example/tutorial/search-5.log (+0 -0) 100%
===================================================================

  Renamed: doc/source/example/tutorial/search-6.log (+0 -0) 100%
===================================================================

  Renamed: doc/source/example/tutorial/search-7.log (+0 -0) 100%
===================================================================

  Modified: doc/source/tutorial.txt (+11 -2)
===================================================================
--- doc/source/tutorial.txt    2011-09-26 12:32:46 +0000 (2334354)
+++ doc/source/tutorial.txt    2011-09-26 12:54:57 +0000 (197e0bf)
@@ -7,6 +7,15 @@
 
 .. toctree::
    :maxdepth: 2
-   :glob:
 
-   tutorial/*
+   tutorial/introduction
+   tutorial/network
+   tutorial/data
+   tutorial/search
+   tutorial/drilldown
+   tutorial/index
+   tutorial/match_columns
+   tutorial/patricia_trie
+   tutorial/lexicon
+   tutorial/micro_blog
+   tutorial/query_expansion

  Renamed: doc/source/tutorial/data.txt (+4 -4) 95%
===================================================================
--- doc/source/tutorial/tutorial03.txt    2011-09-26 12:32:46 +0000 (f8938a5)
+++ doc/source/tutorial/data.txt    2011-09-26 12:54:57 +0000 (42d9360)
@@ -2,7 +2,7 @@
 
 .. highlightlang:: none
 
-.. groonga-include : tutorial01.txt
+.. groonga-include : introduction.txt
 
 さまざまな種類をもったデータの保存
 ==================================
@@ -20,7 +20,7 @@ groongaでは、数値(整数・小数)や文字列や時刻や経緯度な
 
 .. groonga-command
 .. table_remove Type
-.. include:: ../example/tutorial03-1.log
+.. include:: ../example/tutorial/introduction-1.log
 .. table_create --name Type --flags TABLE_HASH_KEY --key_type ShortText
 .. column_create --table Type --name number --type Int32
 .. column_create --table Type --name float --type Float
@@ -43,7 +43,7 @@ table_createで作成したテーブルを、カラムの型として使うこ
 他のテーブルを参照するカラムにデータを入力する場合には、参照先のテーブルの_keyカラムの値を代入する必要があります。
 
 .. groonga-command
-.. include:: ../example/tutorial03-2.log
+.. include:: ../example/tutorial/introduction-2.log
 .. column_create --table Site --name link --type Site
 .. load --table Site
 .. [{"_key":"http://example.org/","link":"http://example.net/"}]
@@ -65,7 +65,7 @@ column_createコマンドでカラムを作成するとき、--flagsオプショ
 .. FIXME: _idの配列ではダメなのかどうか。検証する。
 
 .. groonga-command
-.. include:: ../example/tutorial03-3.log
+.. include:: ../example/tutorial/introduction-3.log
 .. column_create --table Site --name links --flags COLUMN_VECTOR --type Site
 .. load --table Site
 .. [{"_key":"http://example.org/","links":["http://example.net/","http://example.org/","http://example.com/"]}]

  Renamed: doc/source/tutorial/drilldown.txt (+8 -7) 91%
===================================================================
--- doc/source/tutorial/tutorial05.txt    2011-09-26 12:32:46 +0000 (c9679fb)
+++ doc/source/tutorial/drilldown.txt    2011-09-26 12:54:57 +0000 (2944715)
@@ -2,7 +2,8 @@
 
 .. highlightlang:: none
 
-.. groonga-include : tutorial04.txt
+.. groonga-include : search.txt
+
 .. groonga-command
 .. table_remove SiteDomain
 .. table_remove SiteCountry
@@ -16,7 +17,7 @@ groongaでは、特定のカラム値で検索結果をグループ化するこ
 Siteテーブルに2つのカラムを追加します。TLDドメイン名を格納するdomainカラムと、国名を格納するcountryカラムです。これらのカラムの型は、それぞれドメイン名を主キーとするSiteDomainテーブルと、国名を主キーとするSiteCountryテーブルとします。
 
 .. groonga-command
-.. include:: ../example/tutorial05-1.log
+.. include:: ../example/tutorial/drilldown-1.log
 .. table_create --name SiteDomain --flags TABLE_HASH_KEY --key_type ShortText
 .. table_create --name SiteCountry --flags TABLE_HASH_KEY --key_type ShortText
 .. column_create --table Site --name domain --flags COLUMN_SCALAR --type SiteDomain
@@ -37,31 +38,31 @@ Siteテーブルに2つのカラムを追加します。TLDドメイン名を
 domainカラムとcountryカラムでドリルダウンを行う例を以下に示します。
 
 .. groonga-command
-.. include:: ../example/tutorial05-2.log
+.. include:: ../example/tutorial/drilldown-2.log
 .. select --table Site --limit 0 --drilldown domain
 
 テーブル型を持つカラムに対してドリルダウンを行った場合、参照先のテーブルに存在するカラム値を取得することもできます。ドリルダウンを行ったテーブルには、_nsubrecsという仮想的なカラムが追加されます。このカラムには、グループ化されたレコード数が入ります。
 
 .. groonga-command
-.. include:: ../example/tutorial05-3.log
+.. include:: ../example/tutorial/drilldown-3.log
 .. select --table Site --limit 0 --drilldown domain --drilldown_output_columns _id,_key,_nsubrecs
 
 複数のカラムに対してドリルダウンを行うことができます。複数のカラムに対してドリルダウンを行う場合には、drilldownパラメータにカラム名をカンマ区切りで与えます。
 
 .. groonga-command
-.. include:: ../example/tutorial05-4.log
+.. include:: ../example/tutorial/drilldown-4.log
 .. select --table Site --limit 0 --drilldown domain,country
 
 ドリルダウン結果を並びかえることができます。例えば、_nsubrecsパラメータの降順で並び替えることができます。
 
 .. groonga-command
-.. include:: ../example/tutorial05-5.log
+.. include:: ../example/tutorial/drilldown-5.log
 .. select --table Site --limit 0 --drilldown country --drilldown_sortby _nsubrecs
 
 ドリルダウン結果は、デフォルトでは10件のみ表示されます。drilldown_offsetパラメータと、drilldown_limitパラメータによって、offsetとlimitを指定することができます。
 
 .. groonga-command
-.. include:: ../example/tutorial05-6.log
+.. include:: ../example/tutorial/drilldown-6.log
 .. select --table Site --limit 0 --drilldown country --drilldown_sortby _nsubrecs --drilldown_limit 2 --drilldown_offset 2
 
 文字列型のカラムに対するドリルダウンは、他の型でのドリルダウンに比べて低速です。文字列でのドリルダウンを行いたい場合には、このチュートリアルのように、文字列型を主キーとするテーブルを別途作成し、そのテーブルを型とするカラムを作成します。

  Renamed: doc/source/tutorial/index.txt (+8 -8) 94%
===================================================================
--- doc/source/tutorial/tutorial06.txt    2011-09-26 12:32:46 +0000 (65c02d3)
+++ doc/source/tutorial/index.txt    2011-09-26 12:54:57 +0000 (3dbdd81)
@@ -2,7 +2,7 @@
 
 .. highlightlang:: none
 
-.. groonga-include : tutorial05.txt
+.. groonga-include : drilldown.txt
 .. groonga-command
 .. table_remove GeoIndex
 
@@ -24,7 +24,7 @@
 タグの情報を保存する、Tagテーブルを作成します。Tagテーブルでは、タグ文字列を主キーに格納し、Videoテーブルのtagsカラムに対するインデックスをindex_tagsカラムに格納しています。
 
 .. groonga-command
-.. include:: ../example/tutorial06-1.log
+.. include:: ../example/tutorial/index-1.log
 .. table_create --name Video --flags TABLE_HASH_KEY --key_type UInt32
 .. table_create --name Tag --flags TABLE_HASH_KEY --key_type ShortText
 .. column_create --table Video --name title --flags COLUMN_SCALAR --type ShortText
@@ -47,7 +47,7 @@
 「ある語句が付与されている動画の一覧を取得する」検索を行いましょう。
 
 .. groonga-command
-.. include:: ../example/tutorial06-2.log
+.. include:: ../example/tutorial/index-2.log
 .. select --table Video --query tags:@Variety --output_columns _key,title
 .. select --table Video --query tags:@Sports --output_columns _key,title
 .. select --table Video --query tags:@Animation --output_columns _key,title
@@ -64,7 +64,7 @@ groongaはテーブル間の参照関係の逆引きを高速に行うための
 以下の例では、ユーザー情報を格納するUserテーブルを作成し、ユーザー名を格納するusernameカラム、ユーザーの友人一覧を配列で格納するfriendsカラムとそのインデックスのindex_friendsカラムを追加しています。
 
 .. groonga-command
-.. include:: ../example/tutorial06-3.log
+.. include:: ../example/tutorial/index-3.log
 .. table_create --name User --flags TABLE_HASH_KEY --key_type ShortText
 .. column_create --table User --name username --flags COLUMN_SCALAR --type ShortText
 .. column_create --table User --name friends --flags COLUMN_VECTOR --type User
@@ -82,14 +82,14 @@ groongaはテーブル間の参照関係の逆引きを高速に行うための
 指定したユーザーを友人リストに入れているユーザーの一覧を表示してみましょう。
 
 .. groonga-command
-.. include:: ../example/tutorial06-4.log
+.. include:: ../example/tutorial/index-4.log
 .. select --table User --query friends:@tomo --output_columns _key,username
 .. select --table User --query friends:@jiro --output_columns _key,username
 
 さらに、ドリルダウンを使って、友人リストに入っている数の一覧を表示してみましょう。
 
 .. groonga-command
-.. include:: ../example/tutorial06-5.log
+.. include:: ../example/tutorial/index-5.log
 .. select --table User --limit 0 --drilldown friends
 
 このように、テーブルの参照関係を逆にたどる検索ができました。
@@ -100,7 +100,7 @@ groongaはテーブル間の参照関係の逆引きを高速に行うための
 位置情報のカラムに対して、インデックスを付与することが出来ます。大量の位置情報レコードを検索する場合に、検索速度が速くなります。
 
 .. groonga-command
-.. include:: ../example/tutorial06-6.log
+.. include:: ../example/tutorial/index-6.log
 .. table_create --name GeoIndex --flags TABLE_PAT_KEY --key_type WGS84GeoPoint
 .. column_create --table GeoIndex --name index_point --type Site --flags COLUMN_INDEX --source location
 .. load --table Site
@@ -113,5 +113,5 @@ groongaはテーブル間の参照関係の逆引きを高速に行うための
 同様に、位置情報レコードを用いてソートする場合に、ソート速度が速くなります。
 
 .. groonga-command
-.. include:: ../example/tutorial06-7.log
+.. include:: ../example/tutorial/index-7.log
 .. select --table Site --filter 'geo_in_circle(location, "128515259x503187188", 50000)' --output_columns _key,location,_score --sortby '-geo_distance(location, "128515259x503187188")' --scorer '_score = geo_distance(location, "128515259x503187188")'

  Renamed: doc/source/tutorial/introduction.txt (+17 -17) 93%
===================================================================
--- doc/source/tutorial/tutorial01.txt    2011-09-26 12:32:46 +0000 (888ba87)
+++ doc/source/tutorial/introduction.txt    2011-09-26 12:54:57 +0000 (cf38b29)
@@ -54,7 +54,7 @@ DBの操作
 たとえば、statusというコマンドを実行してみましょう。statusコマンドは、groongaの実行状態を返すコマンドです。
 
 .. groonga-command
-.. include:: ../example/tutorial01-1.log
+.. include:: ../example/tutorial/introduction-1.log
 .. .. % groonga /tmp/tutorial.db
 .. status
 
@@ -108,7 +108,7 @@ groongaでは、多くの場合テーブルを作成する際に主キーが必
 ここでは、ShortText型の主キー値を持ち、主キーの格納方法はHASHである、'Site'という名前のテーブルを作成します。
 
 .. groonga-command
-.. include:: ../example/tutorial01-2.log
+.. include:: ../example/tutorial/introduction-2.log
 .. table_create --name Site --flags TABLE_HASH_KEY --key_type ShortText
 
 検索
@@ -117,7 +117,7 @@ groongaでは、多くの場合テーブルを作成する際に主キーが必
 :doc:`/commands/select` コマンドを用いて、テーブルの中身を表示することができます。
 
 .. groonga-command
-.. include:: ../example/tutorial01-3.log
+.. include:: ../example/tutorial/introduction-3.log
 .. select --table Site
 
 selectにテーブル名を指定すると、指定したテーブルの中身を10件表示します。[0]は検索されたレコードの件数、["_id","Uint32"]は値がUInt32型である"_id'という名前のカラム、["_key","ShortText"]は値がShortText型である'_key'という名前のカラムを示しています。
@@ -132,7 +132,7 @@ table_createコマンドで作成したテーブルには、最初から'_id'/'_
 ShortText型の値を持つ、'comment'という名前のカラムを'Site'テーブルに追加しましょう。
 
 .. groonga-command
-.. include:: ../example/tutorial01-4.log
+.. include:: ../example/tutorial/introduction-4.log
 .. column_create --table Site --name title --flags COLUMN_SCALAR --type ShortText
 .. select --table Site
 
@@ -148,7 +148,7 @@ COLUMN_SCALARについては、通常のカラムであることを示してい
 ここでは、ShortText型の主キー値を持つ、'Terms'という名前のテーブルを作成しました。
 
 .. groonga-command
-.. include:: ../example/tutorial01-5.log
+.. include:: ../example/tutorial/introduction-5.log
 .. table_create --name Terms --flags TABLE_PAT_KEY|KEY_NORMALIZE --key_type ShortText --default_tokenizer TokenBigram
 
 この実行例には、多くのパラメータが指定されています。本チュートリアルでは、これらをすべて理解する必要はありません。以下に簡単な説明を記しますが、読み飛ばしてもらってかまいません。
@@ -163,7 +163,7 @@ COLUMN_SCALARについては、通常のカラムであることを示してい
 Siteテーブルのtitleカラムを全文検索の対象としたいとしましょう。その場合には、語彙表にインデックス型のカラムを作成します。
 
 .. groonga-command
-.. include:: ../example/tutorial01-6.log
+.. include:: ../example/tutorial/introduction-6.log
 .. column_create --table Terms --name blog_title --flags COLUMN_INDEX|WITH_POSITION --type Site --source title
 
 Siteテーブルのtitleカラムを検索対象とする、'blog_title'という名前のインデックス型カラムをTermsテーブルに作成しました。インデックス対象となるテーブルをtypeに、インデックス対象となるカラムをsourceに指定します。
@@ -176,7 +176,7 @@ Siteテーブルのtitleカラムを検索対象とする、'blog_title'とい
 :doc:`/commands/load` コマンドを使用します。loadコマンドでは、jsonで受け取ったデータをテーブルに格納します。
 
 .. groonga-command
-.. include:: ../example/tutorial01-7.log
+.. include:: ../example/tutorial/introduction-7.log
 .. load --table Site
 .. [
 .. {"_key":"http://example.org/","title":"This is test record 1!"},
@@ -193,7 +193,7 @@ Siteテーブルのtitleカラムを検索対象とする、'blog_title'とい
 selectコマンドで、データが入っていることを確認しましょう。
 
 .. groonga-command
-.. include:: ../example/tutorial01-8.log
+.. include:: ../example/tutorial/introduction-8.log
 .. select --table Site
 
 データの検索
@@ -204,7 +204,7 @@ groongaでは、'_id'カラムと'_key'カラムの値はテーブル中で一
 selectコマンドにおいて、queryパラメータを用いるとデータの検索を行うことができます。
 
 .. groonga-command
-.. include:: ../example/tutorial01-9.log
+.. include:: ../example/tutorial/introduction-9.log
 .. select --table Site --query _id:1
 
 queryパラメータに与えた「_id:1」というのは、'_id'という名前のカラムに'1'という値が入っているレコードを検索する、という意味です。
@@ -212,7 +212,7 @@ queryパラメータに与えた「_id:1」というのは、'_id'という名
 _keyでも検索してみましょう。
 
 .. groonga-command
-.. include:: ../example/tutorial01-10.log
+.. include:: ../example/tutorial/introduction-10.log
 .. select --table Site --query "_key:\"http://example.org/\""
 
 queryパラメータに与えた「_key:\"http://example.org/\"」というのは、'_key'という名前のカラムに'"http://example.org/"'という値が入っているレコードを検索する、という意味です。
@@ -223,7 +223,7 @@ queryパラメータに与えた「_key:\"http://example.org/\"」というの
 queryパラメータでは、インデックスを用いた全文検索を行うこともできます。
 
 .. groonga-command
-.. include:: ../example/tutorial01-11.log
+.. include:: ../example/tutorial/introduction-11.log
 .. select --table Site --query title:@this
 
 titleカラムに対して、'this'という文字列で全文検索を行った結果を返します。
@@ -235,7 +235,7 @@ selectコマンドには、match_columnsというパラメータが存在しま
 match_columnsパラメータに'title'、queryパラメータに'this'という文字列を指定すると、上記のクエリと同じ結果を得ることができます。
 
 .. groonga-command
-.. include:: ../example/tutorial01-12.log
+.. include:: ../example/tutorial/introduction-12.log
 .. select --table Site --match_columns title --query this
 
 出力カラムの指定
@@ -246,7 +246,7 @@ selectコマンドにおいて、output_columnsパラメータを用いること
 複数のカラムを指定する場合は、カンマ(,)区切りで指定します。
 
 .. groonga-command
-.. include:: ../example/tutorial01-13.log
+.. include:: ../example/tutorial/introduction-13.log
 .. select --table Site --output_columns _key,title,_score --query title:@test
 
 groongaの検索結果には、「_score」という名前のカラムが追加されています。このカラムは、全文検索の条件が合致する文書ほど高い数値が入ります。
@@ -262,7 +262,7 @@ offsetパラメータには、検索結果を返す始点を指定します。1
 limitパラメータには、検索結果を何件表示するのかを指定します。
 
 .. groonga-command
-.. include:: ../example/tutorial01-14.log
+.. include:: ../example/tutorial/introduction-14.log
 .. select --table Site --offset 0 --limit 3
 .. select --table Site --offset 3 --limit 3
 .. select --table Site --offset 7 --limit 3
@@ -275,19 +275,19 @@ selectコマンドにおいて、sortbyパラメータを用いることで、
 sortbyパラメータにカラム名を指定することで、そのカラムの値で昇順にソートします。また、カラム名の前にハイフン(-)を付けることで、降順にソートすることも出来ます。
 
 .. groonga-command
-.. include:: ../example/tutorial01-15.log
+.. include:: ../example/tutorial/introduction-15.log
 .. select --table Site --sortby -_id
 
 出力カラムの指定で紹介した「_score」カラムは、ソートの条件としても使うことができます。
 
 .. groonga-command
-.. include:: ../example/tutorial01-16.log
+.. include:: ../example/tutorial/introduction-16.log
 .. select --table Site --query title:@test --output_columns _id,_score,title --sortby _score
 
 ソートするカラム名を複数指定したい場合は、カンマ(,)区切りで指定します。複数のカラムを指定した場合、最初のカラムで同一の値のレコードがあった場合に、次のカラムの値でソートさせることができます。
 
 .. groonga-command
-.. include:: ../example/tutorial01-17.log
+.. include:: ../example/tutorial/introduction-17.log
 .. select --table Site --query title:@test --output_columns _id,_score,title --sortby _score,_id
 
 .. rubric:: 脚注

  Renamed: doc/source/tutorial/lexicon.txt (+0 -0) 100%
===================================================================

  Renamed: doc/source/tutorial/match_columns.txt (+4 -4) 95%
===================================================================
--- doc/source/tutorial/tutorial07.txt    2011-09-26 12:32:46 +0000 (66d9a1d)
+++ doc/source/tutorial/match_columns.txt    2011-09-26 12:54:57 +0000 (155c711)
@@ -25,7 +25,7 @@ Blog1テーブルを作り、タイトル文字列のtitleカラム、本文のm
 インデックス用のIndexBlog1テーブルも作り、titleカラムのインデックス用にindex_titleカラム、messageカラムのインデック用にindex_messageカラムと、それぞれ1カラムごとに1つずつ追加しています。
 
 .. groonga-command
-.. include:: ../example/tutorial07-1.log
+.. include:: ../example/tutorial/match_columns-1.log
 .. table_create --name Blog1 --flags TABLE_HASH_KEY --key_type ShortText
 .. column_create --table Blog1 --name title --flags COLUMN_SCALAR --type ShortText
 .. column_create --table Blog1 --name message --flags COLUMN_SCALAR --type ShortText
@@ -44,7 +44,7 @@ match_columnsオプションで、検索対象のカラムを複数指定する
 実際に検索してみましょう。
 
 .. groonga-command
-.. include:: ../example/tutorial07-2.log
+.. include:: ../example/tutorial/match_columns-2.log
 .. select --table Blog1 --match_columns title||message --query groonga
 .. select --table Blog1 --match_columns title||message --query message
 .. select --table Blog1 --match_columns title --query message
@@ -58,7 +58,7 @@ match_columnsオプションで、検索対象のカラムを複数指定する
 
 
 .. groonga-command
-.. include:: ../example/tutorial07-3.log
+.. include:: ../example/tutorial/match_columns-3.log
 .. table_create --name Blog2 --flags TABLE_HASH_KEY --key_type ShortText
 .. column_create --table Blog2 --name title --flags COLUMN_SCALAR --type ShortText
 .. column_create --table Blog2 --name message --flags COLUMN_SCALAR --type ShortText
@@ -74,7 +74,7 @@ match_columnsオプションで、検索対象のカラムを複数指定する
 実際に検索してみましょう。結果は上の例と同じになります。
 
 .. groonga-command
-.. include:: ../example/tutorial07-4.log
+.. include:: ../example/tutorial/match_columns-4.log
 .. select --table Blog2 --match_columns title||message --query groonga
 .. select --table Blog2 --match_columns title||message --query message
 .. select --table Blog2 --match_columns title --query message

  Renamed: doc/source/tutorial/micro_blog.txt (+10 -10) 97%
===================================================================
--- doc/source/tutorial/tutorial10.txt    2011-09-26 12:32:46 +0000 (66d74f6)
+++ doc/source/tutorial/micro_blog.txt    2011-09-26 12:54:57 +0000 (8123261)
@@ -380,7 +380,7 @@ Commentsテーブルのlast_modifiedカラムは、Time型です。この型で
 指定された文字列で、ユーザー名・現在地・自己紹介文を対象に検索をします。
 
 .. groonga-command
-.. include:: ../example/tutorial10-1.log
+.. include:: ../example/tutorial/micro_blog-1.log
 .. select --table Users --match_columns name,location_str,description --query 東京 --output_columns _key,name
 
 「東京」をキーワードにユーザー検索した結果、東京都に住んでいる「グニャラくん」と「OffGao」がヒットしました。
@@ -392,7 +392,7 @@ GeoPointでユーザー検索
 以下の例では、指定された位置から5000m以内にいるユーザーを検索しています。
 
 .. groonga-command
-.. include:: ../example/tutorial10-2.log
+.. include:: ../example/tutorial/micro_blog-2.log
 .. select --table Users --filter 'geo_in_circle(location,"128484216x502919856",5000)' --output_columns _key,name
 
 新宿駅から5km以内にすんでいるユーザーを検索したところ、「グニャラくん」と「OffGao」がヒットしました。
@@ -404,7 +404,7 @@ GeoPointでユーザー検索
 以下の例では、Usersテーブルのfollowerカラムにあるフォローリストを逆引きします。
 
 .. groonga-command
-.. include:: ../example/tutorial10-3.log
+.. include:: ../example/tutorial/micro_blog-3.log
 .. select --table Users --query follower:@tasukuchan --output_columns _key,name
 
 「グニャラくん」をフォローしている「hsiomaneki」と「OffGao」がヒットしました。
@@ -415,7 +415,7 @@ GeoPointでコメント検索
 また、 :doc:`tutorial05` で扱ったドリルダウンも行います。検索結果をハッシュタグとユーザーでドリルダウンし、ユーザー別・ハッシュタグ別のカウントを出します。
 
 .. groonga-command
-.. include:: ../example/tutorial10-4.log
+.. include:: ../example/tutorial/micro_blog-4.log
 .. select --table Comments --filter 'geo_in_circle(location,"127975798x502919856",20000)' --output_columns posted_by.name,comment --drilldown hash_tags,posted_by
 
 範囲を広く指定したため、位置情報のあるすべてのコメントがヒットしました。そして、ヒットしたコメントからドリルダウンされた結果も返ってきており、ハッシュタグは「#groonga」が2つに「#travel」が1つ、投稿者は「グニャラくん」「OffGao」がそれぞれ2件ずつであることがわかります。
@@ -426,7 +426,7 @@ GeoPointでコメント検索
 さらに、 :doc:`tutorial04` で扱った、スコア値_scoreも出してみましょう。
 
 .. groonga-command
-.. include:: ../example/tutorial10-5.log
+.. include:: ../example/tutorial/micro_blog-5.log
 .. select --table Comments --query comment:@なう --output_columns comment,_score
 
 「なう」をキーワードにコメント検索した結果、2件のコメントがヒットしました。また、_scoreの値も返ってきており、「なう」の数が出力されていることが確認できます。
@@ -436,7 +436,7 @@ GeoPointとキーワードでコメント検索
 今度は、キーワードとGeoPointの両方を条件に検索をしてみます。--queryと--filterの両方を使用した場合、両方の条件に一致するレコードがヒットします。
 
 .. groonga-command
-.. include:: ../example/tutorial10-6.log
+.. include:: ../example/tutorial/micro_blog-6.log
 .. select --table Comments --query comment:@羽田 --filter 'geo_in_circle(location,"127975798x502919856",20000)' --output_columns posted_by.name,comment --drilldown hash_tags,posted_by
 
 両方の条件を満たすコメントが1件ヒットしました。また、ドリルダウンの結果も返ってきており、「グニャラくん」のコメント1件であることがわかります。
@@ -447,7 +447,7 @@ GeoPointとキーワードでコメント検索
 これも、 :doc:`tutorial06` で扱った、参照関係の逆引きを使います。
 
 .. groonga-command
-.. include:: ../example/tutorial10-7.log
+.. include:: ../example/tutorial/micro_blog-7.log
 .. select --table Comments --query hash_tags:@groonga --output_columns posted_by.name,comment --drilldown posted_by
 
 #groongaタグの付いている2件のコメントがヒットしました。また、投稿者のドリルダウンも返ってきており、2件とも「グニャラくん」のものであることがわかります。
@@ -457,7 +457,7 @@ GeoPointとキーワードでコメント検索
 あるユーザーが投稿したコメントを検索します。
 
 .. groonga-command
-.. include:: ../example/tutorial10-8.log
+.. include:: ../example/tutorial/micro_blog-8.log
 .. select --table Comments --query posted_by:tasukuchan --output_columns comment --drilldown hash_tags
 
 「グニャラくん」が書き込んだ4件のコメントがヒットしました。また、ハッシュタグでドリルダウンした結果も返ってきており、ハッシュタグは「#groonga」が2つに「#travel」が1つあることがわかります。
@@ -467,7 +467,7 @@ GeoPointとキーワードでコメント検索
 あるユーザーがお気に入りに入れているコメントを検索します。
 
 .. groonga-command
-.. include:: ../example/tutorial10-9.log
+.. include:: ../example/tutorial/micro_blog-9.log
 .. select --table Users --query _key:tasukuchan --output_columns favorites.posted_by,favorites.comment
 
 「グニャラくん」がお気に入りに入れている2件のコメントがヒットしました。
@@ -478,7 +478,7 @@ GeoPointとキーワードでコメント検索
 この例では、指定した時間よりも前に投稿されているコメントを検索します。
 
 .. groonga-command
-.. include:: ../example/tutorial10-10.log
+.. include:: ../example/tutorial/micro_blog-10.log
 .. select Comments --filter 'last_modified<=1268802000' --output_columns posted_by.name,comment,last_modified --drilldown hash_tags,posted_by
 
 2010/03/17 14:00:00以前に書かれたコメント5件がヒットしました。また、ドリルダウンの結果も返ってきており、「hsiomaneki」が2件、「グニャラくん」が3件ヒットしていることがわかります。

  Renamed: doc/source/tutorial/network.txt (+4 -4) 95%
===================================================================
--- doc/source/tutorial/tutorial02.txt    2011-09-26 12:32:46 +0000 (a222e7d)
+++ doc/source/tutorial/network.txt    2011-09-26 12:54:57 +0000 (f0ba625)
@@ -2,7 +2,7 @@
 
 .. highlightlang:: none
 
-.. groonga-include : tutorial01.txt
+.. groonga-include : introduction.txt
 
 ネットワークを通じた利用
 ========================
@@ -45,7 +45,7 @@ groongaサーバへの接続
 接続に成功すると対話モードに入り、標準入力からコマンドを読み込んで順次実行します。
 
 .. groonga-command
-.. include:: ../example/tutorial02-1.log
+.. include:: ../example/tutorial/network-1.log
 .. .. % groonga -c
 .. status
 .. .. > ctrl-d
@@ -57,7 +57,7 @@ groongaデーモンの終了
 groongaデーモンにshutdownコマンドを発行することにより、終了させることができます。
 
 .. groonga-command
-.. include:: ../example/tutorial02-2.log
+.. include:: ../example/tutorial/network-2.log
 .. .. % groonga -c
 .. .. > shutdown
 .. .. %
@@ -86,7 +86,7 @@ groongaがHTTPプロトコルモードで起動されているとき、「/d/コ
 コマンドのオプションは、HTTPのGETパラメータで渡します。つまり、「?オプション=値&オプション=値 …」という書式になります。
 
 .. groonga-command
-.. include:: ../example/tutorial02-3.log
+.. include:: ../example/tutorial/network-3.log
 .. .. http://[IPまたはホスト名]:[ポート番号]/d/status
 .. .. 実行される処理:
 .. status

  Renamed: doc/source/tutorial/patricia_trie.txt (+4 -4) 92%
===================================================================
--- doc/source/tutorial/tutorial08.txt    2011-09-26 12:32:46 +0000 (03616a7)
+++ doc/source/tutorial/patricia_trie.txt    2011-09-26 12:54:57 +0000 (80dd533)
@@ -6,8 +6,8 @@
 .. table_remove PatPrefix
 .. table_remove PatSuffix
 
-主キーによる前方一致検索
-========================
+パトリシア木による前方一致検索
+============================
 
 groongaのテーブルは、テーブル作成時にパトリシア木オプションを指定すると、前方一致検索を行うことができます。また、追加のオプションを指定することにより、主キーの後方一致検索をも行うことができます。
 
@@ -17,7 +17,7 @@ groongaのテーブルは、テーブル作成時にパトリシア木オプシ
 table_createコマンドのflagsオプションにTABLE_PAT_KEYを指定することで、主キーによる前方一致検索ができるようになります。
 
 .. groonga-command
-.. include:: ../example/tutorial08-1.log
+.. include:: ../example/tutorial/patricia_trie-1.log
 ..
 .. table_create --name PatPrefix --flags TABLE_PAT_KEY --key_type ShortText
 .. load --table PatPrefix
@@ -38,7 +38,7 @@ KEY_WITH_SISフラグを付与すると、データを追加する際に後方
 例えば、元のレコードと自動的に追加されたレコードとの区別をつけるために、元のレコードであることを示すoriginalカラムを追加して、検索時にはoriginalカラムが ``true`` も検索条件に加えます。
 
 .. groonga-command
-.. include:: ../example/tutorial08-2.log
+.. include:: ../example/tutorial/patricia_trie-2.log
 ..
 .. table_create --name PatSuffix --flags TABLE_PAT_KEY|KEY_WITH_SIS --key_type ShortText
 .. column_create --table PatSuffix --name original --type Bool

  Renamed: doc/source/tutorial/query_expansion.txt (+3 -3) 95%
===================================================================
--- doc/source/tutorial/tutorial11.txt    2011-09-26 12:32:46 +0000 (c80d4c0)
+++ doc/source/tutorial/query_expansion.txt    2011-09-26 12:54:57 +0000 (8dc6dbc)
@@ -17,7 +17,7 @@ groongaでは、 :doc:`/commands/select` コマンドにquery_expansionパラメ
 実際に文書テーブルと置換テーブルを作成してみましょう。
 
 .. groonga-command
-.. include:: ../example/tutorial11-1.log
+.. include:: ../example/tutorial/query_expansion-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 @@ groongaでは、 :doc:`/commands/select` コマンドにquery_expansionパラメ
 それでは実際に、準備した置換テーブルを使ってみましょう。まずは、query_expansionパラメータを指定せずにselectコマンドを使って検索してみます。
 
 .. groonga-command
-.. include:: ../example/tutorial11-2.log
+.. include:: ../example/tutorial/query_expansion-2.log
 .. select Doc --match_columns body --query "シークァーサー"
 .. select Doc --match_columns body --query "シークヮーサー"
 
 指定された文字列に完全に一致するレコードのみがそれぞれヒットします。次に、query_expansionパラメータに、準備したSynonymテーブルのbodyカラムを指定してみましょう。
 
 .. groonga-command
-.. include:: ../example/tutorial11-3.log
+.. include:: ../example/tutorial/query_expansion-3.log
 .. select Doc --match_columns body --query "シークァーサー" --query_expansion Synonym.body
 .. select Doc --match_columns body --query "シークヮーサー" --query_expansion Synonym.body
 

  Renamed: doc/source/tutorial/search.txt (+8 -8) 94%
===================================================================
--- doc/source/tutorial/tutorial04.txt    2011-09-26 12:32:46 +0000 (e0e84c6)
+++ doc/source/tutorial/search.txt    2011-09-26 12:54:57 +0000 (63e42d1)
@@ -2,7 +2,7 @@
 
 .. highlightlang:: none
 
-.. groonga-include : tutorial03.txt
+.. groonga-include : data.txt
 
 さまざまな検索条件の指定
 ========================
@@ -15,7 +15,7 @@ JavaScriptに似た文法での絞込・全文検索
 selectコマンドのfilterパラメータは、queryパラメータと同様に、レコードの検索条件を指定します。filterパラメータとqueryパラメータが異なる点は、filterパラメータには、JavaScriptの式に似た文法で条件を指定する点です。
 
 .. groonga-command
-.. include:: ../example/tutorial04-1.log
+.. include:: ../example/tutorial/search-1.log
 .. select --table Site --filter "_id <= 1" --output_columns _id,_key
 
 ここで、filterパラメータには
@@ -27,7 +27,7 @@ selectコマンドのfilterパラメータは、queryパラメータと同様に
 また、&& や || を使って、条件のAND・OR指定をすることもできます。
 
 .. groonga-command
-.. include:: ../example/tutorial04-2.log
+.. include:: ../example/tutorial/search-2.log
 .. select --table Site --filter "_id >= 4 && _id <= 6" --output_columns _id,_key
 .. select --table Site --filter "_id <= 2 || _id >= 7" --output_columns _id,_key
 
@@ -43,7 +43,7 @@ filterパラメータと同様に、
 JavaScriptの式に似たな文法で様々な条件を指定することができます。
 
 .. groonga-command
-.. include:: ../example/tutorial04-3.log
+.. include:: ../example/tutorial/search-3.log
 .. select --table Site --filter "1" --scorer "_score = rand()" --output_columns _id,_key,_score --sortby _score
 .. select --table Site --filter "1" --scorer "_score = rand()" --output_columns _id,_key,_score --sortby _score
 
@@ -75,7 +75,7 @@ groongaでは、位置情報(経緯度)を保存することができます
 ここでは、ためしに東京駅と新宿駅とついて、世界測地系での位置情報を保存してみましょう。東京駅は緯度が35度40分52.975秒、経度が139度45分57.902秒です。新宿駅は緯度が35度41分27.316秒、経度が139度42分0.929秒です。よって、代入する文字列はそれぞれ"128452975x503157902"/"128487316x502920929"となります。
 
 .. groonga-command
-.. include:: ../example/tutorial04-4.log
+.. include:: ../example/tutorial/search-4.log
 .. column_create --table Site --name location --type WGS84GeoPoint
 .. load --table Site
 .. [
@@ -89,7 +89,7 @@ scorerパラメータにおいて、 :doc:`/functions/geo_distance` 関数を用
 ここでは、秋葉原駅からの距離を表示させてみましょう。世界測地系では、秋葉原駅の位置は緯度が35度41分55.259秒、経度が139度46分27.188秒です。よって、geo_distance関数に与える文字列は"128515259x503187188"となります。
 
 .. groonga-command
-.. include:: ../example/tutorial04-5.log
+.. include:: ../example/tutorial/search-5.log
 .. select --table Site --query "_id:1 OR _id:2" --output_columns _key,location,_score --scorer '_score = geo_distance(location, "128515259x503187188")'
 
 この結果を見ると、東京駅と秋葉原駅は2054m、秋葉原駅と新宿駅は6720m離れているようです。
@@ -97,7 +97,7 @@ scorerパラメータにおいて、 :doc:`/functions/geo_distance` 関数を用
 geo_distance関数は、_scoreを通じてソートでも用いることができます。
 
 .. groonga-command
-.. include:: ../example/tutorial04-6.log
+.. include:: ../example/tutorial/search-6.log
 .. select --table Site --query "_id:1 OR _id:2" --output_columns _key,location,_score --scorer '_score = geo_distance(location, "128515259x503187188")' --sortby -_score
 
 「ある地点から何m以内に存在する」といった絞込も可能です。
@@ -107,7 +107,7 @@ filterパラメータにおいて、 :doc:`/functions/geo_in_circle` 関数を
 たとえば、秋葉原駅から5000m以内にあるレコードを検索してみましょう。
 
 .. groonga-command
-.. include:: ../example/tutorial04-7.log
+.. include:: ../example/tutorial/search-7.log
 .. select --table Site --output_columns _key,location --filter 'geo_in_circle(location, "128515259x503187188", 5000)'
 
 また、経緯度が指定の矩形領域内であるかどうかを判定する :doc:`../functions/geo_in_rectangle` 関数も存在します。




Groonga-commit メーリングリストの案内
Back to archive index