<p dir="auto">Hello, my BatchInserter failed after successfully having imported more than 75 million nodes with this exception:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Exception in thread &quot;main&quot; java.lang.NumberFormatException: For input string: &quot;5870760&quot;
        at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
        at java.lang.Long.parseLong(Long.java:441)
        at java.lang.Long.valueOf(Long.java:540)
        at org.neo4j.index.impl.lucene.DocToIdIterator.fetchNextOrNull(DocToIdIterator.java:56)
        at org.neo4j.index.impl.lucene.DocToIdIterator.fetchNextOrNull(DocToIdIterator.java:27)
        at org.neo4j.helpers.collection.PrefetchingIterator.hasNext(PrefetchingIterator.java:55)
        at org.neo4j.helpers.collection.IteratorUtil.single(IteratorUtil.java:337)
        at org.neo4j.helpers.collection.IteratorUtil.singleOrNull(IteratorUtil.java:130)
        at org.neo4j.index.impl.lucene.AbstractIndexHits.getSingle(AbstractIndexHits.java:45)
        at CorpusImporter.main(CorpusImporter.java:114)"><pre class="notranslate"><code class="notranslate">Exception in thread "main" java.lang.NumberFormatException: For input string: "5870760"
        at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
        at java.lang.Long.parseLong(Long.java:441)
        at java.lang.Long.valueOf(Long.java:540)
        at org.neo4j.index.impl.lucene.DocToIdIterator.fetchNextOrNull(DocToIdIterator.java:56)
        at org.neo4j.index.impl.lucene.DocToIdIterator.fetchNextOrNull(DocToIdIterator.java:27)
        at org.neo4j.helpers.collection.PrefetchingIterator.hasNext(PrefetchingIterator.java:55)
        at org.neo4j.helpers.collection.IteratorUtil.single(IteratorUtil.java:337)
        at org.neo4j.helpers.collection.IteratorUtil.singleOrNull(IteratorUtil.java:130)
        at org.neo4j.index.impl.lucene.AbstractIndexHits.getSingle(AbstractIndexHits.java:45)
        at CorpusImporter.main(CorpusImporter.java:114)
</code></pre></div>
<p dir="auto">The line that caused the exception is:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="formNode = forms.query(&quot;form:\&quot;&quot;+tokenStr+&quot;\&quot; lemma:\&quot;&quot;+lemmaStr+&quot;\&quot; tag:\&quot;&quot;+tagStr+&quot;\&quot;&quot;).getSingle();"><pre class="notranslate"><code class="notranslate">formNode = forms.query("form:\""+tokenStr+"\" lemma:\""+lemmaStr+"\" tag:\""+tagStr+"\"").getSingle();
</code></pre></div>
<p dir="auto">(i.e. searching whether a node with such parameters already exists in the index)</p>
<p dir="auto">forms is defined as follows:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="LuceneBatchInserterIndexProvider indexProvider = new LuceneBatchInserterIndexProvider( inserter );
BatchInserterIndex forms = indexProvider.nodeIndex( &quot;forms&quot;, MapUtil.stringMap( &quot;type&quot;, &quot;exact&quot; ) );
forms.setCacheCapacity( &quot;form&quot;, 10000000 );
forms.setCacheCapacity( &quot;lemma&quot;, 1000000 );
forms.setCacheCapacity( &quot;tag&quot;, 100000 );"><pre class="notranslate"><code class="notranslate">LuceneBatchInserterIndexProvider indexProvider = new LuceneBatchInserterIndexProvider( inserter );
BatchInserterIndex forms = indexProvider.nodeIndex( "forms", MapUtil.stringMap( "type", "exact" ) );
forms.setCacheCapacity( "form", 10000000 );
forms.setCacheCapacity( "lemma", 1000000 );
forms.setCacheCapacity( "tag", 100000 );
</code></pre></div>
<p dir="auto">When I tried the same process a few days ago with version 2.0.0-RC1, it successfully passed this data, but failed after 107 millions nodes with a segmentation fault.</p>
<p dir="auto">I am trying to create relationships between nodes that are distinct. Right now, I can only return distinct. Is there any way for me to match distinct or create distinct? For example:</p>
<p dir="auto">match (p:Player), (n:Games) where p.id = n.id<br>
create (p)-[:has_played]-&gt;[n]</p>
<p dir="auto">There are player nodes with the same id and the query above is matching all the games to the duplicated player ids. Is there some way I can get the distinct player ids and match it with the games?</p>