GetTermArrays() private method

private GetTermArrays ( ) : System.Collections.Generic.IList
return System.Collections.Generic.IList
 private static void VisitQuery(MultiPhraseQuery query, AzureQueryLogger.IndentedTextWriter writer)
 {
     writer.WriteLine("Slop: {0}", (object)query.Slop);
     foreach (Term[] termArray in (IEnumerable<Term[]>)query.GetTermArrays())
     {
         writer.WriteLine("array");
         ++writer.Indent;
         foreach (Term term in termArray)
             AzureQueryLogger.VisitTerm(term, writer);
         --writer.Indent;
     }
 }
Esempio n. 2
0
 protected virtual MultiPhraseQuery VisitMultiPhraseQuery(MultiPhraseQuery m)
 {
     var qry = new MultiPhraseQuery();
     foreach (var tarray in m.GetTermArrays())
     {
         qry.Add(tarray.Select(t => VisitTerm(t)).ToArray());
     }
     return qry;
 }