Skip to content

Commit 7096186

Browse files
authored
Merge pull request #18 from kdambekalns/limit-search-to-documents
BUGFIX: Limit search to document nodeTypes
2 parents 26b4613 + 37c97f9 commit 7096186

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Resources/Private/TypoScript/SearchPlugin.ts2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ prototype(Flowpack.SearchPlugin:Search) < prototype(TYPO3.Neos:Content) {
22
templatePath = 'resource://Flowpack.SearchPlugin/Private/Templates/NodeTypes/Search.html'
33

44
searchTerm = ${request.arguments.search}
5-
searchQuery = ${this.searchTerm ? Search.query(site).fulltext(this.searchTerm) : null}
5+
searchQuery = ${this.searchTerm ? Search.query(site).fulltext(this.searchTerm).nodeType('TYPO3.Neos:Document') : null}
66

77
totalSearchResults = ${this.searchQuery.count()}
88

0 commit comments

Comments
 (0)