does anybody know how to do facet search with Nest?
My index is https://gist.github.com/3606852
would like to search for some keyword in ‘NumberEvent’ and dispaly the result if the keyword exist.Please help me !!!
does anybody know how to do facet search with Nest? My index is https://gist.github.com/3606852
Share
This is using the assumption that the
MyPococlass exists and maps to your elasticsearch document. If it doesn’t you can usedynamicbut you’l have to swap the lambda based field selectors with strings.result.Documentsnow holds your documentsresult.Facet<TermFacet>(f => f.Categories.Types.Facets.First().Person.First().entity);now holds your facetsYour document seems a bit strange though in the sense that it already has Facets with counts in them.