azure-cognitive-search

Negative boost in Azure Search Profiles

你离开我真会死。 提交于 2019-12-13 20:04:09
问题 We have been working on creating scoring profiles for our search. We need a way to "bury" or give "negative" boosts to some fields in case of types of scoring function "Magnitude", "Freshness", "Tags". We noticed that we cannot add a negative value for boost. Is there any other way to achieve this kind of behavior (burying results based the field) We cannot use $OrderBy because it takes precedence over the scoring profile. Please advise. Thanks! 回答1: you should only set positive boosting

Azure Search and Dashes

蓝咒 提交于 2019-12-13 15:09:18
问题 I am using Azure Search and trying to perform a search against documents: It seems as though doing this: /indexes/blah/docs?api-version=2015-02-28&search=abc\-1003 returns the same results as this: /indexes/blah/docs?api-version=2015-02-28&search=abc-1003 Shouldn't the first one return different results than the second due to the escaping backwards slash? From what I understand the backwards slash should allow for an exact search on the whole string of "abc-1003" instead of doing a "not"

Suggestions by more than one term or Space in between in Azure Search (Suggester)

痞子三分冷 提交于 2019-12-13 03:48:44
问题 I need to suggest a list of users in a dropdown by FirstName, LastName, and Email I have created an index marking the fields with the suggester in the azure console as follows: This only works for a query by the FirstName but not for FirstName "space" LastName , when I run this query I just get 0 documents Example: Name John Doe John, I get suggestions for all Johns John , I get suggestions for all Johns John D, I get 0 documents John Doe, I get 1 document This is my code: term = Uri

How to order documents by distance when using Collection(Edm.GeographyPoint) on the documents

雨燕双飞 提交于 2019-12-13 03:48:43
问题 I have an index with different products . Each product is available in many stores . One field of the index is a Collection(Edm.GeographyPoint) wich holds the coordinates of the stores where the product is available. Some example data (CSV) that´s imported in the index: "product","vendor","coordinates" "Coca Cola 0.5l","Billa","[{ ""type"": ""Point"", ""coordinates"": [48.1184669,16.2030506]},{ ""type"": ""Point"", ""coordinates"": [48.1184977,16.1877297]},{ ""type"": ""Point"", ""coordinates

Azure Search using REST c#

ぐ巨炮叔叔 提交于 2019-12-13 03:46:27
问题 I am trying to run the following code: public class Item { [JsonProperty(PropertyName = "api-key")] public string apikey { get; set; } } [[some method]]{ var url = "https://[search service name].search.windows.net/indexes/temp?api-version=2016-09-01"; using (var httpClient = new HttpClient()) { using (var request = new HttpRequestMessage(HttpMethod.Put,url)) { request.Headers.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json")); var sItem = new Item { apikey =

Azure Search: Order by dynamic data

本小妞迷上赌 提交于 2019-12-13 00:36:34
问题 I have an Azure Search index composed of documents that can "occur" in multiple regions any number of times. For example Document1 has 5 occurrences in Region1 , 20 occurrences in Region2 . Document2 has 54 occurrences in Region1 , and 10 occurrences in Region3 . Document3 has 10 occurrences in Region3 . We want to use Azure Search for searching and suggestions, but base the order on number of occurrences on a region. For example the search for Document from a user in Region1 should return in

Azure Search data consistency when posting to index

此生再无相见时 提交于 2019-12-12 09:58:28
问题 I am trying to understand what consistency guarantees Azure Search provides. Scenario: Let's say I'm posting documents sequentially to Azure Search REST API: doc1 doc2 doc3 Questions I issue a query and doc3 is returned. Does it imply that doc1 and doc2 are also present in the index? E.g., should I be concerned about data replication not being completed yet, etc.? If POST request returns, is it 100% guaranteed that the posted document is available to search, hence will immediately be found by

Search Azure Search Index for documents within x km of the reference point where x is a field on the document

帅比萌擦擦* 提交于 2019-12-12 06:45:39
问题 I am trying to search the Azure Search Index for documents that are not just within x km of the search reference point but also where the document + y km is within x km of the search reference. y is a field on the document so it will be different for each document in the index. 回答1: To find filter based on the distance between a reference point and a point given by a field in the document, you can use the geo.distance function in your $filter query. For instance if your geo point was in the

Azure search no longer indexing documents in blob storage

☆樱花仙子☆ 提交于 2019-12-12 05:12:12
问题 Up until a couple of weeks ago, I was successfully setting up a data source, index and indexer for documents stored within Azure blob storage. The documents were being indexed as I expected. Now, however, no matter what I do, the same documents are no longer being indexed. I've tried pretty much all possible combinations, re-run the indexer, used different blob storage and even deleted and created a new Azure Search service, but all to no avail. Whenever I run the indexer it just tells me it

Azure-search: How to get documents which exactly contain search term

与世无争的帅哥 提交于 2019-12-12 04:27:27
问题 This question/answer dealt with a pretty similar topic, but I couldn't find the solution I was searching for. How to practially use a keywordanalyzer in azure-search? Starting situation: I created a resource with multiple indexes. One of these indexes contains a Collection(Edm.String) field. From this field i only want to get documents which exactly contain the search term. For example the field contains documents like these: "Hovercraft zero", "Hovercraft one", "Hovercraft two". If the