Skip to content

Commit 3fc8ed5

Browse files
64knlthessakockelkornThessa Kockelkorn
authored
feat: Version 20.1 (#233)
* 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 <[email protected]> * 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 <[email protected]> Co-authored-by: Thessa Kockelkorn <[email protected]>
1 parent a41666d commit 3fc8ed5

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

src/Services/Indexer/IndexBuilderService.php

+7-10
Original file line numberDiff line numberDiff line change
@@ -101,23 +101,20 @@ private function indexChildPages($parentId)
101101
continue;
102102
}
103103

104+
$menu = Menu::whereId($page->id)->firstOrFail();
105+
104106
if (! isset($page->template->properties->searchable) || $page->template->properties->searchable == 0) {
105107
$this->writeDebug(" skipping, template not searchable\n");
106108

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

112-
continue;
113-
}
114-
115-
$menu = Menu::whereId($page->id)->firstOrFail();
112+
} else {
116113

117-
foreach ($this->locales as $lang) {
118-
$this->updatePage($menu, $lang);
114+
foreach ($this->locales as $lang) {
115+
$this->updatePage($menu, $lang);
116+
}
119117
}
120-
121118
// index subitems for page
122119
foreach ($this->locales as $lang) {
123120
$this->updateSubPages($menu, $lang);

0 commit comments

Comments
 (0)