azure-cognitive-search

AzureSearch : Dismax query parser capabilities

自古美人都是妖i 提交于 2019-12-12 03:46:11
问题 Is there any possibility of using Dismax Query Parser like capabilities in Azure search. e.g. Query Fields (qf), Phrase Fields (pf), boost function or boost query. I am aware of the fact that currently Azure Search supports lucene query syntax. Want to check if there is some another term / parser available for equivalent functionalities or if not then is AzureSearch team is looking to incorporate it in coming time. Here is the link for reference to DismaxQueryParser https://cwiki.apache.org

How to search based on field in azure search?

强颜欢笑 提交于 2019-12-12 02:32:52
问题 i am using a azure search, and i have a console app with the code as below, which is working fine. DocumentSearchResult<Hotel> results; Console.WriteLine("Search started\n"); results = indexClient.Documents.Search<Hotel>("smart", new SearchParameters { Top=5 }); WriteDocuments(results); currently its searching a text with word "smart". this is straight forword, what i need is i have several fields in the table, i want to search based on the feild . for example let i have two fields 1)Title 2

Azure search, search by partial terms

天大地大妈咪最大 提交于 2019-12-12 02:17:32
问题 Here are two examples for search in the portal, where I would expect to get some results in the second search, even with one letter missing. The search is in Hebrew language The full term return some results, The same term with one letter missing return no results, 回答1: There are a few ways you can search for partial terms in Azure Search. You'll need to decide which of the following methods will work best in your scenario. Based on the example it seems either fuzzy search or prefix search

How to create Index with custom analyzers from json file in Azure Search .NET SDK?

限于喜欢 提交于 2019-12-12 01:23:10
问题 I had read that the Azure Search .NET SDK uses NewtonSoft.Json to convert it's models to/from json in it's underlying REST API calls so I've been doing the same in my own app. I have a simple app which creates a new Index using the .NET SDK. To do this, I was defining my Index in a json file, using the format outlined here https://docs.microsoft.com/en-us/rest/api/searchservice/create-index and then I was converting this to a Microsoft.Azure.Search.Models.Index object using Newtonsoft. var

How Can i use Azure Search Like Syntax

柔情痞子 提交于 2019-12-11 22:06:05
问题 In my Azure Search , i have two document , one column is call "Description" And two record like this [ {"Description": "XARATM | KONE"}, {"Description": "ATM | RCOR"} ] my problem is , when i use Azure Search to search my record like: https://myservice.search.windows.net/indexes/searchproduct/docs?search=ATM&api-version=2014-07-31-Preview they just return one record {"Description": "ATM | RCOR"} , but i need two record. so can i use some syntax like T-SQL SELECT * FROM SearchProduct WHERE

Does Azure Search store term frequencies for searchable fields?

落爺英雄遲暮 提交于 2019-12-11 19:28:41
问题 The problem I understand that an Azure Search index for a searchable field creates an inverted index for each analyzed term, but cannot find within the documentation whether or not the term frequency for each term is stored. The Question Does Azure Search store the term frequencies for searchable fields somewhere? It seems as if it would be inefficient to calculate it for every search query when it would only need be computed once. If so, is it possible to extract/download the term

How to index a field with alphanumeric characters AND a dash for wildcard search

╄→гoц情女王★ 提交于 2019-12-11 17:57:20
问题 Given a model that looks like this: { [Key] public string Id { get; set; } [IsSearchable] [Analyzer(AnalyzerName.AsString.Keyword)] public string AccountId { get; set; } } And sample data for the AccountId that would look like this: 1-ABC123 1-333444555 1-A4KK498 The field can have any combination of letters/digits and a dash in the middle. I need to be able to search on this field using queries like 1-ABC*. However, none of the basic analyzers seem to support the dash except Keyword, which

How to get a link to fetch next records from Azure Search?

烈酒焚心 提交于 2019-12-11 16:59:35
问题 currently I am creating an application where I need to call API of azure search. Here is the API : https://serviceName.search.windows.net/indexes/global-index/docs/search?api-version=2016-09-01 Here is my Java code : @Override public JSONObject global(SearchParametersDto searchInTableDto) { JSONObject jsonOutput = new JSONObject(); ArrayList encodedURLList = new ArrayList < > (); try { String url = "https://" + searchInTableDto.getServiceName().toString() + ".search.windows.net/indexes/" +

Azure Search; Search inside a specific field

五迷三道 提交于 2019-12-11 16:45:01
问题 In Azure Search can i do searching on specific field(s) Example: I have the below "Research" Index. { "Error": null, "IsSuccess": true, "StatusCode": 201, "Body": { "name": "Research", "fields": [ { "name": "Id", "type": "Edm.String", "searchable": false, "filterable": false, "sortable": false, "facetable": false, "suggestions": false, "key": true, "retrievable": true }, { "name": "Title", "type": "Edm.String", "searchable": true, "filterable": false, "sortable": false, "facetable": false,

Get actual count of matches in Azure Search

瘦欲@ 提交于 2019-12-11 16:09:54
问题 Azure Search returns a maximum of 1,000 results at a time. For paging on the client, I want the total count of matches in order to be able to display the correct number of paging buttons at the bottom and in order to be able to tell the user how many results there are. However, if there are over a thousand, how do I get the actual count? All I know is that there were at least 1,000 matches. I need to be able to do this from within the SDK. 回答1: If you want to get total number of documents in