AnalysisOptions.fromXml constructor

AnalysisOptions.fromXml(
  1. XmlElement elem
)

Implementation

factory AnalysisOptions.fromXml(_s.XmlElement elem) {
  return AnalysisOptions(
    algorithmicStemming: _s
        .extractXmlStringValue(elem, 'AlgorithmicStemming')
        ?.toAlgorithmicStemming(),
    japaneseTokenizationDictionary:
        _s.extractXmlStringValue(elem, 'JapaneseTokenizationDictionary'),
    stemmingDictionary: _s.extractXmlStringValue(elem, 'StemmingDictionary'),
    stopwords: _s.extractXmlStringValue(elem, 'Stopwords'),
    synonyms: _s.extractXmlStringValue(elem, 'Synonyms'),
  );
}