Skip to content

Commit

Permalink
disable fetch localizedCitations and teiDataSets (temporary for more …
Browse files Browse the repository at this point in the history
…indexing speed)
  • Loading branch information
thomas-sc committed Jan 14, 2025
1 parent 32b2a06 commit 4dcc5be
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions Classes/Command/IndexCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -239,8 +239,8 @@ protected function versionedSync(int $version): void
protected function sync(int $cursor = 0, int $version = 0): void
{
$this->fetchBibliography($cursor, $version);
$this->fetchCitations($cursor, $version);
$this->fetchTeiData($cursor, $version);
// $this->fetchCitations($cursor, $version);
// $this->fetchTeiData($cursor, $version);
$this->buildDataSets();
$this->commitBibliography();
}
Expand Down Expand Up @@ -361,7 +361,13 @@ protected function buildDataSets(): void
{
$this->dataSets = $this->bibliographyItems->
map(function($bibliographyItem) {
return BibEntryProcessor::process($bibliographyItem, $this->localizedCitations, $this->teiDataSets);
return BibEntryProcessor::process(
$bibliographyItem,
new Collection(),
new Collection()
// $this->localizedCitations,
// $this->teiDataSets
);
});
}

Expand Down

0 comments on commit 4dcc5be

Please sign in to comment.