1
// Copyright (c) 2014 Couchbase, Inc.
3
// Licensed under the Apache License, Version 2.0 (the "License");
4
// you may not use this file except in compliance with the License.
5
// You may obtain a copy of the License at
7
// http://www.apache.org/licenses/LICENSE-2.0
9
// Unless required by applicable law or agreed to in writing, software
10
// distributed under the License is distributed on an "AS IS" BASIS,
11
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
// See the License for the specific language governing permissions and
13
// limitations under the License.
18
"github.com/blevesearch/bleve/index"
19
"github.com/blevesearch/bleve/search"
22
type MatchNoneSearcher struct {
23
indexReader index.IndexReader
26
func NewMatchNoneSearcher(indexReader index.IndexReader) (*MatchNoneSearcher, error) {
27
return &MatchNoneSearcher{
28
indexReader: indexReader,
32
func (s *MatchNoneSearcher) Count() uint64 {
36
func (s *MatchNoneSearcher) Weight() float64 {
40
func (s *MatchNoneSearcher) SetQueryNorm(qnorm float64) {
44
func (s *MatchNoneSearcher) Next(ctx *search.SearchContext) (*search.DocumentMatch, error) {
48
func (s *MatchNoneSearcher) Advance(ctx *search.SearchContext, ID index.IndexInternalID) (*search.DocumentMatch, error) {
52
func (s *MatchNoneSearcher) Close() error {
56
func (s *MatchNoneSearcher) Min() int {
60
func (s *MatchNoneSearcher) DocumentMatchPoolSize() int {