C# Class AzureSearchOCRwithKeywordExtraction.AzureSearch

Show file Open project: liamca/AzureSearchOCR Class Usage Examples

Public Methods

Method Description
CreateIndex ( Microsoft.Azure.Search.SearchServiceClient serviceClient, string indexName ) : void
SearchDocuments ( Microsoft.Azure.Search.SearchIndexClient indexClient, string searchText ) : void
UploadDocuments ( Microsoft.Azure.Search.SearchIndexClient indexClient, string fileId, string fileName, string ocrText, KeyPhraseResult keyPhraseResult ) : void

Method Details

CreateIndex() public static method

public static CreateIndex ( Microsoft.Azure.Search.SearchServiceClient serviceClient, string indexName ) : void
serviceClient Microsoft.Azure.Search.SearchServiceClient
indexName string
return void

SearchDocuments() public static method

public static SearchDocuments ( Microsoft.Azure.Search.SearchIndexClient indexClient, string searchText ) : void
indexClient Microsoft.Azure.Search.SearchIndexClient
searchText string
return void

UploadDocuments() public static method

public static UploadDocuments ( Microsoft.Azure.Search.SearchIndexClient indexClient, string fileId, string fileName, string ocrText, KeyPhraseResult keyPhraseResult ) : void
indexClient Microsoft.Azure.Search.SearchIndexClient
fileId string
fileName string
ocrText string
keyPhraseResult KeyPhraseResult
return void