C# Class BExIS.Ddm.Providers.LuceneProvider.Helpers.EncoderHelper

Lucene use some spacial Characters for query This Encoder find and replace this special Character for searching
显示文件 Open project: BEXIS2/Core

Public Methods

Method Description
Encode ( string value ) : string

Private Methods

Method Description
ReplaceSpecialCharacters ( string value, bool encodeSpace = false ) : string

compare the list of Special Characters with the incoming value and add a \ before it

SpecialCharactrersInValue ( string value ) : bool

Check if SpecialCharacter is in the incoming value string

Method Details

Encode() public static method

public static Encode ( string value ) : string
value string
return string