[Neo tickets] #297: lucene fulltext index for read only database

neo4j.org noreply at neo4j.org
Tue Dec 7 17:35:08 CET 2010


#297: lucene fulltext index for read only database
-----------------------------------------+----------------------------------
 Reporter:  matthias.zengler at unister.de  |       Owner:  johans
     Type:  bug report                   |      Status:  new   
 Priority:  major                        |   Milestone:        
Component:  index                        |    Keywords:        
-----------------------------------------+----------------------------------
 If we try to use the !ReadOnlyDatabase with the lucene fulltext index we
 got the following error messag:

 {{{
 Exception in thread "main" java.lang.ClassCastException:
 org.neo4j.kernel.EmbeddedReadOnlyGraphDatabase cannot be cast to
 org.neo4j.kernel.EmbeddedGraphDatabase
         at
 org.neo4j.index.lucene.LuceneIndexService.<init>(LuceneIndexService.java:100)
         at
 org.neo4j.index.lucene.LuceneFulltextIndexService.<init>(LuceneFulltextIndexService.java:60)
 }}}

 it seems that we cant use "!EmbeddedReadOnlyGraphDatabase" as parameter
 for "!LuceneFulltextIndexService"

 our code:
 {{{
         protected EmbeddedReadOnlyGraphDatabase GraphDB = null;
         //protected EmbeddedGraphDatabase GraphDB = null;
         protected IndexService Index = null;
         protected LuceneFulltextIndexService FulltextIndex = null;

         ...

         GraphDB = new EmbeddedReadOnlyGraphDatabase(path);
         Index = new LuceneReadOnlyIndexService(GraphDB);
         FulltextIndex = new LuceneFulltextIndexService(GraphDB);
 }}}

 the documentation says that we need a "!GraphDatabaseService" as parameter
 and "!EmbeddedReadOnlyGraphDatabase" shoul be suitable because it is
 derived from "!GraphDatabaseService"

-- 
Ticket URL: <https://trac.neo4j.org/ticket/297>
neo4j.org <http://trac.neo4j.org/>
The Neo4J.org Issue Tracker


More information about the Tickets mailing list