public class DateNumericAnalyzer extends LongNumericAnalyzer
NumericAnalyzer
for date value.
This NumericAnalyzer
is located in the siren-solr module because
it relies on DateField
to parse date. See DateMathParser
for
more information about the date syntax.
Modifier and Type | Class and Description |
---|---|
class |
DateNumericAnalyzer.DateNumericParser |
LongNumericAnalyzer.LongNumericParser
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
precisionStep
Constructor and Description |
---|
DateNumericAnalyzer(int precisionStep) |
Modifier and Type | Method and Description |
---|---|
protected org.apache.lucene.analysis.Analyzer.TokenStreamComponents |
createComponents(String fieldName,
Reader reader) |
DateNumericAnalyzer.DateNumericParser |
getNumericParser()
Returns the
NumericAnalyzer.NumericParser associated to this analyzer. |
getPrecisionStep
protected org.apache.lucene.analysis.Analyzer.TokenStreamComponents createComponents(String fieldName, Reader reader)
createComponents
in class LongNumericAnalyzer
public DateNumericAnalyzer.DateNumericParser getNumericParser()
NumericAnalyzer
NumericAnalyzer.NumericParser
associated to this analyzer.getNumericParser
in class LongNumericAnalyzer
Copyright © 2014. All rights reserved.