Lucene index version problem

84 views
Skip to first unread message

Manfred Dardenne

unread,
Jan 26, 2011, 6:37:59 AM1/26/11
to Gremlin-users
Hi,

The scenario is the following :

I use Gremlin over Rexster,
Through gremlin I created 2 automatic indexes that were not presents :
edges and vertices

When I add some vertices a properties I can search them through the
index
When I stop the rexster server, start the neo4j-1.2 one and add
vertices through neography (rails gem for connecting to neo4j), this
works

Then I stop the neo4j server, restart rexster and reconnect through
gremlin.

When I want to do a : g.idx(T.v)[[project:61]] I got this exception :

org.apache.lucene.index.CorruptIndexException: Incompatible format
version: 2 expected 1 or lower

So far on the neo4j side I have these jars :

neo4j-lucene-index-0.2-1.2.jar
org.apache.servicemix.bundles.jline-0.9.94_1.jar
org.apache.servicemix.bundles.lucene-3.0.1_2.jar

On the gremlin side :

neo4j-lucene-index-0.2-1.2.M05.jar
org.apache.servicemix.bundles.jline-0.9.94_1.jar
org.apache.servicemix.bundles.lucene-3.0.1_2.jar

What is wrong ?

Best Regards,
Manfred



Mattias Persson

unread,
Jan 26, 2011, 9:32:55 AM1/26/11
to Gremlin-users
Hi Manfred,

This looks to be a Lucene version issue, not a Neo4j issue. Have you
run your application with a later (or earlier) version of lucene on
the classpath prior to upgrading to neo4j 1.2, or there's maybe
another lucene version on your classpath after the upgrade?

The lucene version which neo4j-lucene-index depends on hasn't changed
since june 2010.

Marko Rodriguez

unread,
Jan 26, 2011, 10:08:28 AM1/26/11
to gremli...@googlegroups.com
Hi Manfred,

As a side....and potentially causing the problem:

Rexster 0.1 currently only supports Neo4j 1.2M05 and Gremlin 0.6. (see the pom.xml)

There hasn't been a new release of Rexster that bumps all of this up a notch.

I will make it a priority to get a new version of Rexster pushed.

Thanks,
Marko.

Manfred Dardenne

unread,
Jan 26, 2011, 10:19:37 AM1/26/11
to Gremlin-users
Hi Alex, Hi Mattias,

Yes, that can be a rexster version problem, and yes the fact that it
is Gremlin 0.6 does not allow to use the groovy gremlin language.
Also to confirme this is the problem, what I can do is to restart for
a fresh install of neo4j, recreate a graph , put the data in it and
see what's happening

Best Regards,
Manfred
Reply all
Reply to author
Forward
0 new messages