Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

In this article you will find:

...

  1. Open the backend of your Sitefinity instance

  2. Navigate to Administartion → Settings and click Advanced (your-site-domain/Sitefinity/Administration/Settings/Advanced)

  3. Open the Hawksearch configuration

  4. Under document size limit enter 4000KB100KB

  5. Save the changes

Upload content above the limit

...

  1. Open the backend of your Sitefinity instance

  2. Navigate to Content → Documents & Files

  3. Upload files above the document size limit e.g. 10MB20MB

  4. Navigate to Administration → Search indexes (your-site-domain/Sitefinity/Administration/Search indexes)

  5. Open your currently used and active Index

  6. Select Documents from the scope. This will add the documents you have uploaded to the index

Note

During indexing the files are stripped and only the text content is extracted. Some files contain a lot of metadata or embedded resources (e.g. photos) so a 10MB 20MB .pdf may only contain 1MB 2MB of actual data.

Info

Setup search service

In order to index documents above the document size limit you need to inherit the HawksearchService class and override the AdaptDocuments.

Here we will demonstrate how to:

empty the content field OR take the first 500 words in it.

...