Displaying 3 results from an estimated 3 matches for "queryparseexception".
2006 Oct 16
2
Ferret::QueryParser::QueryParseException
During our last week of Ferret / aaf usage (also our first week of
Ferret / aaf usage), I have received 8 messages stating that our app
encountered a Ferret::QueryParser::QueryParseException. For instance:
A Ferret::QueryParser::QueryParseException occurred in foo#search:
Error occurred in src/q_parser.y:279 - yyerror
couldn''t parse query "com -- 404". Error message was syntax error
/where/gems/are/stored/gems/ferret-0.10.11/lib/ferret/index.rb:709 in
&...
2007 Jan 17
7
removing special/syntax characters
Is there any somewhat standard way to remove or otherwise handle
special or syntax characters from a user''s search, such as a colon?
I was thinking maybe there was something akin to
Ferret::Analysis::FULL_ENGLISH_STOP_WORDS, like
Ferret::Analysis::FERRET_SYNTAX_CHARS, but no such luck.
How are other folks dealing with filtering user input?
John
2006 Sep 20
3
Range searches some times they work, some times not...
...tart to occur when i search on big distances so for example
40 miles from "G1"
VoObject.ferret_index.search(" x:[206826 335573] AND y:[590526
719273]").total_hits
=> 165
300 miles
VoObject.ferret_index.search("y:[172098 1137702]").total_hits
Ferret::QueryParser::QueryParseException: Error occured in q_range.c:121
- range_new
Upper bound must be greater than lower bound. "1137702" <
"172098"
from
/usr/lib/ruby/gems/1.8/gems/ferret-0.10.1/lib/ferret/index.rb:572:in
`parse''
from
/usr/lib/ruby/gems/1.8/gems/ferret-0.10...