0
0
Fork 0
A modern text indexing library for go. (this is a mirror of the github repository) http://www.blevesearch.com/
Go to file
Marty Schoch 7a174d7d05 upaated README
closes #16
2014-07-31 10:58:20 -04:00
analysis improved stop word support and related config 2014-07-30 19:29:52 -04:00
docs upaated README 2014-07-31 10:58:20 -04:00
document major refactor, apologies for the large commit 2014-07-30 12:30:38 -04:00
examples upaated README 2014-07-31 10:58:20 -04:00
http major refactor, apologies for the large commit 2014-07-30 12:30:38 -04:00
index introduced a config option to disable creating indexes if they don't already exist 2014-07-30 14:29:26 -04:00
samples/beer-sample added support for stored fields and highlighting results 2014-06-26 11:43:13 -04:00
search major refactor, apologies for the large commit 2014-07-30 12:30:38 -04:00
utils/bleve_dump introduced a config option to disable creating indexes if they don't already exist 2014-07-30 14:29:26 -04:00
.gitignore major refactor, apologies for the large commit 2014-07-30 12:30:38 -04:00
LICENSE adding license file 2014-04-17 17:03:15 -04:00
README.md upaated README 2014-07-31 10:58:20 -04:00
config.go improved stop word support and related config 2014-07-30 19:29:52 -04:00
error.go major refactor, apologies for the large commit 2014-07-30 12:30:38 -04:00
genparser.sh major refactor, apologies for the large commit 2014-07-30 12:30:38 -04:00
index.go introduced a config option to disable creating indexes if they don't already exist 2014-07-30 14:29:26 -04:00
index_impl.go introduced a config option to disable creating indexes if they don't already exist 2014-07-30 14:29:26 -04:00
index_test.go major refactor, apologies for the large commit 2014-07-30 12:30:38 -04:00
mapping_document.go introduced a config option to disable creating indexes if they don't already exist 2014-07-30 14:29:26 -04:00
mapping_field.go major refactor, apologies for the large commit 2014-07-30 12:30:38 -04:00
mapping_index.go introduced a config option to disable creating indexes if they don't already exist 2014-07-30 14:29:26 -04:00
mapping_test.go major refactor, apologies for the large commit 2014-07-30 12:30:38 -04:00
query.go major refactor, apologies for the large commit 2014-07-30 12:30:38 -04:00
query_boolean.go major refactor, apologies for the large commit 2014-07-30 12:30:38 -04:00
query_conjunction.go major refactor, apologies for the large commit 2014-07-30 12:30:38 -04:00
query_disjunction.go major refactor, apologies for the large commit 2014-07-30 12:30:38 -04:00
query_match.go introduced a config option to disable creating indexes if they don't already exist 2014-07-30 14:29:26 -04:00
query_match_all.go major refactor, apologies for the large commit 2014-07-30 12:30:38 -04:00
query_match_none.go major refactor, apologies for the large commit 2014-07-30 12:30:38 -04:00
query_match_phrase.go introduced a config option to disable creating indexes if they don't already exist 2014-07-30 14:29:26 -04:00
query_phrase.go major refactor, apologies for the large commit 2014-07-30 12:30:38 -04:00
query_syntax.go major refactor, apologies for the large commit 2014-07-30 12:30:38 -04:00
query_syntax.nex major refactor, apologies for the large commit 2014-07-30 12:30:38 -04:00
query_syntax.nn.go major refactor, apologies for the large commit 2014-07-30 12:30:38 -04:00
query_syntax.y major refactor, apologies for the large commit 2014-07-30 12:30:38 -04:00
query_syntax_parser.go major refactor, apologies for the large commit 2014-07-30 12:30:38 -04:00
query_term.go major refactor, apologies for the large commit 2014-07-30 12:30:38 -04:00
reflect.go major refactor, apologies for the large commit 2014-07-30 12:30:38 -04:00
search.go upaated README 2014-07-31 10:58:20 -04:00
y.go major refactor, apologies for the large commit 2014-07-30 12:30:38 -04:00

README.md

bleve bleve

modern text indexing in go

Features

  • Index any go data structure (including JSON)
  • Intelligent defaults backed up by powerful configuration
  • Supported field types:
    • Text
  • Supported query types:
    • Term, Phrase, Match, Match Phrase
    • Conjunction, Disjunction, Boolean
    • Simple query syntax for human entry
  • Search result match highlighting

Indexing

	message := struct{
		From: "marty.schoch@gmail.com",
		Body: "bleve indexing is easy",
	}

	mapping := bleve.NewIndexMapping()
	index, _ := bleve.Open("example.bleve", mapping)
	index.IndexId(message)

Querying

	mapping := bleve.NewIndexMapping()
	index, _ := bleve.Open("example.bleve", mapping)
	query := bleve.NewSyntaxQuery("bleve")
	searchRequest := bleve.NewSearchRequest(query)
	searchResult, _ := index.Search(searchRequest)

Status

Build Status Coverage Status