Skip to content

Commit

Permalink
feat: Version 20.1 (#233)
Browse files Browse the repository at this point in the history
* chore: update requirements

* feat: site url and clear option for indexer (#227)

* feat: use full url if site domain is given

* chore: add clear option

---------

Co-authored-by: Thessa Kockelkorn <thessa@notfound.nl>

* fix: rename command to fresh

* chore: rename clean => fresh

* feat: allow document paths (#229)

* fix: allow more file paths

* feat: show file error in console

* style: formatting

* feat: tags in overview (#231)

* fix: solr accents (#232)

* fix: remove double encoding

* fix: exclude from search

* fix: index subpages

---------

Co-authored-by: thessakockelkorn <70509512+thessakockelkorn@users.noreply.github.com>
Co-authored-by: Thessa Kockelkorn <thessa@notfound.nl>
  • Loading branch information
3 people committed Apr 18, 2024
1 parent a41666d commit 3fc8ed5
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions src/Services/Indexer/IndexBuilderService.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,23 +101,20 @@ private function indexChildPages($parentId)
continue;
}

$menu = Menu::whereId($page->id)->firstOrFail();

if (! isset($page->template->properties->searchable) || $page->template->properties->searchable == 0) {
$this->writeDebug(" skipping, template not searchable\n");

continue;
}
if (isset($page->properties->excludeFromSearch) && $page->properties->excludeFromSearch == true) {
} elseif (isset($page->properties->excludeFromSearch) && $page->properties->excludeFromSearch == true) {
$this->writeDebug(" skipping, page not searchable\n");

continue;
}

$menu = Menu::whereId($page->id)->firstOrFail();
} else {

foreach ($this->locales as $lang) {
$this->updatePage($menu, $lang);
foreach ($this->locales as $lang) {
$this->updatePage($menu, $lang);
}
}

// index subitems for page
foreach ($this->locales as $lang) {
$this->updateSubPages($menu, $lang);
Expand Down

0 comments on commit 3fc8ed5

Please sign in to comment.