Skip to content

Commit

Permalink
Switch IndexConfiguration to be enum
Browse files Browse the repository at this point in the history
  • Loading branch information
MishaDemianenko committed Jan 21, 2016
1 parent 934aa72 commit ad3fdc3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,8 @@ private PartitionedIndexStorage getIndexStorage( long indexId )

private boolean indexIsOnline( PartitionedIndexStorage indexStorage ) throws IOException
{
IndexConfiguration indexConfig = IndexConfiguration.NON_UNIQUE;
IndexSamplingConfig samplingConfig = new IndexSamplingConfig( new Config() );
try ( LuceneSchemaIndex index = new LuceneSchemaIndex( indexStorage, indexConfig, samplingConfig ) )
try ( LuceneSchemaIndex index = new LuceneSchemaIndex( indexStorage, IndexConfiguration.NON_UNIQUE, samplingConfig ) )
{
if ( index.exists() )
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,7 @@ private PartitionedIndexStorage getIndexStorage() throws IOException
{
IndexStorageFactory storageFactory =
new IndexStorageFactory( directoryFactory, new EphemeralFileSystemAbstraction(), indexDirectory );
PartitionedIndexStorage indexStorage = storageFactory.indexStorageOf( 1 );
return indexStorage;
return storageFactory.indexStorageOf( 1 );
}

private NodePropertyUpdate add( long nodeId, Object propertyValue )
Expand Down

0 comments on commit ad3fdc3

Please sign in to comment.