private ISearchQuery CompileWord(WordAstQuery wordQuery)
        {
            var matcher     = new DfaTermMatcher(new SequenceMatcher <char>(wordQuery.Value, false));
            var postingList = index.GetTerms(matcher).Select(p => index.PostingLists.Get(p.Value)).SingleOrDefault();

            if (postingList == null)
            {
                return(NullQuery.Instance);
            }

            return(new TermQuery(postingList));
        }
 private ITermMatcher BuildWordMatcher(WordAstQuery wordQuery)
 {
     return(new DfaTermMatcher(new SequenceMatcher <char>(wordQuery.Value, false)));
 }