azure-cognitive-search

Azure Blob Storage Indexer fails on images

旧时模样 提交于 2020-01-17 05:23:15
问题 I'm using Azure Search with a Blob Storage indexer. I'm seeing failures in the execution history:- [ { "key": null, "errorMessage": "Document 'https://mystorage.blob.core.windows.net/my-documents/Document/Repository/F/AD/LO/LO-min-0002-00.png' has unsupported content type 'image/png'" } ] Does this failure cause other documents (with supported content type) in the storage not to be indexed? 回答1: Yes, by default 1 failed document will stop indexing. You can increase that limit if you just have

Azure Search DataSource with on-premise SQL Server and best practices?

こ雲淡風輕ζ 提交于 2020-01-16 02:10:24
问题 Documentation on Azure Search says I can use Azure Sql server as a datasource(https://azure.microsoft.com/en-us/documentation/articles/search-howto-connecting-azure-sql-database-to-azure-search-using-indexers-2015-02-28/). Can I do the same with an on-premise SQL server? I have a typical relational structure like User Table -> Address Table User Table -> UserDetails table etc.. All linked to each other via foreign keys. My search should end up with an UserId, so I can link to my

Why can't Azure Search import JSON blobs?

柔情痞子 提交于 2020-01-15 10:27:33
问题 When importing data using the configuration found below, Azure Cognitive Search returns the following error: Error detecting index schema from data source: "" Is this configured incorrectly? The files are stored in the container "example1" and in the blob folder "json". When creating the same index with the same data in the past there were no errors, so I am not sure why it is different now. Import data: Data Source : Azure Blob Storage Name : test-example Data to extract : Content and

Why can't Azure Search import JSON blobs?

烂漫一生 提交于 2020-01-15 10:27:08
问题 When importing data using the configuration found below, Azure Cognitive Search returns the following error: Error detecting index schema from data source: "" Is this configured incorrectly? The files are stored in the container "example1" and in the blob folder "json". When creating the same index with the same data in the past there were no errors, so I am not sure why it is different now. Import data: Data Source : Azure Blob Storage Name : test-example Data to extract : Content and

Paging in Azure search when results have equal scores

你。 提交于 2020-01-14 13:51:50
问题 I'm using Azure Search on my e-commerce site, and now i faced the problem with paging on my search page. When i reload the search page i can get different order of products. So when i'm using paging i can see same products on different pages, and this is critical. I started researching what's going wrong, and i've found this info on Microsoft docs https://docs.microsoft.com/en-us/rest/api/searchservice/add-scoring-profiles-to-a-search-index#what-is-default-scoring Search score values can be

Contains / in array in Azure Search (Preview)

大城市里の小女人 提交于 2020-01-14 09:46:08
问题 I am using the new (preview) Azure Search SDK (information here). I am using the oData expression syntax to build up my search query using the $filter parameter and I would like to be able to feed across an array of ids to the endpoint. The brandId field is in my Azure Search Index and it is searchable, filterable, sortable, and facetable. Ideally I would like to be able to do something along the lines of: http://host/service/Products?brands=["1","2"] (See specification here under the section

Hit Highlighting in Azure Search Service

天大地大妈咪最大 提交于 2020-01-14 08:50:37
问题 I am new to Azure Search Service, and I wanted to use the hit highlighting feature of Azure Search Service. I am using the .NET SDK NuGet package for azure search. I used SearchParameter object to mention the hit highlight fields and also the Pre and Post Tag that I require. searchParameters.HighlightFields = new[] { "Description"}; searchParameters.HighlightPreTag = "<b>"; searchParameters.HighlightPostTag = "</b>"; _searchIndexClient.Documents.Search(searchText, searchParameters); I am

How to decode metadata_storage_path produced by Azure Search indexer in .NET Core

余生颓废 提交于 2020-01-10 04:13:09
问题 Using .NetCore 1.1.2. After successfully getting results from a search via Azure Search SDK, I am trying to decode the metadata_storage_path value. I've seen people saying to use HttpServerUtility.UrlTokenDecode in .NET or an equivalent in other languages as seen here. Then the question becomes, what is the equivalent in .NetCore of HttpServerUtility.UrlTokenDecode? With: var pathEncoded = "aHR0cHM6Ly9mYWtlZC5ibG9iLmNvcmUud2luZG93cy5uZXQvcGRmYmxvYnMvYW5udWFsX3JlcG9ydF8yMDA5XzI0NTU20"; I have

Pushing documents(blobs) for indexing - Azure Search

百般思念 提交于 2020-01-06 04:41:07
问题 I've been working in Azure Search + Azure Blob Storage for while, and I'm getting trouble indexing the incremental changes for new files uploaded. How can I refresh the index after upload a new file into my blob container? Following my steps after upload file(I'm using rest service to perform these actions): I'm using the Microsoft Azure Storage Explorer [link]. Through this App I've uploaded my new file to a folder already created before. After that, I used the Http REST to perform a 'Run'

Azure Search Updating Individual Documents

丶灬走出姿态 提交于 2020-01-06 03:25:26
问题 We are using Azure Search for various scenarios. We often need to update an individual document with changes that users make. We need to have these changes become visible in our indexes as soon as possible so that the stale time is as short as possible within reason. What is the best strategy to handle this. We know that batch updates is the way to go but we need more immediate reflection of the changes. Once a document is updated, how long does it take for the index to reflect this change.