null+****@clear*****
null+****@clear*****
2012年 5月 10日 (木) 10:16:39 JST
Kouhei Sutou 2012-05-10 10:16:39 +0900 (Thu, 10 May 2012) New Revision: 0a132eba6afb105429923f2bcd3a4a4ad109b4b9 Log: doc: fix execution examples path Modified files: doc/source/commands/suggest.txt doc/source/indexing.txt Modified: doc/source/commands/suggest.txt (+7 -7) =================================================================== --- doc/source/commands/suggest.txt 2012-05-10 10:14:06 +0900 (a38d50f) +++ doc/source/commands/suggest.txt 2012-05-10 10:16:39 +0900 (5173b83) @@ -201,7 +201,7 @@ EXAMPLE Here are learned data for completion. .. groonga-command -.. include:: ../commands/suggest-learn-completion.log +.. include:: ../example/commands/suggest-learn-completion.log .. load --table event_query --each 'suggest_preparer(_id, type, item, sequence, time, pair_query)' .. [ .. {"sequence": "1", "time": 1312950803.86057, "item": "e"}, @@ -215,7 +215,7 @@ Here are learned data for completion. Here are learned data for correction. .. groonga-command -.. include:: ../commands/suggest-learn-correction.log +.. include:: ../example/commands/suggest-learn-correction.log .. load --table event_query --each 'suggest_preparer(_id, type, item, sequence, time, pair_query)' .. [ .. {"sequence": "2", "time": 1312950803.86057, "item": "s"}, @@ -231,7 +231,7 @@ Here are learned data for correction. Here are learned data for suggestion. .. groonga-command -.. include:: ../commands/suggest-learn-suggestion.log +.. include:: ../example/commands/suggest-learn-suggestion.log .. load --table event_query --each 'suggest_preparer(_id, type, item, sequence, time, pair_query)' .. [ .. {"sequence": "3", "time": 1312950803.86057, "item": "search engine", "type": "submit"}, @@ -241,25 +241,25 @@ Here are learned data for suggestion. Here is a completion example. .. groonga-command -.. include:: ../commands/suggest-completion.log +.. include:: ../example/commands/suggest-completion.log .. suggest --table item_query --column kana --types complete --frequency_threshold 1 --query en Here is a correction example. .. groonga-command -.. include:: ../commands/suggest-correction.log +.. include:: ../example/commands/suggest-correction.log .. suggest --table item_query --column kana --types correct --frequency_threshold 1 --query saerch Here is a suggestion example. .. groonga-command -.. include:: ../commands/suggest-suggestion.log +.. include:: ../example/commands/suggest-suggestion.log .. suggest --table item_query --column kana --types suggest --frequency_threshold 1 --query search Here is a mixed example. .. groonga-command -.. include:: ../commands/suggest-mixed.log +.. include:: ../example/commands/suggest-mixed.log .. suggest --table item_query --column kana --types complete|correct|suggest --frequency_threshold 1 --query search Modified: doc/source/indexing.txt (+7 -7) =================================================================== --- doc/source/indexing.txt 2012-05-10 10:14:06 +0900 (f694882) +++ doc/source/indexing.txt 2012-05-10 10:16:39 +0900 (c38cc76) @@ -54,7 +54,7 @@ to a column that already has data. We define a schema: .. groonga-command -.. include:: ../example/indexing-schema.log +.. include:: example/indexing-schema.log .. table_create Tweets TABLE_NO_KEY .. column_create Tweets content COLUMN_SCALAR ShortText .. table_create Lexicon TABLE_HASH_KEY|KEY_NORMALIZE ShortText --default_tokenizer TokenBigram @@ -62,7 +62,7 @@ We define a schema: We register data: .. groonga-command -.. include:: ../example/indexing-data.log +.. include:: example/indexing-data.log .. load --table Tweets .. [ .. {"content":"Hello!"}, @@ -73,7 +73,7 @@ We register data: We search without index. We get no result: .. groonga-command -.. include:: ../example/indexing-search-without-index.log +.. include:: example/indexing-search-without-index.log .. select Tweets --match_columns content --query 'good nice' We create index for ``Tweets.content``. Already registered @@ -81,20 +81,20 @@ data in ``Tweets.content`` are indexed by offline index construction: .. groonga-command -.. include:: ../example/indexing-offline-index-construction.log +.. include:: example/indexing-offline-index-construction.log .. column_create Lexicon tweet COLUMN_INDEX|WITH_POSITION Tweets content We search with index. We get a matched record: .. groonga-command -.. include:: ../example/indexing-search-after-offline-index-construction.log +.. include:: example/indexing-search-after-offline-index-construction.log .. select Tweets --match_columns content --query 'good nice' We register data again. They are indexed by online index construction: .. groonga-command -.. include:: ../example/indexing-online-index-construction.log +.. include:: example/indexing-online-index-construction.log .. load --table Tweets .. [ .. {"content":"Good morning! Nice day."}, @@ -104,5 +104,5 @@ construction: We can also get newly registered records by searching: .. groonga-command -.. include:: ../example/indexing-search-after-online-index-construction.log +.. include:: example/indexing-search-after-online-index-construction.log .. select Tweets --match_columns content --query 'good nice'