Kazuhiko
kazuh****@fdiar*****
2010年 11月 4日 (木) 23:56:27 JST
こんにちは、かずひこです。 http://groonga.org/docs/tutorial/tutorial06.html#id2 にあるタグ検索のチュートリアルの応用で、「タグA」と「タグB」がともに使わ れているものを抽出しようと以下のように試してみたら、 > select --table Video --query "tags:@Baseball AND tags:@Sports" --output_columns _key,title [[-63,1288882062.01664,0.001199768,"stack under flow in relative op",[["grn_expr_append_obj","expr.c",991]]],[]] となりました。 ちなみに、ORはちゃんと動きます。 > select --table Video --query "tags:@Baseball OR tags:@Sports" --output_columns _key,title [[0,1288882075.32561,0.000658133],[[[2],[["_key","UInt32"],["title","ShortText"]],[4,"Moero!! Ultra Baseball"],[1,"Soccer 2010"]]]] タグでAND検索したいときのqueryは、上記であっているでしょうか? かずひこ