public abstract class LuceneUtil extends Object
| Constructor and Description |
|---|
LuceneUtil() |
| Modifier and Type | Method and Description |
|---|---|
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(). |
public static org.apache.lucene.search.Query rangeQuery(String key, Number from, Number to, boolean includeFrom, boolean includeTo)
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.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.Query to do numeric range queries with.Copyright © 2002–2017 The Neo4j Graph Database Project. All rights reserved.