Delen via


IndexingParametersExtensions.IndexFileNameExtensions Method

Definition

Specifies that the indexer will index only the blobs with the file name extensions you specify. Each string is a file extensions with a leading dot. For example, ".pdf", ".docx", etc. If you pass the same file extension to this method and ExcludeFileNameExtensions, blobs with that extension will be excluded from indexing (that is, ExcludeFileNameExtensions takes precedence). See https://docs.microsoft.com/azure/search/search-howto-indexing-azure-blob-storage for details.

public static Microsoft.Azure.Search.Models.IndexingParameters IndexFileNameExtensions (this Microsoft.Azure.Search.Models.IndexingParameters parameters, params string[] extensions);
static member IndexFileNameExtensions : Microsoft.Azure.Search.Models.IndexingParameters * string[] -> Microsoft.Azure.Search.Models.IndexingParameters
<Extension()>
Public Function IndexFileNameExtensions (parameters As IndexingParameters, ParamArray extensions As String()) As IndexingParameters

Parameters

parameters
IndexingParameters

IndexingParameters to configure.

extensions
String[]

File extensions to include in indexing.

Returns

The IndexingParameters instance.

Remarks

This option only applies to indexers that index Azure Blob Storage.

Applies to