bugfixes more search results and dump restore options
This commit is contained in:
parent
f4fcf0d9a8
commit
3cd460318a
124 changed files with 3915 additions and 9579 deletions
10
vendor/github.com/blevesearch/bleve/query_match_none.go
generated
vendored
10
vendor/github.com/blevesearch/bleve/query_match_none.go
generated
vendored
|
|
@ -10,6 +10,8 @@
|
|||
package bleve
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
|
||||
"github.com/blevesearch/bleve/index"
|
||||
"github.com/blevesearch/bleve/search"
|
||||
"github.com/blevesearch/bleve/search/searchers"
|
||||
|
|
@ -51,3 +53,11 @@ func (q *matchNoneQuery) Field() string {
|
|||
func (q *matchNoneQuery) SetField(f string) Query {
|
||||
return q
|
||||
}
|
||||
|
||||
func (q *matchNoneQuery) MarshalJSON() ([]byte, error) {
|
||||
tmp := map[string]interface{}{
|
||||
"boost": q.BoostVal,
|
||||
"match_none": map[string]interface{}{},
|
||||
}
|
||||
return json.Marshal(tmp)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue