Re: Command line ferret engine

Colin Law
2010-01-20T14:46:20Z

2010/1/20 Hemant Bhargava
<lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org>:
> Hi Champs,
>
> I am using this fuzzy query in ferret engine to search something.
> "Summary.find_with_ferret(@fuzzy_query, {:limit => :all})"
where Summary
> is a model class which contains each and every details of any item.
>
> Now, when i run this code in GUI, I mean when i search something in
> browser it works fine. But when i test this by command line by passing
> the same parameters as i do using GUI, its not working. I am doing it
> like this in integration testing :- post "/home/seach",
:search_value =>
> "abc". This fuzzy query gives me nothing. I am snatching my head
over
> it..

I don''t know about ferret but I would have thought that would be a get
rather than a post.  Have a look in development.log and see what is
the request sent when you click on the link that works in your
browser.

Colin.