MicrosoftLearning / mslearn-ai-fundamentals

Azure AI Fundamentals exercises
https://microsoftlearning.github.io/mslearn-ai-fundamentals/
MIT License
101 stars 75 forks source link

`search=*&$count=true` in the *Explore an Azure AI Search index (UI)* is not working as expected #5

Closed joseville1001 closed 6 months ago

joseville1001 commented 7 months ago

Module: 11

Lab/Demo: 11

The Explore an Azure AI Search index (UI) lab has some issues.

Description of issue In step 2 of the Query the index section of the lab, we are told to input the search query search=*&$count=true and that it should return "all the documents in the search index, including a count of all the documents in the @odata.count field.". But this is not happening. Instead the returned result is

{
  "@odata.context": "https://<ai search resrc name>.search.windows.net/indexes('coffee-index')/$metadata#docs(*)",
  "value": []
}

A similar issue was raised for Lab 22 of AI-102 here, which mentions a fix: select "JSON view" from View and input the following into the JSON query editor:

}
  "search": "*",
  "count": true
}

However, when I tried

{
  "search": "*",
  "count": true,
  "locations": "Chicago"
}

the results returned all 9 reviews (@odata.count": 9), including those that don't mention Chicago.

Repro steps:

  1. Follow the Explore an Azure AI Search index (UI) lab until and including step 2 of the Query the index section.
sherzyang commented 6 months ago

Thanks so much @joseville1001! I tested out the lab and will update the search queries in the lab.

Thanks for finding the AI-102 fix, that first one is spot on.

Based on that one, the other two are:

{ "search": "locations:'Chicago'", "count": true } { "search": "sentiment:'negative'", "count": "true" }