public abstract class NumericAnalyzer
extends org.apache.lucene.analysis.Analyzer
At indexing time, this class provides a NumericTokenizer for indexing
numeric values that can be used by a NodeNumericRangeQuery. At query
time, this class acts as a container for parameters that are required in the
query parsers to process numeric range queries.
See NodeNumericRangeQuery for more information about numeric range
queries.
| Modifier and Type | Class and Description |
|---|---|
class |
NumericAnalyzer.NumericParser<T extends Number> |
org.apache.lucene.analysis.Analyzer.GlobalReuseStrategy, org.apache.lucene.analysis.Analyzer.PerFieldReuseStrategy, org.apache.lucene.analysis.Analyzer.ReuseStrategy, org.apache.lucene.analysis.Analyzer.TokenStreamComponents| Modifier and Type | Field and Description |
|---|---|
protected int |
precisionStep |
| Constructor and Description |
|---|
NumericAnalyzer(int precisionStep) |
| Modifier and Type | Method and Description |
|---|---|
abstract NumericAnalyzer.NumericParser<? extends Number> |
getNumericParser()
Returns the
NumericAnalyzer.NumericParser associated to this analyzer. |
int |
getPrecisionStep()
Returns the precision step of this analyzer.
|
public int getPrecisionStep()
public abstract NumericAnalyzer.NumericParser<? extends Number> getNumericParser()
NumericAnalyzer.NumericParser associated to this analyzer.T - Copyright © 2014. All rights reserved.