mirror of
https://github.com/documize/community.git
synced 2025-08-02 12:05:23 +02:00
parent
db1af55c6c
commit
00c2d17fcb
20 changed files with 775 additions and 740 deletions
|
@ -279,10 +279,9 @@ func (s Scope) Documents(ctx domain.RequestContext, keywords string) (results []
|
|||
}
|
||||
|
||||
keywords = strings.TrimSpace(keywords)
|
||||
// keywords = strings.ToLower(keywords)
|
||||
|
||||
if len(keywords) > 0 {
|
||||
keywordQuery = "AND MATCH(pagetitle,body) AGAINST('" + keywords + "' in boolean mode)"
|
||||
keywordQuery = "AND MATCH(documenttitle,pagetitle,body) AGAINST('" + keywords + "' in boolean mode)"
|
||||
}
|
||||
|
||||
sql := `SELECT search.id, documentid, pagetitle, document.labelid, document.title as documenttitle, document.tags,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue