search_parser

package
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 4, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SearchParser

type SearchParser struct {
	// contains filtered or unexported fields
}

func NewSearchParser

func NewSearchParser(tagCommonService *tag_common.TagCommonService, userCommon *usercommon.UserCommon) *SearchParser

func (*SearchParser) ParseStructure

func (sp *SearchParser) ParseStructure(dto *schema.SearchDTO) (
	searchType string,

	userID string,
	votes int,

	notAccepted bool,
	isQuestion bool,
	views,
	answers int,

	accepted bool,
	questionID string,
	isAnswer bool,

	tags,
	words []string,
)

ParseStructure parse search structure, maybe match one of type all/questions/answers, but if match two type, it will return false

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL