MakeshVineeth / WikiPreview.Fluent.Plugin

Search in Wikipedia and displays results directly in the Fluent Search.
4 stars 0 forks source link

Trail: Implement GetSearchResultById for custom tag features. #5

Closed MakeshVineeth closed 3 years ago

MakeshVineeth commented 3 years ago

Moved the code to generate ISearchResult in its own function GenerateSearchResult Now that function will be called again in GetSearchResultById to get a ValueTask<WikiPreviewSearchResult>

Involves making two http calls:

  1. To get the actual page content by its PageID which is also the SearchObjectId.
  2. To get the Bitmap from URL, related code is present in GenerateSearchResult