logo       

Re: QueryParser Exception Handling Problem: msg#00074

lang.ruby.ferret.general

Subject: Re: QueryParser Exception Handling Problem

Sam,

> If you're making your own QueryParser, there is another gotcha -> the
> docs say to use the parameter handle_parser_errors but that's not right
> with 0.10.13. It should be
>
> Ferret::QueryParser.new({:handle_parse_errors => true}) # not
> handle_parser_errors like docs say
>
> Note the missing r on parse(r)

acts_as_ferret( { :fields => { 'ferret_index_article_title' => {
:boost => 2 },
'ferret_index_article_body' => { :boost
=> 1.5 },
'ferret_index_article_comments' => {
:boost => 1 },
'ferret_index_article_image_captions'
=> { :boost => 1.5 } }, :store_class_name => true },
{ :analyzer =>
Ferret::Analysis::StandardAnalyzer.new([nil])} )

I'm not specifically creating my own QueryParser object. Any idea where
i would stick the :handle_parse_errors => true in the above.

Thanks in advance.

--
Posted via http://www.ruby-forum.com/.


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise