On 3/28/06, Josh Di <[EMAIL PROTECTED]> wrote:
> Hi David,
>
> thank you for the new release.
>
> To the details. How do I compile the latest svn checkout? If I do the
> normal procedure "setup.rb config && setub.rb setup && setup.rb
> install", it won't compile because files are missing in ext/.
Sorry, I forgot to check some files in. It should work now. Run
rake ext
to copy all the files into the ext directory and build the extension.
Then setup.rb should work correctly.
> <snip>
> So I played around with that one and have added/changed some things on
> which I would like to hear your opinion.
>
> * I made QueryParser's "clean_string" callable via Ruby. So that one can
> override the method. For that it must be called in frt_qp_parse() via
> rb_funcall(). Problem is: qp_parse() is also directly called from C
> (index_get_query), so in this case "clean_string" will not be called.
I've added a :clean_string attribute to Index and QueryParser. So;
index = Index::Index.new(:clean_string => false)
will create Index that uses a QueryParser that doesn't call the
clean_string function. This way you can clean the string yourself
before you even pass it to the search method. I think this makes the
most sense.
> * The current StandardAnalyzer does not parse UTF-8 strings correctly.
> So I made a quick hack and copy-and-pasted your old SA-implementation
> with Regular Expression to C. Is this of interest? I then would add the
> stuff I didnt need (handling of acronyms) and send you the diffs.
I'd definitely like to see this. Send me a patch or the code or whatever.
> * I needed .reader on IndexSearcher . This should be in the main branch
> too, right?
I've added a reader attribute to IndexSearcher. You may like to look
at what I changed and compare it to the way you did it. The memory
management between C and ruby can be quite confusing.
>
> Best regards
>
> josh
>
> --
> Posted via http://www.ruby-forum.com/.
> _______________________________________________
> Ferret-talk mailing list
> [email protected]
> http://rubyforge.org/mailman/listinfo/ferret-talk
>
_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk