Session: Querying: How to perform a multifaceted search?

Multiple Facet queries can be executed at once using MultiFacetedSearch method from Advanced session operations.


FacetResults[] MultiFacetedSearch(params FacetQuery[] queries);
queries params FacetQuery Array of FacetQueries that will be executed on server.
Return Value
FacetResult[] Array of FacetResults. Each matching its FacetQuery position from queries parameter.


FacetQuery facetQuery1 = session.Query<Camera>()

FacetQuery facetQuery2 = session.Query<Camera>()

FacetResults[] results = session
	.MultiFacetedSearch(facetQuery1, facetQuery2);

FacetResults facetResults1 = results[0];
FacetResults facetResults2 = results[1];