Quantcast
Channel: Finding nodes that have not been indexed - Drupal Answers
Viewing all articles
Browse latest Browse all 3

Answer by Mykola Veryha for Finding nodes that have not been indexed

$
0
0

We have a tracker to mark nodes indexed in the Drupal database in 'search_api_item' table.

\Drupal\search_api\Plugin\search_api\tracker\Basic

You can investigate the class. It will help to understand how to check if nodes were indexed.For example, after updating a node this tracker will be called from this method

\Drupal\search_api\Entity\Index::trackItemsInsertedOrUpdated

Be care with 'indexing_order':'fifo' => $this->t('Index items in the same order in which they were saved'),

It can make problems because we have this code in the tracker class:

    // Update the status of unindexed items only if the item order is LIFO.    // (Otherwise, an item that's regularly being updated might never get    // indexed.)    if ($this->configuration['indexing_order'] === 'fifo') {      $update->condition('status', self::STATUS_INDEXED);    }

Viewing all articles
Browse latest Browse all 3

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>