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 100KB

  5. Save the changes

...

  1. Open the backend of your Sitefinity instance

  2. Navigate to Content → Documents & Files

  3. Upload files above the document size limit e.g. 20MB

  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

Once you implement the code in Visual Studio , build your solution and you will also have to reindex the index you are using from Administrator → Search Indexes → Action → Reindex

Info

Expected results

Now if you Inspect your frontend page you should be able to see the content with first 500 symbols of your large document. There will be also a content field with 500 symbols in the XHR search → results → document fields

Register Custom Search Service

...