gcse

module
v0.0.0-...-a103e92 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2018 License: BSD-2-Clause, BSD-3-Clause

README

Go Search GoSearch

A keyword search engine helping people to find popular and relevant Go packages.

Online service: Go Search

This is the root package with shared functions.

Sub packages are commands for running:

  • HTTP Server: Searching and web service
  • ToCrawl: Find packages to crawl.
  • Crawler: Crawling package files.
  • MergeDocs: Merge crawled package files with doc DB.
  • Indexer: Analyzing package information and generating indexed data for searching.

Development

You'll need to perform the following steps to get a basic server running:

  1. Create a basic conf.json file, limiting the crawler to a one minute run: { "crawler": { "due_per_run": "1m" } }
  2. Run the package finder: go run cmd/tocrawl/*.go
  3. Run the crawler: go run cmd/crawler/*.go
  4. Merge the crawled docs: go run cmd/mergedocs/*.go
  5. Run the indexer: go run cmd/indexer/*.go
  6. Run the server: go run cmd/server/*.go
  7. Visit http://localhost:8080 in your browser

LICENSE

BSD license.

Directories

Path Synopsis
cmd
crawler command
GCSE Crawler background program.
GCSE Crawler background program.
indexer command
mergedocs command
Input
Input
server command
GCSE HTTP server.
GCSE HTTP server.
spider command
tocrawl command
tools/countdocs command
tools/dump command
tools/exps command
tools/fillfound command
pkg
Package gcse is the core supporting library for go-code-search-engine (GCSE).
Package gcse is the core supporting library for go-code-search-engine (GCSE).
configs
Package configs define and load all configurations.
Package configs define and load all configurations.
proto/spider
Package sppb is a generated protocol buffer package.
Package sppb is a generated protocol buffer package.
proto/store
Package stpb is a generated protocol buffer package.
Package stpb is a generated protocol buffer package.
store
Package store handlings all the storage in GCSE backend.
Package store handlings all the storage in GCSE backend.

Jump to

Keyboard shortcuts

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