But I'm trying to create facets on the result on different Connectors in our Find index. Our index consists of our Episerver DXC site, and 4 different Connectors. For the ordinary Episerver site I use TermsFacetsFor and using the SearchSection alternative.
But this does not seem to work with the results from the Connectors. Right now the customer are using SiteSeeker as the search engine. In SiteSeeker they are using functionality to add their own facets matched against the start of an url. for example www.site.se/subsite is one facet, and www.site.se/subsite2 is another facet.
I was trying to do something similar to this by using FilterFacet matching against a list of start of urls. For example:
var urlBeginnings = new List<string>{"www.site.se/subsite", "www.site.se/sv/subsite", "http://www.site.se/subsite"};
filteredQuery = filteredQuery.FilterFacet("Subsite", searchHit => urlBeginnings.Any(url => searchHit.SearchHitUrl.StartsWith(url)).Match(true));
When I want to get the count of the FilterFacet I do this:
var subsiteFacetCount = result.FilterFacet("Subsite").Count;
but this does not return any facets. I am sure that there is results that starts with any of the specified urls.
I saw in the old documentation (for Episerver Find 10) that external results use the WebContent class. Which does not have the SearchSection property, which explains why the TermsFacetsFor using SearchSection does not work. But the SearchHitUrl does still exist, so I cant see why above FilterFacet does not work?
Is it possible to do this with Episerver Find?
I am new to Episerver Find, so it probobly is something obvious I'm missing.
Hi Episerver Find Gurus!
I dont know if I'm thinking the wrong way.
But I'm trying to create facets on the result on different Connectors in our Find index.
Our index consists of our Episerver DXC site, and 4 different Connectors. For the ordinary Episerver site I use TermsFacetsFor and using the SearchSection alternative.
But this does not seem to work with the results from the Connectors.
Right now the customer are using SiteSeeker as the search engine. In SiteSeeker they are using functionality to add their own facets matched against the start of an url. for example www.site.se/subsite is one facet, and www.site.se/subsite2 is another facet.
I was trying to do something similar to this by using FilterFacet matching against a list of start of urls. For example:
When I want to get the count of the FilterFacet I do this:
but this does not return any facets. I am sure that there is results that starts with any of the specified urls.
I saw in the old documentation (for Episerver Find 10) that external results use the WebContent class. Which does not have the SearchSection property, which explains why the TermsFacetsFor using SearchSection does not work. But the SearchHitUrl does still exist, so I cant see why above FilterFacet does not work?
Is it possible to do this with Episerver Find?
I am new to Episerver Find, so it probobly is something obvious I'm missing.
Best Regards
Niklas