|
Re: QueryParser Exception Handling Problem: msg#00074lang.ruby.ferret.general
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> |
|---|---|---|
| Previous by Date: | Re: Index location for multiple servers: 00074, Ryan King |
|---|---|
| Next by Date: | Index help on Polymorphic Associations: 00074, Jackie |
| Previous by Thread: | Re: QueryParser Exception Handling Problemi: 00074, Sam |
| Next by Thread: | Re: QueryParser Exception Handling Problem: 00074, Jens Kraemer |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |