November Happy Hour will be moved to Thursday December 5th.
November Happy Hour will be moved to Thursday December 5th.
Try reducing the boosting weight of the excerpt text. Do it in the admin section before doing it in code to test out the results.
Hi and thank you for your answer.
I lowered the boosting weight for search summary to 0 and there was no change.
The hits (the UnifiedSearchHit objects) themselves are returned, but it is the Excerpt property that is not returned if Excerpt does not contain the search phrase.
Isn't boosting for determining which hits should be showing first depending on certain configurations, but how can boosting be used to show or not show excerpt text?
You need to inform the UnifiedSearchRegistry which content types fields in your solution you want to map to the fields that Unified Search understands.
Take a look at ISearchContent. You'll see a list of fields that UnifiedSearch uses.
You can project a custom field to the Title..exactly like you've done with the Excerpt; or you can implement ISearchContent.SummaryTitle against your content types definitions.
Once you've done that, you'll find when the search hits in the ISearchContent.SummaryTitle field...the Excerpt will also get returned in the results whether it has the search term or not.
Highlighted excerpt is only returned if excerpt contains search phrase. If excerpt text does not contain the search phrase, nothing gets highlighted and no excerpt is returned att all.
What I need is highlighted excerpt text if excerpt text contains the search phrase, AND except text if it does not contain the search phrase. Is this a bug or am I missing something in the HitSpecification or in the find initializer?
In controller:
In EpiserverFindInitializer.cs:
In BasePage: