func NewIndexBinFlatSearchParam(
	nprobe int,
) (*IndexBinFlatSearchParam, error) {
	if nprobe < 1 {
		return nil, errors.New("nprobe not valid")
	}
	if nprobe > 65536 {
		return nil, errors.New("nprobe not valid")
	}
	return &IndexBinFlatSearchParam{ 
	nprobe: nprobe,
	}, nil
}
NewIndexBinFlatSearchParam create index search param
package entity
import (
	"errors"
)
var _ SearchParam = &IndexFlatSearchParam{}
type IndexFlatSearchParam struct {  
	nprobe int
}
func(i *IndexFlatSearchParam) Params() map[string]interface{} {
	return map[string]interface{} { 
		"nprobe": i.nprobe,
	}
}
func NewIndexFlatSearchParam(
	nprobe int,
) (*IndexFlatSearchParam, error) {
	if nprobe < 1 {
		return nil, errors.New("nprobe not valid")
	}
	if nprobe > 65536 {
		return nil, errors.New("nprobe not valid")
	}
	return &IndexFlatSearchParam{ 
	nprobe: nprobe,
	}, nil
}
var _ SearchParam = &IndexBinFlatSearchParam{}
type IndexBinFlatSearchParam struct {  
	nprobe int
}
func(i *IndexBinFlatSearchParam) Params() map[string]interface{} {
	return map[string]interface{} { 
		"nprobe": i.nprobe,
	}
}