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.
Instructions to set up document types
You can set up document types feature by following these instructions or taking the following steps
- Login to your AddSearch account
- Navigate to:
- Setup
- Domains and crawling
- Under Document types (PDF, Word, PowerPoint) enable PDF support

When the setting is changed, a full re-crawl is required.
- Navigate to Index tools
- Request a full re-crawl

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.
Indexing metadata of documents
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.
Filtering search results based on document types
You can filter search results based on document types using a filter object. The following document types are automatically indexed with these category identifiers:
- doctype_html
- doctype_pdf
- doctype_doc
- doctype_docx
- doctype_ppt
- doctype_pptx
- doctype_xls
- doctype_xlsx
The following examples show how to use document types as filters with the Search Widget. Before constructing the filters, please note the following:
- The Search Widget consists of two components:
- A settings object containing the filter object
- A search script that executes the Search Widget
- The id (asw_01 in the examples) between the settings object and the search script needs to match
Filter examples
Include search results with PDF as the document type:
<!-- Settings object -->
<script>
window.addsearch_settings = {
"asw_01": {
"baseFilters": { "category": "doctype_pdf" }
}
}
</script>
<!-- Search script -->
<script src="https://cdn.addsearch.com/v5/addsearch-ui.min.js?key=YOUR_PUBLIC_SITE_KEY&id=asw_01"></script>
For including search results with pptx as the document type:
<!-- Settings object -->
<script>
window.addsearch_settings = {
"asw_01": {
"baseFilters": { "category": "doctype_pptx" }
}
}
</script>
<!-- Search script -->
<script src="https://cdn.addsearch.com/v5/addsearch-ui.min.js?key=YOUR_PUBLIC_SITE_KEY&id=asw_01"></script>
And for creating combinations of document types (PDF, PPTX, and DOC):
<!-- Settings object -->
<script>
window.addsearch_settings = {
"asw_01": {
// Use "or" operator to match any of these document types
"baseFilters": {
"category": ["doctype_pdf", "doctype_pptx", "doctype_doc"]
}
}
}
</script>
<!-- Search script -->
<script src="https://cdn.addsearch.com/v5/addsearch-ui.min.js?key=YOUR_PUBLIC_SITE_KEY&id=asw_01"></script>
For more information on category filters, please refer to the documentation on Search Filters.