Groonga 2.0.2ããé¡ä¼¼ææ¸æ¤ç´¢æ©è½ã使ããããã«ãªã£ããGroongaã®Rubyãã¤ã³ãã£ã³ã°ã§ããRroongaã§ã¯2.0.3ã§åæ©è½ã¸ã®å¯¾å¿ããªããã¦ããã Groongaã¬ãã«ã§ã¯select ... --filter ã«ã©ã å *S "ããã¹ã"ã«ããé¡ä¼¼ææ¸æ¤ç´¢ãã§ããããã®ã¨ãã«æå®ããã«ã©ã ã¯å ¨ææ¤ç´¢ã§ããããã¤ã³ããã¯ã¹ãä½ã£ã¦ãããªããã°ãªããªãã Rroongaããã®ä½¿ãæ¹ã¯ä»¥ä¸ã®ããã«ãªãã(Article.bodyã«æ½åºå¯¾è±¡ã®ããã¹ããããã¨ããã) records = Groonga['Article'].select do |record| record.body.similar_search(article_body) end records.sort([ {key: '_score', order: 'descending'}, ], limit
{{#tags}}- {{label}}
{{/tags}}