C# Class Lucene.Net.Analysis.Synonym.SlowSynonymMap

Show file Open project: apache/lucenenet Class Usage Examples

Public Properties

Property Type Description
submap CharArrayMap
synonyms Token[]

Public Methods

Method Description
Add ( IList singleMatch, IList replacement, bool includeOrig, bool mergeExisting ) : void
MakeTokens ( IList strings ) : IList

Produces a List from a List

MergeTokens ( IList lst1, IList lst2 ) : IList

Merge two lists of tokens, producing a single list with manipulated positionIncrements so that the tokens end up at the same position. Example: [a b] merged with [c d] produces [a/b c/d] ('/' denotes tokens in the same position) Example: [a,5 b,2] merged with [c d,4 e,4] produces [c a,5/d b,2 e,2] (a,n means a has posInc=n)

SlowSynonymMap ( ) : Lucene.Net.Analysis.Util
SlowSynonymMap ( bool ignoreCase ) : Lucene.Net.Analysis.Util
ToString ( ) : string

Method Details

Add() public method

public Add ( IList singleMatch, IList replacement, bool includeOrig, bool mergeExisting ) : void
singleMatch IList List, the sequence of strings to match
replacement IList List the list of tokens to use on a match
includeOrig bool sets a flag on this mapping signaling the generation of matched tokens in addition to the replacement tokens
mergeExisting bool merge the replacement tokens with any other mappings that exist
return void

MakeTokens() public static method

Produces a List from a List
public static MakeTokens ( IList strings ) : IList
strings IList
return IList

MergeTokens() public static method

Merge two lists of tokens, producing a single list with manipulated positionIncrements so that the tokens end up at the same position. Example: [a b] merged with [c d] produces [a/b c/d] ('/' denotes tokens in the same position) Example: [a,5 b,2] merged with [c d,4 e,4] produces [c a,5/d b,2 e,2] (a,n means a has posInc=n)
public static MergeTokens ( IList lst1, IList lst2 ) : IList
lst1 IList
lst2 IList
return IList

SlowSynonymMap() public method

public SlowSynonymMap ( ) : Lucene.Net.Analysis.Util
return Lucene.Net.Analysis.Util

SlowSynonymMap() public method

public SlowSynonymMap ( bool ignoreCase ) : Lucene.Net.Analysis.Util
ignoreCase bool
return Lucene.Net.Analysis.Util

ToString() public method

public ToString ( ) : string
return string

Property Details

submap public property

@lucene.internal
public CharArrayMap submap
return CharArrayMap

synonyms public property

@lucene.internal
public Token[] synonyms
return Token[]