0
0
Fork 0

Allow pre parsing query strings

This commit is contained in:
Nicholas Wiersma 2017-04-25 16:30:47 +02:00
parent 17e21be71a
commit b12c902457
1 changed files with 4 additions and 0 deletions

View File

@ -43,6 +43,10 @@ func (q *QueryStringQuery) Boost() float64 {
return q.BoostVal.Value()
}
func (q *QueryStringQuery) Parse() (Query, error) {
return parseQuerySyntax(q.Query)
}
func (q *QueryStringQuery) Searcher(i index.IndexReader, m mapping.IndexMapping, options search.SearcherOptions) (search.Searcher, error) {
newQuery, err := parseQuerySyntax(q.Query)
if err != nil {