Giter Site home page Giter Site logo

Comments (11)

dereklegenzoff avatar dereklegenzoff commented on September 27, 2024

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.

stgiesbrecht avatar stgiesbrecht commented on September 27, 2024

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));

image

from azure-search-knowledge-mining.

stgiesbrecht avatar stgiesbrecht commented on September 27, 2024

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.

stgiesbrecht avatar stgiesbrecht commented on September 27, 2024

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.

dereklegenzoff avatar dereklegenzoff commented on September 27, 2024

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.

stgiesbrecht avatar stgiesbrecht commented on September 27, 2024

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
image

This the error if I type 'microsoft' and click on the magnifying glass
image

And when I click on the 'Entity map' and display facet 'People', I see results but the page has these
image

from azure-search-knowledge-mining.

dereklegenzoff avatar dereklegenzoff commented on September 27, 2024

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.

stgiesbrecht avatar stgiesbrecht commented on September 27, 2024

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
image

If I use either of the admin keys then everything works. Is there something that I am missing?

from azure-search-knowledge-mining.

dereklegenzoff avatar dereklegenzoff commented on September 27, 2024

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.

stgiesbrecht avatar stgiesbrecht commented on September 27, 2024

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.

dereklegenzoff avatar dereklegenzoff commented on September 27, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.