AddSearch supports crawling and indexing several document types. In addition to webpages, AddSearch can crawl and index PDFs as well as Microsoft Word, PowerPoint and Excel documents.
You can set up document types feature by following these instructions or taking the following steps
When the setting is changed, a full re-crawl is required.
Please note: each document counts as a separate page in your plan’s page quota. Enabling the “Document types” feature may cause you to exceed your quota.
The size limit of PDFs is 20 MB. If your PDFs exceed the size limit, you can request a custom limitation.
In addition to the content, AddSearch indexes the metadata from PDFs and Microsoft Office documents. There are settings we can use to enhance what is indexed as well as what is shown in the search results. Please contact AddSearch Customer Support if you need help in setting up the search.
You can filter the search results based on document types with category filters. Below you can see the supported category filters for document types
The category filter has the following syntax categories=doctype_pdf
which you can add to the search script.
The following scripts show how to use the document types as filters in the Search Widget. Replace ####
with your site key.
Include search results with PDF as the document type
<script src="https://cdn.addsearch.com/v5/addsearch-ui.min.js?key=####&categories=doctype_pdf"></script>
Include search results with pptx as the document type
<script src="https://cdn.addsearch.com/v5/addsearch-ui.min.js?key=####&categories=doctype_pptx"></script>
You can also create combinations of document types to include in the search results. For instance, the following filter includes search results with PDF, pptx, and doc as the document type
<script src="https://cdn.addsearch.com/v5/addsearch-ui.min.js?key=####&categories=doctype_pdf,doctype_pptx,doctype_doc"></script>
For more information on the category filters read further in the documentation on Search Filters.
We’re always happy to help with code or other questions you might have. Search our documentation, contact support, or connect with our sales team.