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
- README.md
- source code documentation
- SDK API docs on https://docs.microsoft.com
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:
- Created 10 months ago
- Comments:10 (5 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@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?
FYI requesting the same via Rest works as expected. E.g. PUT+the definition above.