Giter VIP home page Giter VIP logo

Comments (6)

Careyjmac avatar Careyjmac commented on May 15, 2024

Does this repro consistently? It sounds like a race condition as we create the synonym map immediately before creating the index, so perhaps the change hadn't fully propgated on the backend by the time you attempted to create the index.

from azuresearch_jfk_files.

Farhad-Heybati avatar Farhad-Heybati commented on May 15, 2024

Can we add a wait() or sleep() some where in the code before starting to create the index?

from azuresearch_jfk_files.

Farhad-Heybati avatar Farhad-Heybati commented on May 15, 2024

I add this code:
private static async Task CreateIndex()
{
Console.WriteLine("Creating Index...");
Console.WriteLine("Sleeping for 10 sec...");
System.Threading.Thread.Sleep(10000);
Console.WriteLine("Continue Creating Index...");
try
{
But get the same error:
Deleting Index, Indexer and SynonymMap if they exist...
Creating Blob Container for Image Store Skill...
Creating Skill Set...
Creating Synonym Map...
Creating Index...
Sleeping for 10 sec...
Continue Creating Index...
Create Index response:
{"error":{"code":"","message":"The request is invalid. Details: definition : The synonym map 'cryptonyms' specified in the field 'text' does not exist.\r\n"}}
Something went wrong.
Press any key to exit.

from azuresearch_jfk_files.

Farhad-Heybati avatar Farhad-Heybati commented on May 15, 2024

Here the issue:
private static async Task CreateSynonyms()
{
Console.WriteLine("Creating Synonym Map...");

        // Add implementation here

        return true;
    }

There is no code to create the CreateSynonyms

from azuresearch_jfk_files.

Careyjmac avatar Careyjmac commented on May 15, 2024

Not sure where you see the code, the implementation for creating the synonymmaps is definitely there if you pull the latest from master:

await _searchClient.SynonymMaps.CreateAsync(synonyms);

from azuresearch_jfk_files.

Farhad-Heybati avatar Farhad-Heybati commented on May 15, 2024

There is 2 repository on github for JFK lab:
https://github.com/microsoft/ailab/tree/master/JFKFiles
and
https://github.com/microsoft/AzureSearch_JFK_Files
in the first code is missing.

from azuresearch_jfk_files.

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.