Reputation: 65
i am trying to find the best way to implement a small site allowing the user to upload a file and then search on it.
i used azure search with blob storage. the file is stored on the blob storage and is then gets indexed by azure search indexer - so far so good.
the problem is that i would like to add to each document some custom data like file id and other business data, this data is not part of the document. is there a way to achieve this? some one, suggested i use cosmos db, though i am not sure its the best way to go when it comes to documents.
Thanks
Upvotes: 1
Views: 502
Reputation: 4671
If you would like to keep using blob storage, you can store metadata with the blobs - just add custom metadata to your blobs, add corresponding fields to the search index, and the blob indexer will pick up the metadata.
Upvotes: 2