C# 클래스 Lucene.Net.Analysis.Synonym.SolrSynonymParser

Parser for the Solr synonyms format.
  1. Blank lines and lines starting with '#' are comments.
  2. Explicit mappings match any token sequence on the LHS of "=>" and replace with all alternatives on the RHS. These types of mappings ignore the expand parameter in the constructor. Example:
    i-pod, i pod => ipod
  3. Equivalent synonyms may be separated with commas and give no explicit mapping. In this case the mapping behavior will be taken from the expand parameter in the constructor. This allows the same synonym file to be used in different synonym handling strategies. Example:
    ipod, i-pod, i pod
  4. Multiple synonym mapping entries are merged. Example:
    foo => foo bar
    foo => baz

    is equivalent to

    foo => foo bar, baz
@lucene.experimental
상속: SynonymMap.Parser
파일 보기 프로젝트 열기: apache/lucenenet 1 사용 예제들

공개 메소드들

메소드 설명
Parse ( TextReader @in ) : void
SolrSynonymParser ( bool dedup, bool expand, Analyzer analyzer ) : Lucene.Net.Util

비공개 메소드들

메소드 설명
Split ( string s, string separator ) : string[]
Unescape ( string s ) : string

메소드 상세

Parse() 공개 메소드

public Parse ( TextReader @in ) : void
@in TextReader
리턴 void

SolrSynonymParser() 공개 메소드

public SolrSynonymParser ( bool dedup, bool expand, Analyzer analyzer ) : Lucene.Net.Util
dedup bool
expand bool
analyzer Analyzer
리턴 Lucene.Net.Util