public class AnalysisResponseBase extends SolrResponseBase
| 限定符和类型 | 类和说明 |
|---|---|
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| 构造器和说明 |
|---|
AnalysisResponseBase() |
| 限定符和类型 | 方法和说明 |
|---|---|
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, writeMapdeserialize, getException, serializableclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait_forEachEntry, _forEachEntry, _forEachEntry, _get, _get, _getStr, _getStr, _sizeprotected 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 © 2006–2022 The Apache Software Foundation. All rights reserved.