Shiluka Raveen Dharmasena
2014-Mar-10 16:37 UTC
[Xapian-devel] 'Java Binding Improvements' project
Hi, I am a 2nd year student of Computer Science and Engineering Department in University of Moratuwa. I am interested in 'Java Binding Improvements' project. I went through given resources on the Xapian web page ( http://trac.xapian.org/wiki/GSoCProjectIdeas#Project:JavaBindingsImprovements ). I cloned Xapian repository, build the project successfully as described in following article. [1] http://trac.xapian.org/wiki/GSoC%20Guide#Checkingoutandbuildingthecode I focused on how to get started with the project. [2] http://xapian.org/docs/apidoc/html/annotated.html [3] http://xapian.org/docs/bindings/java/README According to the article [3] the source codes related to https://github.com/xapian/xapian/tree/master/xapian-core Now I am studying codes in following packages. [4] https://github.com/xapian/xapian/tree/master/xapian-core/queryparser [5] https://github.com/xapian/xapian/tree/master/xapian-core/weight After that I hope to wrap Query Parser API. In addition to resources mentioned above, I hope to refer following article to create it. [6] http://llama.mshri.on.ca/~fgibbons/doc/SWIG1.3.10.dont.use/Manual/Java.html Please correct me if I am in a wrong track. Please give me suggestions if there are better ways to do that. Regards Shiluka Raveen Dharmasena -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.xapian.org/pipermail/xapian-devel/attachments/20140310/3da3e355/attachment-0002.html>
On Mon, Mar 10, 2014 at 10:07:29PM +0530, Shiluka Raveen Dharmasena wrote:> [3] http://xapian.org/docs/bindings/java/READMEThis is the README for the hand-coded JNI bindings which are the standard Java bindings in Xapian 1.2. But we're phasing those out as they are too much work to maintain. You should be working with the SWIG-generated bindings in trunk (also known as master in the git repo). Assuming you checkout out the default branch from git, look in the directory "xapian/xapian-bindings/java".> After that I hope to wrap Query Parser API. In addition to resources > mentioned above, I hope to refer following article to create it.The QueryParser API is already wrapped in the SWIG-generated bindings.> http://llama.mshri.on.ca/~fgibbons/doc/SWIG1.3.10.dont.use/Manual/Java.htmlThat seems to be a random copy of the docs from an old version of SWIG. I'd use the latest version on the SWIG website instead (as linked to from the "Resources" section of the project idea): http://swig.org/Doc2.0/Java.html If you want somewhere to get started, you might want to look at SmokeTest.java - there are some parts of the tests in there which are currently commented out, and you could take a look at resolving some of those. You might find some useful fixes in Dan's branch: https://github.com/dcolish/xapian/tree/java-fixes Cheers, Olly