On 10/25/06, Jon <[EMAIL PROTECTED]> 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/
_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk