This Confluence instance is now read-only, please head over to the Algolia Confluence instance for the same more up-to-date information

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Instant indexing allows you to instantly index pages when they are visited by your users. It is a Javascript code that runs when a page is loaded, which sends a ping to our crawlers to re-index the webpage.

To set up instant indexing on your website, mention your Project and Collection details and add the code in the <head> section of your website.

Once installed, your site content will be added and updated automatically.

<script type="text/javascript">
  var _sj = _sj || [];
  _sj.push(['project', 'ENTER YOUR ACCOUNT ID']);
  _sj.push(['collection', 'ENTER YOUR COLLECTION ID']);
  (function () {
    var sj = document.createElement('script');
    sj.type = 'text/javascript';
    sj.async = true;
    sj.src = '//cdn.sajari.com/js/sj.js';
    var s = document.getElementsByTagName('script')[0];
    s.parentNode.insertBefore(sj, s);
  })();
</script>

Note:

  • Pages are only updated when certain fields are updated (title, description, keywords).

  • The pages must be visited (i.e. the page and the script are loaded) within 30 minutes of updating or being added for it to be indexed.

  • No labels