EPiServer 7.5 - Typed search - How to map ExternalUrlBestBets?

Vote:
 

Hi,

We have implemented EPiFind on a 7.5 intranet using ITypeSearch and a custom content interface required on a content to be Indexed. We then project all hits to a custom object called SearchItem implementing the properties SearchTitle, SearchSummary, SearchHitUrl etc.

Now in order to display WebContent hits (external hits in index - the results when for example crawling an external site) we include and map the object WebContent in our query as follows without any problems:

            var query = (ITypeSearch) _client.Search()
                                                .IncludeType(x => new SearchItem
                                                    {
                                                        SearchTitle = x.SearchTitle,
                                                        SearchSummary = x.SearchSummary,
                                                        SearchHitUrl = x.SearchHitUrl
                                                    } as T);


Now to the problem; ExternalUrlBestBet. This is the object getting indexed when creating an external best bet. When inspecting the index this object looks as follows: 

{
    "___types": [
        "EPiServer.Find.Framework.BestBets.ExternalUrlBestBet",
        "System.Object"
    ],
    "$type": "EPiServer.Find.Framework.BestBets.ExternalUrlBestBet, EPiServer.Find.Framework",
    "SearchTitle$$string": "External",
    "Id$$string": "83f7aa60-d440-4c73-bcc0-89c1f8dd346d"
}

The object only have the "Title" property indexed. How could i possibly map this object, including URL and Summary to our custom SearchItem object in order to display these best bets also? Since
ExternalUrlBestBet only has the property "Title" we cannot map either URL nor Summary:

  .IncludeType(x => new SearchItem
                                                  {
                                                       SearchTitle = x.SearchTitle,
                                                       SearchSummary = x.SearchSummary,
                                                       SearchHitUrl = x.SearchHitUrl
                                                  } as T);

If we try to include the ExternalUrlBestBet in our result - we can only map the "Title" property as above. Not Summary nor URL. Is there a sulotion for this issue?


Internal bestbets works fine since these are already indexed by using our interface.

#150320
Edited, Jun 16, 2016 8:58
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.