HAYASHI Kentaro
null+****@clear*****
Thu May 1 19:19:22 JST 2014
HAYASHI Kentaro 2014-05-01 19:19:22 +0900 (Thu, 01 May 2014) New Revision: 893fa0d7c6aa02016be212421e28710455ad3537 https://github.com/groonga/groonga/commit/893fa0d7c6aa02016be212421e28710455ad3537 Message: doc suggest: add description how to extrac learning data Modified files: doc/source/suggest/suggestion.txt Modified: doc/source/suggest/suggestion.txt (+17 -0) =================================================================== --- doc/source/suggest/suggestion.txt 2014-05-01 19:09:31 +0900 (18dda55) +++ doc/source/suggest/suggestion.txt 2014-05-01 19:19:22 +0900 (cf9ba2f) @@ -113,3 +113,20 @@ following command:: {"sequence": "1", "time": 1312950803.86057, "item": "search engine", "type": "submit"}, {"sequence": "1", "time": 1312950808.86057, "item": "web search realtime", "type": "submit"} ] + +How to extract learning data +---------------------------- + +The learning data is stored into item_DATASET and pair_DATASET tables. +By using select command for such tables, you can all extract learing data. + +Here is the query to extract all learning data:: + + select item_DATASET --limit -1 + select pair_DATASET --filter 'freq0 > 0 || freq1 > 0 || freq2 > 0' --limit -1 + +Without '--limit -1', you can't get all data. +In pair table, the valid value of freq0, freq1 and freq2 column must be larger than 0. + +Don't execute above query via HTTP request because enourmous number of records are fetched. + -------------- next part -------------- HTML����������������������������...Download