question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cognitive Search - Index creation doesn't properly set similarity k1 and b options

See original GitHub issue
  • Package Name: @azure/search-documents
  • Package Version: 11.2.1
  • Operating system:
  • nodejs
    • version: v16.14.0
  • browser
    • name/version:
  • typescript
    • version:
  • Is the bug related to documentation in

Describe the bug Creating a new index with ‘BM25Similarity’ options doesn’t work as expected. The k1 and b options are always set to null.

Example Similarity:

{
  "odatatype": "#Microsoft.Azure.Search.BM25Similarity",
  "b": 0,
  "k1": 0
}

To Reproduce You can use this code sample.

SEARCH_API_KEY='<your-api-key>' SEARCH_API_ENDPOINT='<your-endpoint>' node azure-search-index-similarities-issue.js

Expected behavior The created index’s similarity should equal to the similarity definition at index definition.

Screenshots

Execution output:

❯ node azure-search-index-similarities-issue.js
Running Az Index Similarities Issue Example
Deleting index...
Index similarity: {
  odatatype: '#Microsoft.Azure.Search.BM25Similarity',
  k1: null,
  b: null
}
Deleting index...

Issue Analytics

  • State:closed
  • Created 10 months ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
xirzeccommented, Nov 17, 2022

@ka-nikos-oikonomou thank you for your patience and sorry about the delay. There is some unfortunate engineering debt in how Search packages are produced that has introduced complexity in getting out a fix. @dgetu can you comment on what would be a reasonable timeline for hotfixing this?

1reaction
ka-nikos-oikonomoucommented, Nov 11, 2022

FYI requesting the same via Rest works as expected. E.g. PUT+the definition above.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Configure relevance scoring - Azure Cognitive Search
In this article, you'll learn how to configure the similarity scoring algorithm used by Azure Cognitive Search. The BM25 scoring model has ...
Read more >
How do I set the new BM25Similarity algorithm on indexes ...
@ramero-MSFT hi, I've tried using the REST Api to set similarity, but when I check the index definition, it does not appear (no...
Read more >
Image Quality Assessment: From Error Visibility to Structural ...
we develop a Structural Similarity Index and demonstrate ... used to dynamically monitor and adjust image quality. For ... On the other hand,...
Read more >
Publication 525, Taxable and Nontaxable Income - IRS
403(b), or the federal government's Thrift Sav- ... line payment options, and create or modify an ... tax year, find your age.
Read more >
N-gram Language Models - Stanford University
Thus, minimizing perplexity is equivalent to maximizing the test set probability according to the language model. What we generally use for word sequence...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found