Add additional columns to Azure Search Blob index -


we planning configure azure search index blob containers content of documents can indexed. need add additional columns such "container name" index. indexer automatically performing indexing, how customize add custom columns.

you can extract container name metadata_storage_path creating field mapping (see field mappings) uses extracttokenatposition function: "fieldmappings" : [ { "sourcefieldname" : "metadata_storage_path", "targetfieldname" : "container", "mappingfunction" : { "name" : "extracttokenatposition", "parameters" : { "delimiter" : "/", "position" : 3 } } }]

the approach behind split blob path, looks "https://storageaccount.blob.core.windows.net/container/rest_of_path", on slashes , take container, 4th token (position = 3 since positions zero-based).

hth!


Comments

Popular posts from this blog

filehandler - java open files not cleaned, even when the process is killed -

java - Suppress Jboss version details from HTTP error response -

gridview - Yii2 DataPorivider $totalSum for a column -