Comments (11)
Hi @stgiesbrecht - issues like this are typically caused by an issue in appsettings.json. Could you confirm you've updated the StorageContainerAddress
setting and that it's in the following format?
"StorageContainerAddress": "https://{storage-account-name}.blob.core.windows.net/{container-name}"
from azure-search-knowledge-mining.
Yes, it is the right format. If I set bolded variable below directly to the string that I have in StorageContainerAddress then the program runs. The other app settings are being passed through
BlobContainerClient container = new BlobContainerClient(new Uri(s_containerAddresses[i]), new StorageSharedKeyCredential(accountName, accountKey));
from azure-search-knowledge-mining.
Did some more testing and it appears if I leave StorageContainerAddress2 and 3 as "" then the error occurs. If I put the same string as StorageContainerAddress1 in all three then it runs
from azure-search-knowledge-mining.
I found the issue, I was deleting out the default values form 2 and 3 rather than just leaving it there. It now runs but the results page comes up with 0 results no matter what I enter. If I click on the 'View Entity Map' and choose a facet an entity map appears and can query other stuff. I have used 'Search explorer' from the Azure Portal and confirmed that there are results returned for the values that I am trying on the compiled search page. Any thoughts. I have cloned the GitHub repository, followed the steps to deploy the Azure resources, upload the sample data and create the index.
from azure-search-knowledge-mining.
I'm glad you got the first issue figured out. How did you go about creating the search index? I'm wondering if one of the fields is configured incorrectly. Could you right click on the web page -> inspect -> and see if there are any errors in the console? (link for more details). That will help us figure out what is going on.
from azure-search-knowledge-mining.
I created the search index as specified in the tutorial using the Azure Portal method. When I run solution I get the following error on the start page
This the error if I type 'microsoft' and click on the magnifying glass
And when I click on the 'Entity map' and display facet 'People', I see results but the page has these
from azure-search-knowledge-mining.
hmm, that is quite odd. It looks like data.results
is not populated in results.js for some reason--that's the object that holds all of the search results. That's not the error I was expecting.
If you're able to, try putting a breakpoint on line 101 of DocumentSearchClient.cs to try to see if any errors happen in the search function
catch (Exception ex)
{
Console.WriteLine("Error querying index: {0}\r\n", ex.Message.ToString());
}
It might also be worth trying to create the index again in the portal and make sure everything matches the instructions. Or you could try to create the index using the postman collection.
You can also send me a quick note at [email protected] and we can set up some time to debug together.
from azure-search-knowledge-mining.
Ok, I deleted the indexer, index and skillset and created them all again. I then pulled all the code again and updated my VS2019 and built the solution again and all is good. Appreciate the help and suggestions.
One question I have is that in the appsettings if I set the SearchApiKey to the 'Query Key', I get the following
If I use either of the admin keys then everything works. Is there something that I am missing?
from azure-search-knowledge-mining.
You're very welcome! The way the UI is designed it requires the admin key because it does a few other things such as pulling back the schema of the index to help simplify the experience.
from azure-search-knowledge-mining.
Sounds good, I wasn't sure if I had things setup correctly as the instructions were not clear on which search key to use. Thanks again for everything.
from azure-search-knowledge-mining.
Thank you. I'll have to make an update to call out that the admin key is required. I'll close this issue for now -- please feel free to reopen it if you face any additional issues.
from azure-search-knowledge-mining.
Related Issues (20)
- Container Registry and Image Name Not Supplied HOT 2
- Unable to deploy using the UI Template Deployment (need to approve terms but no place to do so) HOT 12
- FileNotFoundException: Could not find file '/app/wwwroot\css\navbar.css' when click 'Customize' menu item HOT 1
- Struggling with Docker and Step 2 HOT 2
- Update from azure.search 11.4.0-beta.7 to 11.4.0 breaks Classes HOT 2
- 'metadata_title' is not a retrievable field
- Search UI Showing Old AZStorage Deleted Documents as results in UI app.
- How to remove permanent JSON data from Azure Search Service
- Module 4 instructions in the workshop extremely confusing HOT 3
- CustomEntityLookup not working HOT 1
- Deploying Search UI to dotnet core environment HOT 1
- Filtering on Edm.DateTimeOffset field not working in .NET SDK HOT 2
- Bootcamp link dead HOT 1
- 02 - Web UI Template does not return back search results HOT 1
- Module 2 System.NullReferenceException: 'Object reference not set to an instance of an object.' HOT 2
- Module 3: Unable to test Azure Function locally, 'Output type of Class library cannot be started directly' error. HOT 2
- Clinical Trials Example SAS URI not working HOT 3
- Drop down selection from view is not showing in the controller HOT 1
- Search queries are not returning results from Cognitive Search Service Indexer and Index HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from azure-search-knowledge-mining.