[groonga-dev,02944] Rroongaで検索時に特定カラムに重みを付けたい

アーカイブの一覧に戻る

ongaeshi ongae****@gmail*****
2014年 11月 11日 (火) 02:56:24 JST


おんがえしです。

Groonga#select(http://groonga.org/ja/docs/reference/commands/select.html)の

--match_columns content 'comment * 10'

に相当することをRroongaでやろうとしています。
マニュアルを探したのですが上手く見つけることが出来ず、

grn.select(
  "aaa",
  default_column: "comment * 10"
)

とかやってみたのですが上手くいきませんでした。

selectメソッドは

http://ranguba.org/rroonga/ja/Groonga/Table.html#select-instance_method

- (Groonga::Hash) select(options) {|record| ... }

のブロック形式ではなく、

- (Groonga::Hash) select(query, options)

の文字列クエリによる検索を使いたいと考えています。

Rroongaで特定カラムの検索結果に重みを付けることは可能でしょうか?

-- 
/******************************************
 ongaeshi
 MAIL:   ongae****@gmail*****
 WEB:   http://ongaeshi.me
 Twitter: http://twitter.com/ongaeshi
 ******************************************/



groonga-dev メーリングリストの案内
アーカイブの一覧に戻る