Kentaro Hayashi
null+****@clear*****
Wed May 10 15:13:17 JST 2017
Kentaro Hayashi 2017-05-10 15:13:17 +0900 (Wed, 10 May 2017) New Revision: 08bf97268eb230cbb80ae1a8918b4f6168626c87 https://github.com/groonga/groonga/commit/08bf97268eb230cbb80ae1a8918b4f6168626c87 Message: doc: add examples Added files: doc/source/example/tutorial/match_columns-specific-body-index.log doc/source/example/tutorial/match_columns-specific-index-schema.log doc/source/example/tutorial/match_columns-specific-title-index.log doc/source/example/tutorial/match_columns-specific-whole-with-body.log doc/source/example/tutorial/match_columns-specific-whole-with-title.log Added: doc/source/example/tutorial/match_columns-specific-body-index.log (+41 -0) 100644 =================================================================== --- /dev/null +++ doc/source/example/tutorial/match_columns-specific-body-index.log 2017-05-10 15:13:17 +0900 (faf29a6) @@ -0,0 +1,41 @@ +Execution example:: + + select --table Entries --match_columns Terms.entries_body --query "Groonga" + # [ + # [ + # 0, + # 1337566253.89858, + # 0.000355720520019531 + # ], + # [ + # [ + # [ + # 1 + # ], + # [ + # [ + # "_id", + # "UInt32" + # ], + # [ + # "_key", + # "ShortText" + # ], + # [ + # "body", + # "ShortText" + # ], + # [ + # "title", + # "ShortText" + # ] + # ], + # [ + # 2, + # "http://example.com/entry2", + # "I love Groonga!", + # "Hello world." + # ] + # ] + # ] + # ] Added: doc/source/example/tutorial/match_columns-specific-index-schema.log (+24 -0) 100644 =================================================================== --- /dev/null +++ doc/source/example/tutorial/match_columns-specific-index-schema.log 2017-05-10 15:13:17 +0900 (77d9b1b) @@ -0,0 +1,24 @@ +Execution example:: + + table_create Entries TABLE_HASH_KEY ShortText + # [[0, 1337566253.89858, 0.000355720520019531], true] + column_create Entries title COLUMN_SCALAR ShortText + # [[0, 1337566253.89858, 0.000355720520019531], true] + column_create Entries body COLUMN_SCALAR ShortText + # [[0, 1337566253.89858, 0.000355720520019531], true] + load --table Entries + [ + {"_key": "http://example.com/entry1", "title":"Hello Groonga.", "body":"This is my first entry."}, + {"_key": "http://example.com/entry2", "title":"Hello world.", "body":"I love Groonga!"}, + {"_key": "http://example.com/entry3", "title":"Hello Mroonga, bye Groonga.", "body":"I use Mroonga."}, + {"_key": "http://example.com/entry4", "title":"Say, Hello Groonga!", "body":"I'm back."} + ] + # [[0, 1337566253.89858, 0.000355720520019531], 4] + table_create Terms TABLE_PAT_KEY ShortText --default_tokenizer TokenBigram --normalizer NormalizerAuto + # [[0, 1337566253.89858, 0.000355720520019531], true] + column_create Terms entries_title COLUMN_INDEX|WITH_POSITION Entries title + # [[0, 1337566253.89858, 0.000355720520019531], true] + column_create Terms entries_body COLUMN_INDEX|WITH_POSITION Entries body + # [[0, 1337566253.89858, 0.000355720520019531], true] + column_create Terms entries_whole COLUMN_INDEX|WITH_POSITION|WITH_SECTION Entries title,body + # [[0, 1337566253.89858, 0.000355720520019531], true] Added: doc/source/example/tutorial/match_columns-specific-title-index.log (+53 -0) 100644 =================================================================== --- /dev/null +++ doc/source/example/tutorial/match_columns-specific-title-index.log 2017-05-10 15:13:17 +0900 (e017f24) @@ -0,0 +1,53 @@ +Execution example:: + + select --table Entries --match_columns Terms.entries_title --query "Groonga" + # [ + # [ + # 0, + # 1337566253.89858, + # 0.000355720520019531 + # ], + # [ + # [ + # [ + # 3 + # ], + # [ + # [ + # "_id", + # "UInt32" + # ], + # [ + # "_key", + # "ShortText" + # ], + # [ + # "body", + # "ShortText" + # ], + # [ + # "title", + # "ShortText" + # ] + # ], + # [ + # 1, + # "http://example.com/entry1", + # "This is my first entry.", + # "Hello Groonga." + # ], + # [ + # 3, + # "http://example.com/entry3", + # "I use Mroonga.", + # "Hello Mroonga, bye Groonga." + # ], + # [ + # 4, + # "http://example.com/entry4", + # "I'm back.", + # "Say, Hello Groonga!" + # ] + # ] + # ] + # ] Added: doc/source/example/tutorial/match_columns-specific-whole-with-body.log (+41 -0) 100644 =================================================================== --- /dev/null +++ doc/source/example/tutorial/match_columns-specific-whole-with-body.log 2017-05-10 15:13:17 +0900 (27bc696) @@ -0,0 +1,41 @@ +Execution example:: + + select --table Entries --match_columns Terms.entries_whole.body --query "Groonga" + # [ + # [ + # 0, + # 1337566253.89858, + # 0.000355720520019531 + # ], + # [ + # [ + # [ + # 1 + # ], + # [ + # [ + # "_id", + # "UInt32" + # ], + # [ + # "_key", + # "ShortText" + # ], + # [ + # "body", + # "ShortText" + # ], + # [ + # "title", + # "ShortText" + # ] + # ], + # [ + # 2, + # "http://example.com/entry2", + # "I love Groonga!", + # "Hello world." + # ] + # ] + # ] + # ] Added: doc/source/example/tutorial/match_columns-specific-whole-with-title.log (+53 -0) 100644 =================================================================== --- /dev/null +++ doc/source/example/tutorial/match_columns-specific-whole-with-title.log 2017-05-10 15:13:17 +0900 (6cc119a) @@ -0,0 +1,53 @@ +Execution example:: + + select --table Entries --match_columns Terms.entries_whole.title --query "Groonga" + # [ + # [ + # 0, + # 1337566253.89858, + # 0.000355720520019531 + # ], + # [ + # [ + # [ + # 3 + # ], + # [ + # [ + # "_id", + # "UInt32" + # ], + # [ + # "_key", + # "ShortText" + # ], + # [ + # "body", + # "ShortText" + # ], + # [ + # "title", + # "ShortText" + # ] + # ], + # [ + # 1, + # "http://example.com/entry1", + # "This is my first entry.", + # "Hello Groonga." + # ], + # [ + # 3, + # "http://example.com/entry3", + # "I use Mroonga.", + # "Hello Mroonga, bye Groonga." + # ], + # [ + # 4, + # "http://example.com/entry4", + # "I'm back.", + # "Say, Hello Groonga!" + # ] + # ] + # ] + # ] -------------- next part -------------- HTML����������������������������...Download