azure-cognitive-search

Azure Search scoring

你。 提交于 2019-12-29 09:00:14
问题 I have sets of 3 identical (in Text) items in Azure Search varying on Price and Points. Cheaper products with higher points are boosted higher. (Price is boosted more then Points, and is boosted inversely). However, I keep seeing search results similar to this. Search is on ‘john milton’. I get Product="Id = 2-462109171829-1, Price=116.57, Points= 7, Name=Life of Schamyl / John Milton Mackie, Description=.", Score=32.499783 Product="Id = 2-462109171829-2, Price=116.40, Points= 9, Name=Life of

Boosting docs based on date range

旧时模样 提交于 2019-12-24 21:47:20
问题 I am to be able to filter documents based on a date, but what I really need is to boost certain date ranges higher. The following query returns results. { "queryType":"full", "search": "(priority:High^50 || Normal^10) AND (type:one^1 || two^10)", "filter": "(type eq 'one' or type eq 'two') and publishedDate eq 2018-04-01", "searchMode": "all" } But I don't really want to filter those, I want to boost certain dates. What I really want is something like this: { "queryType":"full", "search": "

How to search only inside one string of a Collection in Azure Search?

試著忘記壹切 提交于 2019-12-24 21:00:00
问题 I've a collection fields like: ["city of god"] ["god of war", "city of war"] I want to perform a search on the field with 'city' AND 'god' and I want only 'city of god' to be returned. Yet, the second field is also return regardless of the terms being in two different strings within the collection. Anyway to make the search strict to within strings and not to the entire collection? 回答1: Each searchable field in the index is treated as a bag of terms, so for “city AND god” you’re matching on

GET Index Schema from Azure Search

只谈情不闲聊 提交于 2019-12-24 15:54:30
问题 I'm currently working on a POC that uses Azure Search to make an Angular Front End. I've searched everywhere and am looking for a way to query for the index schema. What do I mean by this? On this page you can use a PUT to create an index using JSON. Is there a way to get this JSON schema back using a GET or using the Azure Portal? I want to be able to populate a NavBar with the facetable fields without having to hard code them. Is this possible? 回答1: You can call Get Index REST API to get

Return records from azure search that match the exact search term only

故事扮演 提交于 2019-12-24 09:35:32
问题 So I'm new to Azure search and I'm only starting to figure it out. I have a search index that queries a pretty simple sql view for matching records. I'm having major trouble getting an exact match for the word I search for. Whenever I search I get records with the exact word only.. however I also get records that contain the searched for word e.g I search for "Type" and I get "New Type" and "My Type". I'm enclosing "Type" in double quotes when I search. I'm using the C# SDK, and it also

Azure Search statistics Power BI

故事扮演 提交于 2019-12-24 07:55:45
问题 I'm using storage account to gather Azure Search statistics with current settings by more than one week And Power BI to view reports. The issue is that even when I'm importing data for 20 days I can't see it in "Search over time report", but only for one day regardless on period I'm selecting. What is right way of data import or/and date range selecting on this kind of report? Thank's 回答1: The problem is caused by some queries with search terms that contain invalid escape sequences (\^ and \~

Azure Search Service - Import from SQL Server on Azure VM failing ('Data source payload should specify at least one of datasource name and type)

一个人想着一个人 提交于 2019-12-24 06:58:16
问题 I'm attempting to add a new data source from a SQL Server on Azure VM for a search service and indexer I'm creating through the Azure web portal. It's my understanding that I can create an index, import this data, then create an indexer to regularly push data to the index. I'm adding the connection string for our SQL Server and getting a successful message when clicking "Test Connection". The tables show up in a drop-down list, and I select one. When I click "OK" on creating the new data

Azure Search Suggester - fuzzy not returning results

拥有回忆 提交于 2019-12-24 06:30:27
问题 I created a new Azure Search Suggester but implemented Fuzzy search with the following code: ISearchIndexClient indexClient = CreateSearchIndexClient(); var suggestParameters = new SuggestParameters(); suggestParameters.UseFuzzyMatching = true; suggestParameters.MinimumCoverage = 100; DocumentSuggestResult response = indexClient.Documents.Suggest(term, "suggester", suggestParameters); IList<SuggestResult> results = response.Results; The index contain the string "China", but when I search

Distinct values in Azure Search Suggestions?

好久不见. 提交于 2019-12-23 12:24:29
问题 I am offloading my search feature on a relational database to Azure Search. My Products tables contains columns like serialNumber, PartNumber etc.. (there can be multiple serialNumbers with the same partNumber). I want to create a suggestor that can autocomplete partNumbers. But in my scenario I am getting a lot of duplicates in the suggestions because the partNumber match was found in multiple entries. How can I solve this problem ? 回答1: The Suggest API suggests documents, not queries. If

Benefits of using Document DB after connecting with Azure Search [closed]

时间秒杀一切 提交于 2019-12-23 05:29:11
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 2 years ago . I'm storing the data for my in Azure Document DB. In order to allow search over the description field of my data, I've connected my document DB repository with Azure Search, as explained here: https://docs.microsoft.com/en-us/azure/documentdb/documentdb-search-indexer I also