public class AnalysisResponseBase extends SolrResponseBase
Modifier and Type | Class and Description |
---|---|
static class |
AnalysisResponseBase.AnalysisPhase
A phase in the analysis process.
|
static class |
AnalysisResponseBase.TokenInfo
Holds all information of a token as part of an analysis phase.
|
MapWriter.EntryWriter
Constructor and Description |
---|
AnalysisResponseBase() |
Modifier and Type | Method and Description |
---|---|
protected List<AnalysisResponseBase.AnalysisPhase> |
buildPhases(NamedList<Object> phaseNL)
Parses the given named list and builds a list of analysis phases form it.
|
protected AnalysisResponseBase.TokenInfo |
buildTokenInfo(NamedList<Object> tokenNL)
Parses the given named list and builds a token infoform it.
|
protected AnalysisResponseBase.TokenInfo |
buildTokenInfoFromString(String value)
Convert a string value (from CharacterFilter) into a TokenInfo for its value full span.
|
getElapsedTime, getQTime, getRequestUrl, getResponse, getResponseHeader, getStatus, setElapsedTime, setRequestUrl, setResponse, toString, writeMap
deserialize, getException, serializable
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
_forEachEntry, _forEachEntry, _forEachEntry, _get, _get, _getStr, _getStr, _size
protected List<AnalysisResponseBase.AnalysisPhase> buildPhases(NamedList<Object> phaseNL)
<lst name="index">
<arr name="Tokenizer">
<str name="text">the_text</str>
<str name="rawText">the_raw_text</str> (optional)
<str name="type">the_type</str>
<int name="start">1</str>
<int name="end">3</str>
<int name="position">1</str>
<bool name="match">true | false</bool> (optional)
</arr>
<arr name="Filter1">
<str name="text">the_text</str>
<str name="rawText">the_raw_text</str> (optional)
<str name="type">the_type</str>
<int name="start">1</str>
<int name="end">3</str>
<int name="position">1</str>
<bool name="match">true | false</bool> (optional)
</arr>
...
</lst>
The special case is a CharacterFilter that just returns a string, which we then map to a single token without type.phaseNL
- The names list to parse.protected AnalysisResponseBase.TokenInfo buildTokenInfoFromString(String value)
value
- String valueprotected AnalysisResponseBase.TokenInfo buildTokenInfo(NamedList<Object> tokenNL)
<arr name="Tokenizer">
<str name="text">the_text</str>
<str name="rawText">the_raw_text</str> (optional)
<str name="type">the_type</str>
<int name="start">1</str>
<int name="end">3</str>
<int name="position">1</str>
<bool name="match">true | false</bool> (optional)
</arr>
tokenNL
- The named list to parse.Copyright © 2000-2020 Apache Software Foundation. All Rights Reserved.