private List <TextPosition> GetHighlightPositions(string htmlText, ApisLucene.Classes.Eucases.Highlight.Config.IConfig config,
                                                          ApisLucene.Classes.Eucases.Stemming.IStemmer stemmer, string searchText, bool exactMatch)
        {
            BaseParser parser = new BaseParser(config, new BaseTokenizer(config), stemmer);

            string noTagshtmlText = Regex.Replace(htmlText, @"\<[^\<\>]*?\>", delegate(Match m)
            {
                return("".PadLeft(m.Value.Length, ' '));
            });

            parser.AnalizeText(noTagshtmlText);

            //int freeWords = 30;
            //bool isPhrase = false;

            try
            {
                List <TextPosition> res = parser.FindLema(searchText, !exactMatch);

                return(res);
            }
            catch (Exception)
            {
                return(new List <TextPosition>());
            }
        }