org.neo4j.index.impl.lucene
Class LuceneUtil

java.lang.Object
  extended by org.neo4j.index.impl.lucene.LuceneUtil

public abstract class LuceneUtil
extends Object


Constructor Summary
LuceneUtil()
           
 
Method Summary
static org.apache.lucene.search.Query rangeQuery(String key, Number from, Number to, boolean includeFrom, boolean includeTo)
          Will create a Query with a query for numeric ranges, that is values that have been indexed using ValueContext.indexNumeric().
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LuceneUtil

public LuceneUtil()
Method Detail

rangeQuery

public static org.apache.lucene.search.Query rangeQuery(String key,
                                                        Number from,
                                                        Number to,
                                                        boolean includeFrom,
                                                        boolean includeTo)
Will create a Query with a query for numeric ranges, that is values that have been indexed using ValueContext.indexNumeric(). It will match the type of numbers supplied to the type of values that are indexed in the index, f.ex. long, int, float and double. If both from and to is null then it will default to int.

Parameters:
key - the property key to query.
from - the low end of the range (inclusive)
to - the high end of the range (inclusive)
includeFrom - whether or not from (the lower bound) is inclusive or not.
includeTo - whether or not to (the higher bound) is inclusive or not.
Returns:
a Query to do numeric range queries with.


Copyright © 2002-2012 The Neo4j Graph Database Project. All Rights Reserved.