public QueryParser(DocumentIndexSetup setup) { _setup = setup; _doubleQuotes = new Regex("\"[^\"]+\""); _symbolRemover = new SpecialSymbolRemover(); _steps = new List <Func <ParserContext, ParserContext> > { ReplaceDigitsWithSpecSymbol, RemoveNewLines, MakeToLowerCase, TransformDoubleQuotesPhraseToMandatoryWords, SplitBySpecialSymbolsThenRemoveThem, RemoveEmptyWords, RemoveNotIndexedString, TransformNonMandatoryWordsIntoCandidatesForContains, AddMandatoryWords, RemoveDuplicateWords, }; _digitsTokensParser = new DigitsTokensParser(); }
public void SetUp() { _parser = new DigitsTokensParser(); }