title: Nest multisearch query writing as object initializer Syntax
body: <p>I have a multiSearch query as below. Basically I query product and category types. I would like to make this query optional without writing same code again. 
  Basically in some cases I want to query only product type, that means that it will not multisearch but a search query. How can I split this query into 2 search queries. Something like below I think.</p>
  
  <pre><code>    return Client.MultiSearch(ms =&gt; ms
          .Search&lt;Product&gt;("products", s =&gt; s
          .Index(IndexName)
          .Explain(explain)
            .Query(q =&gt; q
               .Bool(b =&gt; b
                   .Should(
                       sh =&gt; sh.MultiMatch(qs =&gt; qs
                           .Fields(d =&gt; d                         
                               .Field(Name + ".raw", NameBoost + 0.5)
                               .Field(Name, NameBoost)                            
                              .Type(TextQueryType.BestFields)
                              .Query(key))
                              ))).From(startfrom).Size(size))
  .Search&lt;Category&gt;("categories", s =&gt; s
  .Index(IndexName)
  .Explain(explain)
  .Query(q =&gt; q.
  Bool(b =&gt; b.
  Should(sh =&gt; sh.
  MultiMatch(m =&gt; m
  .Fields(d =&gt; d
  .Field(f =&gt; f.Name, NameBoost)
  .Field(p =&gt; p.Name.Suffix("raw"), NameBoost + 0.5)).Type(TextQueryType.BestFields)
  .Query(key)
  )
  ))).From(startfrom).Size(size))
  );
  </code></pre>
  
  <p>something like this below. I guess that it is called  object initializer Syntax according to <a href="https://www.elastic.co/guide/en/elasticsearch/client/net-api/1.x/writing-queries.html#_object_initializer_syntax_ois_2" rel="nofollow">this</a> article</p>
  
  <p>Client.MultiSearch (SearchProductQuery &amp;&amp; SearchCategoryQuery)</p>
  
  <p>is it possible? </p>