@Nita Anil , Following-up on this from my comments:
Azure Cognitive Search can’t return page numbers to you by default but there are a few ways you could go about getting this information.
- Return hit highlights of the search results and compare the text in the hit highlights with the document to identify which page(s) in the document the match is on. This is probably the simplest approach.
- For PDFs, you have the option to set the imageAction to "generateNormalizedImagePerPage" in the indexer. This will create one image per page which can then be sent to the OCR skill. You could map the output of the OCR skill to a Collection(Edm.String) field where each item is the text from a single page. You could then use the location of the match in the collection to ascertain the page number. Note that this will only work for PDFs.
Hope this helps!