Adding the ability to disable full text search queries for master (#6102)

Этот коммит содержится в:
Corey Hulen
2017-04-17 07:54:26 -07:00
коммит произвёл Christopher Speller
родитель 7e29dc65aa
Коммит 3207886514
5 изменённых файлов: 33 добавлений и 0 удалений

Просмотреть файл

@@ -4,6 +4,7 @@
package model
import (
"encoding/json"
"regexp"
"strings"
)
@@ -19,6 +20,15 @@ type SearchParams struct {
OrTerms bool
}
func (o *SearchParams) ToJson() string {
b, err := json.Marshal(o)
if err != nil {
return ""
} else {
return string(b)
}
}
var searchFlags = [...]string{"from", "channel", "in"}
func splitWordsNoQuotes(text string) []string {