bugfixes more search results and dump restore options

This commit is contained in:
ston1th 2016-11-17 21:21:16 +01:00
commit 3cd460318a
124 changed files with 3915 additions and 9579 deletions

View file

@ -39,7 +39,7 @@ func (q *queryStringQuery) SetBoost(b float64) Query {
}
func (q *queryStringQuery) Searcher(i index.IndexReader, m *IndexMapping, explain bool) (search.Searcher, error) {
newQuery, err := parseQuerySyntax(q.Query, m)
newQuery, err := parseQuerySyntax(q.Query)
if err != nil {
return nil, err
}
@ -47,7 +47,11 @@ func (q *queryStringQuery) Searcher(i index.IndexReader, m *IndexMapping, explai
}
func (q *queryStringQuery) Validate() error {
return nil
newQuery, err := parseQuerySyntax(q.Query)
if err != nil {
return err
}
return newQuery.Validate()
}
func (q *queryStringQuery) Field() string {