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