Skip to content

Commit

Permalink
Change to StandardAnalyzer in bloom index
Browse files Browse the repository at this point in the history
  • Loading branch information
ragadeeshu committed Sep 12, 2017
1 parent 8fca632 commit 12bf4e5
Showing 1 changed file with 4 additions and 4 deletions.
Expand Up @@ -19,7 +19,9 @@
*/ */
package org.neo4j.kernel.api.impl.bloom; package org.neo4j.kernel.api.impl.bloom;


import org.apache.lucene.analysis.Analyzer;
import org.apache.lucene.analysis.en.EnglishAnalyzer; import org.apache.lucene.analysis.en.EnglishAnalyzer;
import org.apache.lucene.analysis.standard.StandardAnalyzer;
import org.apache.lucene.index.IndexWriterConfig; import org.apache.lucene.index.IndexWriterConfig;


import java.io.File; import java.io.File;
Expand All @@ -45,10 +47,8 @@ public class BloomIndex implements AutoCloseable
public BloomIndex( FileSystemAbstraction fileSystem, File file, Config config ) throws IOException public BloomIndex( FileSystemAbstraction fileSystem, File file, Config config ) throws IOException
{ {
this.properties = config.get( GraphDatabaseSettings.bloom_indexed_properties ).toArray( new String[0] ); this.properties = config.get( GraphDatabaseSettings.bloom_indexed_properties ).toArray( new String[0] );
EnglishAnalyzer analyzer = new EnglishAnalyzer(); Analyzer analyzer = new StandardAnalyzer();
Factory<IndexWriterConfig> population = () -> { Factory<IndexWriterConfig> population = () -> IndexWriterConfigs.population( analyzer );
return IndexWriterConfigs.population( analyzer );
};
WritableIndexPartitionFactory partitionFactory = new WritableIndexPartitionFactory( population ); WritableIndexPartitionFactory partitionFactory = new WritableIndexPartitionFactory( population );


LuceneIndexStorageBuilder storageBuilder = LuceneIndexStorageBuilder.create(); LuceneIndexStorageBuilder storageBuilder = LuceneIndexStorageBuilder.create();
Expand Down

0 comments on commit 12bf4e5

Please sign in to comment.