Displaying 6 results from an estimated 6 matches for "clean_str".
Did you mean:
clean_start
2008 Jan 16
0
QueryParser clean_string ?
Hello,
What happened to "clean_string" in QueryParser?
Benjamin
2006 Mar 14
6
cFerret nearing completion
Hey folks,
Some good news. I''ve finished cFerret and it''s ruby bindings to the
point where I can run all of the unit tests. I still have to work out
how I''m going to package and release it but it shouldn''t be long now.
If you can''t wait you might like to try it from the subversion
repository. It''ll probably only work on linux at the moment and
2006 Oct 16
2
Ferret::QueryParser::QueryParseException
...b/ferret/index.rb:709 in
''parse''
(thanks to the excellent exception_notification plugin for what you see
above)
So I did a little research into the Exception, which only left me with
more questions. According to the RDoc for Ferret, the
Ferret::QueryParser#new method has a :clean_string option that should
escape any special characters, and by default it''s on. I emailed the
author of aaf and he said that he doesn''t do anything with this flag, so
it should still be on. In that case, why am I still seeing this
exception?
Jim
--
Posted via http://www.ruby...
2008 Jan 16
2
Escaping special characters :, (, ), [, ], {, }, !, +, ", ~, ^, -, |, <, >, =, *, ?, \
Hello,
I am trying to escape words for searching i.e., "hello". The key here
is that the two L''s on "hello" are actually vertical bars. Is there
a special function in Ferret or anywhere for that matter that will do
the escaping of the Ferret special characters?
Thanks in advance,
Benjamin
2008 Jul 19
5
helper functions permanently altering variables
...9;'m maybe not understanding the helper functions
correctly, but I''m having a weird problem that seems like it shouldn''t
be. I''m sanitizing some book names for url''s using my application
helper:
-- application helper
def format_url(url)
title = url
clean_string(title)
truncate(@title, 100, "")
return title
end
def clean_string(str)
str.gsub!(/\W+/, '' '') # all non-word chars to spaces
str.strip! # ohh la la
str.downcase! #
str.gsub!(/\ +/, ''-'') # spaces to dashes,...
2006 Jul 25
1
RDig document processing error
...@name not initialized
lib/ferret/query_parser/query_parser.y:128: warning: method redefined;
discarding old initialize
lib/ferret/query_parser/query_parser.y:157: warning: method redefined;
discarding old parse
lib/ferret/query_parser/query_parser.y:216: warning: method redefined;
discarding old clean_string
/usr/lib/ruby/gems/1.8/gems/rubyful_soup-1.0.4/lib/rubyful_soup.rb:230:
warning: method redefined; discarding old attrs
discovered content extractor class:
RDig::ContentExtractors::PdfContentExtractor
discovered content extractor class:
RDig::ContentExtractors::WordContentExtractor
discovered...