Thanks Matthias,

yes, I had one empty key/value property. After adding checks, it now 
works fine.

Greetings

Axel

Am 24.02.2011 15:28, schrieb Mattias Persson:
> Use the source, Luke. Consulting the lucene source I see that you're
> trying to add something where both key and value are empty. Not null,
> but empty strings that is. You should have checks for that as well in
> your code.
>
> 2011/2/24 Axel Morgner<[email protected]>:
>> Hi,
>>
>> after transition to the new indexer framework, I tried to rebuild the
>> index on a small test database with 11,000 nodes.
>>
>> It failed with the following exception:
>>
>> java.lang.IllegalArgumentException: name and value cannot both be empty
>>      at org.apache.lucene.document.Field.<init>(Field.java:398)
>>      at org.apache.lucene.document.Field.<init>(Field.java:371)
>>      at org.apache.lucene.document.Field.<init>(Field.java:350)
>>      at
>> org.neo4j.index.impl.lucene.IndexType.instantiateField(IndexType.java:331)
>>      at
>> org.neo4j.index.impl.lucene.IndexType$CustomType.addToDocument(IndexType.java:159)
>>      at
>> org.neo4j.index.impl.lucene.LuceneCommand$AddCommand.perform(LuceneCommand.java:187)
>>      at
>> org.neo4j.index.impl.lucene.LuceneTransaction.doCommit(LuceneTransaction.java:231)
>>      at
>> org.neo4j.kernel.impl.transaction.xaframework.XaTransaction.commit(XaTransaction.java:319)
>>      at
>> org.neo4j.kernel.impl.transaction.xaframework.XaResourceManager.commit(XaResourceManager.java:447)
>>      at
>> org.neo4j.kernel.impl.transaction.xaframework.XaResourceHelpImpl.commit(XaResourceHelpImpl.java:65)
>>      at
>> org.neo4j.kernel.impl.transaction.TransactionImpl.doCommit(TransactionImpl.java:517)
>>      at
>> org.neo4j.kernel.impl.transaction.TxManager.commit(TxManager.java:623)
>>      at
>> org.neo4j.kernel.impl.transaction.TxManager.commit(TxManager.java:586)
>>      at
>> org.neo4j.kernel.impl.transaction.TransactionImpl.commit(TransactionImpl.java:105)
>>      at
>> org.neo4j.kernel.TopLevelTransaction.finish(TopLevelTransaction.java:86)
>>
>>
>> Thu Feb 24 14:21:56 CET 2011: --- CONFIGURATION START ---
>> Thu Feb 24 14:21:56 CET 2011: Physical mem: 7999MB, Heap size: 5333MB
>> Thu Feb 24 14:21:56 CET 2011: Kernel version: Neo4j - Graph Database
>> Kernel 1.2-SNAPSHOT (revision: 8112)
>> Thu Feb 24 14:21:56 CET 2011: Operating System: Linux; version:
>> 2.6.35-25-generic; arch: amd64; cpus: 8
>> Thu Feb 24 14:21:56 CET 2011: VM Name: OpenJDK 64-Bit Server VM
>> Thu Feb 24 14:21:56 CET 2011: VM Vendor: Sun Microsystems Inc.
>> Thu Feb 24 14:21:56 CET 2011: VM Version: 19.0-b09
>>
>> I made sure that I only add non-null values to the index.
>>
>> Does anyone have an idea what's going wrong?
>>
>> Greetings
>>
>> Axel
>> _______________________________________________
>> Neo4j mailing list
>> [email protected]
>> https://lists.neo4j.org/mailman/listinfo/user
>>
>


-- 
Axel Morgner
Creative Solutions - Software Engineering
GUI&  UX Design - Project Management

c/o inxire GmbH
Hanauer Landstr. 293a
60314 Frankfurt
Germany

Phone +49 151 40522060
[email protected]
Webhttp://www.morgner.de

_______________________________________________
Neo4j mailing list
[email protected]
https://lists.neo4j.org/mailman/listinfo/user

Reply via email to