HAYASHI Kentaro
null+****@clear*****
Thu Mar 28 17:50:05 JST 2013
HAYASHI Kentaro 2013-03-28 17:50:05 +0900 (Thu, 28 Mar 2013) New Revision: 1f5f51bb979c73acbf4c279a49d81a7e3b5eae00 https://github.com/groonga/groonga/commit/1f5f51bb979c73acbf4c279a49d81a7e3b5eae00 Message: doc: don't use continuous line for execution example because update_excution_example.py doesn't support it. Modified files: doc/source/reference/functions/sub_filter.txt Modified: doc/source/reference/functions/sub_filter.txt (+2 -4) =================================================================== --- doc/source/reference/functions/sub_filter.txt 2013-03-27 19:33:38 +0900 (2495747) +++ doc/source/reference/functions/sub_filter.txt 2013-03-28 17:50:05 +0900 (d337988) @@ -70,8 +70,7 @@ Here is the simple usage of ``sub_filter`` function which extracts the blog entr .. groonga-command .. include:: ../../example/reference/functions/sub_filter/usage_without_sub_filter.log -.. select Blog --output_columns _key \ -.. --filter "comments.name @ \"A\" && comments.content @ \"groonga\"" +.. select Blog --output_columns _key --filter "comments.name @ \"A\" && comments.content @ \"groonga\"" When executing above query, not only "groonga's blog", but also "mroonga's blog". This is not what you want because user "A" does not mention "groonga" to "mroonga's blog". @@ -83,8 +82,7 @@ Without sub_filter, it means that following conditions are met. .. groonga-command .. include:: ../../example/reference/functions/sub_filter/usage_with_sub_filter.log -.. select Blog --output_columns _key \ -.. --filter 'sub_filter(comments, "name @ \\"A\\" && content @ \\"groonga\\"")' +.. select Blog --output_columns _key --filter 'sub_filter(comments, "name @ \\"A\\" && content @ \\"groonga\\"")' On the other hand, executing above query returns the intended result. Because the arguments of sub_filter is evaluated in comments column's context. -------------- next part -------------- HTML����������������������������...Download