user59271
user59271

Reputation: 430

How can I retrieve the contents of an Azure Search index?

The problem:

I have created a search index for a blob store of HTML documents on Azure. I'm using Azure search to query the documents from this index.

What I would like to retrieve is the contents of the search index itself. That is I want to retrieve the entire inverted index.

What I have tried:

I have inspected the API docs and understand that I can retrieve the index definition with the Get Index operation, get individual documents, and see a sample token with the Analyze API, but do not see a way to retrieve the actual inverted search index.

Is it possible to achieve this?

Upvotes: 3

Views: 3628

Answers (3)

patyx
patyx

Reputation: 329

Azure Search does not currently offer a way to retrieve the actual search index. If you are trying to do something like retrieve term frequencies you will have to implement that yourself using other Azure features like the Analyze API.

You can cast your vote here to show support for this feature.

Upvotes: 1

Mr. Kraus
Mr. Kraus

Reputation: 8135

To see the individual documents, you can use the Azure Search REST APIs for Search and Lookup or you can use the Search Explorer that is accessible from the Azure Search resource.

Search Explorer

If you are looking at understanding how Azure Search tokenizes the documents, use the Analyze API to send sample text and see how your content is being tokenized.

enter image description here

Upvotes: 1

Yahnoosh
Yahnoosh

Reputation: 1972

Search and Lookup APIs are the way to retrieve documents from your Azure Search index. If you meant being able to see the content of the inverted index, the closest thing is the Analyze API that allows you to inspect what searchable terms are extracted for any input string.

Upvotes: 1

Related Questions