pmem.github.io icon indicating copy to clipboard operation
pmem.github.io copied to clipboard

[Bug] Search does not work

Open janekmi opened this issue 1 year ago • 2 comments

Try to use the search button at the top of the webpage. In result, I got the following message:

Search results
Unable to execute your query. Ensure that a valid subscription key has been set up for your instance.

janekmi avatar Jun 02 '23 13:06 janekmi

I can swear it was working. This leads us to:

  • some (rather) recent breaking changes,
  • some kind of time-related issue 😉 end of some kind of server certificate? "subscription key" (whatever that means)? etc.

lukaszstolarczuk avatar Jun 02 '23 13:06 lukaszstolarczuk

We hit item #2 of Lukasz's list. This issue is due to the owner of the Bing Custom Search API keys account being closed or expired. It's not using my account. The search feature uses Bing Custom Search. There is a warning on the documentation page:

Warning

On October 30, 2020, the Bing Search APIs moved from Cognitive Services to Bing Search Services. This documentation is provided for reference only. For updated documentation, see the Bing search API documentation. For instructions on creating new Azure resources for Bing search, see Create a Bing Search resource through the Azure Marketplace.

The warning doesn't apply to this site as we put the new site live in Dec 2021, so we're using the 'new' APIs.

If somebody on the PMem Team can create a new Bing Search Instance by following these instructions, we should only need to update the query URI in partials/script.html with the new token, which currently looks like this:

<script type="text/javascript" src="https://ui.customsearch.ai/api/ux/rendering-js?customConfig=011a90aa-26ea-46b5-bf60-4b5b407c72c6&amp;market=en-US&amp;version=latest&amp;q="></script>

sscargal avatar Jun 02 '23 16:06 sscargal