title: How can get values using LINQ from multilevel variable
body: <p>I want to unable to fetch values using LINQ. I am using below code for fetching data.</p>
  
  <pre><code>  SearchParameters sp3 = new SearchParameters()
          {
              Filter = "name eq 'test'",
              Top = 5,
              QueryType = QueryType.Full,
              Select= new List&lt;string&gt;() { "Query" },
          };
  
           if (highlights)
          {
              sp3.HighlightPreTag = "&lt;b&gt;";
              sp3.HighlightPostTag = "&lt;/b&gt;";
          }
          DocumentSearchResult suggestResult = _indexClient1.Documents.Search(term,sp3);
  
              List&lt;string&gt; suggestions = (from p in suggestResult
                                     .Results.Select(s =&gt; s.Document)
                                     .Select(y =&gt; y.Values.ToString())
                                      select p).ToList();
  </code></pre>
  
  <p>Hierarchy is Document->Result->Query. </p>
  
  <p>I am getting values till Result level but I want to get data till Query Level. 
  I am not expert in LINQ.</p>
  
  <p>screenshot</p>
  
  <p><a href="https://i.stack.imgur.com/u2E8t.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/u2E8t.png" alt="enter image description here"></a></p>
  
  <p>output</p>
  
  <p><a href="https://i.stack.imgur.com/TvI7H.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/TvI7H.png" alt="enter image description here"></a></p>