public class LuceneIndexWrapper<S extends org.neo4j.graphdb.PropertyContainer,T extends org.structr.api.graph.PropertyContainer> extends AbstractIndexWrapper<S,T> implements QueryFactory<org.apache.lucene.search.Query>
Modifier and Type | Field and Description |
---|---|
static Map<Class,org.structr.api.search.TypeConverter> |
CONVERTERS |
static org.structr.api.search.TypeConverter |
DEFAULT_CONVERTER |
static Map<Class,QueryFactory> |
FACTORIES |
graphDb, index
Constructor and Description |
---|
LuceneIndexWrapper(Neo4jDatabaseService graphDb,
org.neo4j.graphdb.index.Index<S> index) |
Modifier and Type | Method and Description |
---|---|
protected Object |
convertForIndexing(Object value,
Class typeHint) |
protected Object |
convertForQuerying(Object value,
Class typeHint) |
org.apache.lucene.search.Query |
getQuery(QueryFactory parent,
org.structr.api.search.QueryPredicate predicate) |
org.structr.api.QueryResult<T> |
query(org.structr.api.search.QueryPredicate predicate) |
public static final org.structr.api.search.TypeConverter DEFAULT_CONVERTER
public static final Map<Class,QueryFactory> FACTORIES
public LuceneIndexWrapper(Neo4jDatabaseService graphDb, org.neo4j.graphdb.index.Index<S> index)
public org.structr.api.QueryResult<T> query(org.structr.api.search.QueryPredicate predicate)
query
in interface org.structr.api.index.Index<T extends org.structr.api.graph.PropertyContainer>
public org.apache.lucene.search.Query getQuery(QueryFactory parent, org.structr.api.search.QueryPredicate predicate)
getQuery
in interface QueryFactory<org.apache.lucene.search.Query>
protected Object convertForIndexing(Object value, Class typeHint)
convertForIndexing
in class AbstractIndexWrapper<S extends org.neo4j.graphdb.PropertyContainer,T extends org.structr.api.graph.PropertyContainer>
protected Object convertForQuerying(Object value, Class typeHint)
convertForQuerying
in class AbstractIndexWrapper<S extends org.neo4j.graphdb.PropertyContainer,T extends org.structr.api.graph.PropertyContainer>
Copyright © 2016. All rights reserved.