Problem with TermQuery

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

On 10/25/06, Jon [email protected] wrote:

Thanks in advance!

-Jon

Hi Jon,
You need to downcase bob. The query parser does that for you.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs