Switching to IndexType to allow for more advanced IndexProvider

creation.
This commit is contained in:
Peter Neubauer
2011-10-21 11:45:34 +02:00
committed by Michael Hunger
parent 56d9067637
commit 2c9c856b7c
2 changed files with 4 additions and 4 deletions

View File

@@ -76,7 +76,7 @@
<dependency>
<groupId>org.neo4j</groupId>
<artifactId>neo4j-rest-graphdb</artifactId>
<version>1.5.M02</version>
<version>1.5-SNAPSHOT</version>
<exclusions>
<exclusion>
<groupId>org.neo4j</groupId>

View File

@@ -15,6 +15,8 @@
*/
package org.springframework.data.neo4j.rest;
import java.util.Map;
import org.neo4j.graphdb.Node;
import org.neo4j.graphdb.PropertyContainer;
import org.neo4j.graphdb.Relationship;
@@ -37,8 +39,6 @@ import org.springframework.data.neo4j.support.index.NoSuchIndexException;
import org.springframework.data.neo4j.support.query.ConversionServiceQueryResultConverter;
import org.springframework.data.neo4j.support.query.QueryEngine;
import java.util.Map;
public class SpringRestGraphDatabase extends org.neo4j.rest.graphdb.RestGraphDatabase implements GraphDatabase{
private ConversionService conversionService;
private ResultConverter resultConverter;
@@ -80,7 +80,7 @@ public class SpringRestGraphDatabase extends org.neo4j.rest.graphdb.RestGraphDat
@Override
public <T extends PropertyContainer> Index<T> createIndex(Class<T> type, String indexName, org.springframework.data.neo4j.support.index.IndexType indexType) {
return super.getRestAPI().createIndex(type, indexName, indexType == IndexType.FULLTEXT);
return super.getRestAPI().createIndex(type, indexName, indexType.getConfig());
}
@Override