On 3/28/06, Josh Di [email protected] wrote:
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
to copy all the files into the ext directory and build the extension.
Then setup.rb should work correctly.
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
- 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
- I needed .reader on IndexSearcher . This should be in the main branch
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.