This might be more of a Lucene question, but I can''t figure it out.
How
come this works:
Item.find_id_by_contents("name:Bob")
but this returns no results:
Item.find_id_by_contents(Ferret::Search::TermQuery.new(:name, "Bob"))
Thanks in advance!
-Jon
--
Posted via http://www.ruby-forum.com/.
On 10/25/06, Jon <jon at mywellnet.com> wrote:> This might be more of a Lucene question, but I can''t figure it out. How > come this works: > > Item.find_id_by_contents("name:Bob") > > but this returns no results: > > Item.find_id_by_contents(Ferret::Search::TermQuery.new(:name, "Bob")) > > > > Thanks in advance! > > -Jon >Hi Jon, You need to downcase bob. The query parser does that for you. -- Dave Balmain http://www.davebalmain.com/