Hi,
I'm interested in working with the Lucene proposal over the summer and have implemented a very simple proof of concept. Anyone interested can pull the code from
https://code.launchpad.net/~eaneiros/gephi/lucene1. This is not meant to showcase anything related to design or architecture but just to get an idea of what path to follow and get a feeling of how the integration between the Lucene and the Attributes API might work.
To test the feature follow the steps below:
1 - Download the branch, open in Netbeans, compile & run
2 - Download the test case attached to this post and open it. I use this one because the node columns contain text data like country, name, programming language, etc which are useful to test Lucene.
3 - In the Data Laboratory Node view, you will see a button "Index" to the left of the filter textbox. Click it and Lucene will index all the nodes.
4 - Your are now ready to use Lucene in Gephi!! Enter your Lucene queries in the Filter textbox hit enter and see the results appear in the data table.
5 - To reset the data table erase the textbox and press enter.
Here are some interesting queries that you can try:
language:lisp - All developers that use some flavor of Lisp
location:"United States" AND language:Ruby - All developers from the United States that use Ruby
location:United AND (language:Ruby OR language:Javascript) - All developers from either the United States or the United Kingdom that use either Ruby or Javascript
Note: since this is such a primitive implementation any problems you find check stdout first for any clues as to what the problem might be. If it persists use the only true way of fixing bugs, restart Gephi and pray, or change your query
