I have a document structure like this:
Title
[[TOC]]#Topic 1
x
x
x
x
x
x
x
x
##Sub-Topic 1
x
x
x
x
x
x
x
x
#Topic 2
x
x
x
x
x
x
x
x
##Sub-Topic 1
x
x
x
x
x
x
x
x
I am new to azure cognitive search. What I want to achieve is an index with multiple elements having same source (since it is a same document) with title, answer and url link to that title. The information about the location of topic and subtopics is in the table of contents. When I click them, I reach to that section of the page. So when I search something, and the answer is found (may via semantic search), I would like to get the link to that section of the page. Is this possible in azure cognitive search?
2
Answers
Yes, this is possible with Azure Cognitive Search. You might have to implement some client-side logic to reach the location of the semantic answer of the document if you choose to open up to raw document in a new window as the default behavior would be to just open up the selected document that has the answer.
Linking to sections in content from search results depends on the content source you have. If the content is your on own website and you are in control of it, you can add HTML anchor links in the HTML of the content. If your content is HTML that you don’t control, you can only use the anchor links already present in the documents.
If your content consists of PDF documents, you have to use the linking mechanisms that PDF provides as documented by Adobe:
From your description, it seems like you are looking for a simple option in Azure Search that enables deep-linking to any content. There is no such option.