David Balmain wrote: > The pure ruby version is still there and I'd love for someone to take > over from me. I completely agree with you on the advantages of having > a pure ruby version. I personally want the performance which is why I > have taken the C route. And there is a huge difference. Somewhere > around 100 times. There are people out there who were still using Java > Lucene for indexing because of performance issues so I wasn't the only > one concerned about the performance.
Understood, and I do look forward to improved performance. > As for refactoring the API, I > understand it is very difficult for some Ruby programmers to get > around the C code but you don't need to send me a patch. Just let me > know what you think needs to be changed. My big suggestion would be to cut down on the surface area of the API - it's almost overly flexible, and feels over-designed (probably due to the port from Java). Fewer (documented) classes, simplified options, etc. Basically, it's a bit overwhelming to someone coming at it for the first time, and I don't think that's strictly (or even mostly) a documentation issue. As I use it more I'll try to come up with specific examples. My small suggestion would be to use symbols (and booleans) for configuration instead of the constants currently being used. For instance: Ferret::Document::Field::Store::YES -> true Ferret::Document::Field::Store::NO -> false Ferret::Document::Field::Store::COMPRESS -> :compress and Ferret::Document::Field::Index::NO -> false Ferret::Document::Field::Index::TOKENIZED -> :tokenized Ferret::Document::Field::Index::UNTOKENIZED -> :untokenized I think this would help Ferret configuration feel much more Rubyish. >> that raw benchmarks are going to drive that. > I want the same thing too. The other advantage to having the C version > is that it won't be too much work to Ferret in Perl, Python, Tcl etc. But why share? (just kidding ;-) > I'm currently an athlete. I'm practicing Judo in Japan and working on > Ferret whenever I have time. Fascinating (and very cool). Best of luck with it! Thanks again for Ferret, Nathaniel Talbott -- Posted via http://www.ruby-forum.com/. _______________________________________________ Ferret-talk mailing list [email protected] http://rubyforge.org/mailman/listinfo/ferret-talk

