Exemplo n.º 1
0
 public static PhraseQuery Phrase(this BooleanQuery inputQuery, string field, string text, BooleanClause.Occur occur = null)
 {
     BooleanQuery parentQuery = GetParentQuery(inputQuery);
     PhraseQuery query = new PhraseQuery();
     SetOccurValue(inputQuery, ref occur);
     query.AddTerm(field, text);
     parentQuery.Add(query, occur);
     return query;
 }