Hi Dave,
Thanks very much for getting back to me.
You were right about the indexes being different...
Your snippet has helped - but still nowhere near as fast as the Java
version:
doc.add(new Field("path", f.getPath(), Field.Store.YES,
Field.Index.UN_TOKENIZED));
doc.add(new Field("modified",DateTools.timeToString(f.lastModified(),
DateTools.Resolution.MINUTE), Field.Store.YES,
Field.Index.UN_TOKENIZED));
doc.add(new Field("contents", new FileReader(f)));
Could it be that ruby's file.readlines is slower than Java's FileReader?
Another possible snafu is that the Directory contains loads of pdfs and
other binary files which neither lucene or ferret can index - could it
be that ferret is slower at dealing with things like that? (Just a
thought)
Would love to hear any thoughts.
Many Thanks,
Steven.
--
Posted via http://www.ruby-forum.com/.
_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk