Search on node name
This commit is contained in:
parent
83336cf0fa
commit
1389225b45
4 changed files with 9 additions and 3 deletions
5
node.go
5
node.go
|
|
@ -386,7 +386,10 @@ func (session Session) SearchNodes(search string) (nodes []Node, err error) {//
|
|||
FROM node
|
||||
WHERE
|
||||
crypto_key_id IS NULL AND
|
||||
content ~* $1
|
||||
(
|
||||
content ~* $1 OR
|
||||
name ~* $1
|
||||
)
|
||||
ORDER BY
|
||||
updated DESC
|
||||
`, search)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue