[Groonga-commit] groonga/groonga at b333a60 [master] doc: update prefix search example

Back to archive index

HAYASHI Kentaro null+****@clear*****
Fri Aug 22 14:37:39 JST 2014


HAYASHI Kentaro	2014-08-22 14:37:39 +0900 (Fri, 22 Aug 2014)

  New Revision: b333a609c5eb056f85d3409382af5c6fffb830c5
  https://github.com/groonga/groonga/commit/b333a609c5eb056f85d3409382af5c6fffb830c5

  Message:
    doc: update prefix search example

  Modified files:
    doc/source/tutorial/patricia_trie.rst

  Modified: doc/source/tutorial/patricia_trie.rst (+11 -9)
===================================================================
--- doc/source/tutorial/patricia_trie.rst    2014-08-21 18:46:22 +0900 (073ce4e)
+++ doc/source/tutorial/patricia_trie.rst    2014-08-22 14:37:39 +0900 (a69dadb)
@@ -13,23 +13,25 @@ By specifying it, You can do prefix search.
 
 And more, you can do suffix search against primary key by specifying additional option.
 
-主キーによる前方一致検索
-------------------------
+Prefix search by primary key
+----------------------------
 
-table_createコマンドのflagsオプションにTABLE_PAT_KEYを指定することで、主キーによる前方一致検索ができるようになります。
+table_create command which uses TABLE_PAT_KEY for flags option supports prefix search by primary key.
 
 .. groonga-command
-.. include:: ../example/tutorial/patricia_trie-1.log
+.. include:: ../example/tutorial/patricia_trie_prefix_search.log
 ..
 .. table_create --name PatPrefix --flags TABLE_PAT_KEY --key_type ShortText
 .. load --table PatPrefix
 .. [
-.. {"_key":"ひろゆき"},
-.. {"_key":"まろゆき"},
-.. {"_key":"ひろあき"},
-.. {"_key":"ゆきひろ"}
+.. {"_key":"James"}
+.. {"_key":"Jason"}
+.. {"_key":"Jennifer"},
+.. {"_key":"Jeff"},
+.. {"_key":"John"},
+.. {"_key":"Joseph"},
 .. ]
-.. select --table PatPrefix --query _key:^ひろ
+.. select --table PatPrefix --query _key:^Je
 
 主キーによる後方一致検索
 ------------------------
-------------- next part --------------
HTML����������������������������...
下载 



More information about the Groonga-commit mailing list
Back to archive index