Showing PDF results with Examine as a search provider
Hopefully this is an easy one to solve and I am simply overlooking something here...I'm on Umbraco 7.6.6 and trying to get results displayed for PDFs that are currently indexed.
umbraco.typedsearch will default to the external indexer so that wont work as its looking at the wrong index.
Are you looking to search only on that pdf index? If so then you need to use the examine api and get that index then run a query on it. If you are looking to search over combined index then you can update your config searcher to point to both indexes then search but you will need to when writing out results test if its pdf.
Yeah you can set the default indexer there however you are going to want to search 2 indexes you need to update your ExamineSettings.config to:
This will make the external searcher search of your content and pdf index. The issue however you may have is on your search call it may give you error because you have mix of content and pdf. So you may need to look at doing a query using examine api see https://our.umbraco.org/Documentation/Reference/Searching/Examine/examine-manager
Showing PDF results with Examine as a search provider
Hopefully this is an easy one to solve and I am simply overlooking something here...I'm on Umbraco 7.6.6 and trying to get results displayed for PDFs that are currently indexed.
Item 1
Item2
item 3
...And here is a screenshot of my indexed PDF from BackOffice:
What must I do to my following MVC code to show the results of my pdf in which I am searching? The following code shows me no results....
Thanks in advance for any insight!
umbraco.typedsearch will default to the external indexer so that wont work as its looking at the wrong index.
Are you looking to search only on that pdf index? If so then you need to use the examine api and get that index then run a query on it. If you are looking to search over combined index then you can update your config searcher to point to both indexes then search but you will need to when writing out results test if its pdf.
Regards
Ismail
Yes I am going with option number 2 - a combined index. Quick question...
example:
Yeah you can set the default indexer there however you are going to want to search 2 indexes you need to update your ExamineSettings.config to:
This will make the external searcher search of your content and pdf index. The issue however you may have is on your search call it may give you error because you have mix of content and pdf. So you may need to look at doing a query using examine api see https://our.umbraco.org/Documentation/Reference/Searching/Examine/examine-manager
Regards
Ismail
Thanks again Ismail, I got something going based on the resources and tips you provided.
is working on a reply...