private IReadOnlyList <string> getAnalyzedTokens(Token t, string queryStr) { if (t.Type.IsAny(TokenType.RegexBody)) { return(ReadOnlyList.From(t.Value)); } if (!t.Type.IsAny(TokenType.FieldValue)) { return(null); } string text = !t.IsPhrase || t.IsPhraseComplex || t.PhraseHasSlop ? t.Value : t.GetPhraseText(queryStr); var result = QueryParserAnalyzer .GetTokens(t.ParentField, StringEscaper.Unescape(text)) .Select(_ => _.Term) .ToReadOnlyList(); return(result); }
private string getDisplayField(Token token) => GetDisplayField(Adapter.GetActualField(token.ParentField));
private string getDisplayField(Token token) => GetDisplayField(token.ParentField ?? string.Empty);