Skip to content

darshan-hindocha/search-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

search-backend

handbook

in cmd/search/main.go is where the search engine is rooted.

run go run cmd/search/main.go to start the service using the bleve search engine

the endpoints are described in internal/router.go

internal

the internal/* folder contains the stuff needed to operate this service.

internal/db

the internal/db.go file describes an interface for the db.

the paradigm is that whichever search engine we use, it should implement the db interface.

eventually db will include the users, collections and extracts, and a fine-grained text-corpus

internal/db/bleve

goland very kindly reminds me that bleve is a typo, but it's not.

the internal/db/bleve/* has everything we need to implement bleve as a search engine within the db.

internal/router

internal/router.go contains the gin api router that offers endpoints to interact with the db and it's methods

About

Simple backend for a search engine written in Go

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages