Hi Eric, The way I did the conversion is semi-automatic. Here is how:
1) I wrote an Eclipse plug-in that converted the Java code such that it gives it a C# "feel". That is, convert "org.apache.lucene.index.FieldsWriter" to "Lucene.Net.Index.FieldsWriter", convert "addDocument()" to "AddDocument()", etc. This was done by having my plug-in utilize Eclipse's refectoring feature. 2) I used "Java Language Conversion Assistant" found here http://msdn.microsoft.com/vstudio/downloads/tools/jlca/ to convert the Java code to C#. 3) The JLCA conversion in #2 left behind a lot of code unconverted. For dotLucene 1.4.0 I finished the job by hand, for 1.4.3, I wrote a C# tool to finish the job (not 100% but more than 95%.) This is it. For 1.4.0, I did the conversion from the original 1.4.0 Java code. For 1.4.3 conversion that I started last night, I first run a 'diff' between 1.4.0 and 1.4.3 of the Java code and will have to convert only the modified codes. Ver. 1.4.0 took me about 1 month to get it to alpha quality (where I get almost 90% of the JUnit test to pass). For Ver. 1.4.3, I expect to have it complete by next week -- an RC1 quality. Keep in mind, I am doing this as a side task after hours. After all, I have a day job to keep. :) I don't know how Lucene.Net 1.3 was converted to C# by Pasha Bizhan but I like to hear from him. Thanks for pointing me to JUnitPerf, I didn't know about it. I think I can port it to C# in no time. :) Yes, having a standard performance/load test for Lucene would be the next logical thing to do. Regards, -- George Aroush -----Original Message----- From: Erik Hatcher [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 01, 2004 9:48 AM To: Lucene Users List Subject: Re: dotLucene (port of Jakarta Lucene to C#) On Dec 1, 2004, at 9:39 AM, George Aroush wrote: > I am currently working on porting 1.4.3 to C# which I expect to have > it completed by next week. Once I have it done, I will do full > performance comparison. Is the port a completely manual process for you? Could you describe how you do the porting to us? > Speaking of which, does Lucene has a standard performance test code > that I can use as well as data and guidelines? I am looking for > something similar to JUnit but for performance analyses. In Lucene in Action (we promise, the e-book and code are being released soon - likely this week!!!), Mike Clark donated some performance tests to us using JUnitPerf (he's the creator of it). JUnitPerf is a great way to do timed and load tests. The Java version of Lucene could certainly benefit from a suite of performance tests, at least to ensure future changes do not adversely affect performance without a good reason to do so. JUnitPerf is almost trivial to use - just a decorator for JUnit tests. One of these days all of the Lucene ports should come together and come up with a compatibility test suite as well as some performance benchmarks. Erik --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]