fulltextsearch

package
v0.0.0-...-748f5db Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2017 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Searcher

type Searcher interface {
	TweetsSearcher
	UsersSearcher
}

Searcher is interface which defines all full text search functions used in system. All implementations of different types of search engines should implement these methods.

func NewElasticsearchSearch

func NewElasticsearchSearch(config config.ElasticsearchConfigProvider) Searcher

NewElasticsearchSearch connects to Elasticsearch and returns new instance of struct which implements Searcher functions.

func NewFakeSearch

func NewFakeSearch() Searcher

NewFakeSearch creates new instance of fake searcher which imitates searching values. Implements all Searcher methods but each of them is doing nothing.

type TweetsSearcher

type TweetsSearcher interface {
	GetTweetsIDs(querystring string) ([]int64, error)
}

TweetsSearcher is interface which defines all full text search functions which are connected with tweets.

type UsersSearcher

type UsersSearcher interface {
	GetUsersIDs(querystring string) ([]int64, error)
}

UsersSearcher is interface which defines all full text search functions which are connected with users.

Jump to

Keyboard shortcuts

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