0
0
A modern text indexing library for go. (this is a mirror of the github repository) http://www.blevesearch.com/
Go to file
2014-08-15 16:50:34 -04:00
analysis added turkish analyzer test 2014-08-14 16:42:41 -04:00
docs upaated README 2014-07-31 10:58:20 -04:00
document fix storing/retrieving numeric and date fields 2014-08-06 13:52:20 -04:00
examples added integration tests for the beer-search example 2014-08-14 18:39:50 -04:00
http refactor dump methods 2014-08-15 13:12:55 -04:00
index refactor dump methods 2014-08-15 13:12:55 -04:00
numeric_util fix go vet 2014-08-02 19:17:53 -04:00
registry major refactor of analysis files, now wired up to registry 2014-08-13 21:14:47 -04:00
samples/beer-sample added support for stored fields and highlighting results 2014-06-26 11:43:13 -04:00
search added support for returning facet results with requests 2014-08-11 11:03:29 -04:00
utils refactor dump methods 2014-08-15 13:12:55 -04:00
.gitignore adding beer-sample to examples 2014-07-31 11:51:27 -04:00
byte_array_converter.go further streamlined the API 2014-08-11 12:47:29 -04:00
config.go major refactor of analysis files, now wired up to registry 2014-08-13 21:14:47 -04:00
error.go added tests to top level 2014-08-15 15:49:35 -04:00
genparser.sh major refactor, apologies for the large commit 2014-07-30 12:30:38 -04:00
index_impl.go refactor dump methods 2014-08-15 13:12:55 -04:00
index_test.go improving test coverage 2014-08-15 16:50:34 -04:00
index.go refactor dump methods 2014-08-15 13:12:55 -04:00
LICENSE adding license file 2014-04-17 17:03:15 -04:00
mapping_document.go major refactor of analysis files, now wired up to registry 2014-08-13 21:14:47 -04:00
mapping_field.go fix issues identified by go vet 2014-08-03 17:21:41 -04:00
mapping_index.go improving test coverage 2014-08-15 16:50:34 -04:00
mapping_test.go improving test coverage 2014-08-15 16:50:34 -04:00
query_boolean.go added tests to top level 2014-08-15 15:49:35 -04:00
query_conjunction.go added tests to top level 2014-08-15 15:49:35 -04:00
query_date_range.go major refactor of analysis files, now wired up to registry 2014-08-13 21:14:47 -04:00
query_disjunction.go added tests to top level 2014-08-15 15:49:35 -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 major refactor of analysis files, now wired up to registry 2014-08-13 21:14:47 -04:00
query_match.go major refactor of analysis files, now wired up to registry 2014-08-13 21:14:47 -04:00
query_numeric_range.go added tests to top level 2014-08-15 15:49:35 -04:00
query_phrase.go added tests to top level 2014-08-15 15:49:35 -04:00
query_prefix.go major refactor of analysis files, now wired up to registry 2014-08-13 21:14:47 -04:00
query_syntax_parser_test.go added support for boost with ^boostval in syntax query 2014-08-06 19:36:23 -04:00
query_syntax_parser.go added support for boost with ^boostval in syntax query 2014-08-06 19:36:23 -04:00
query_syntax.go added support for boost with ^boostval in syntax query 2014-08-06 19:36:23 -04:00
query_syntax.nex major refactor, apologies for the large commit 2014-07-30 12:30:38 -04:00
query_syntax.nn.go added support for boost with ^boostval in syntax query 2014-08-06 19:36:23 -04:00
query_syntax.y added support for boost with ^boostval in syntax query 2014-08-06 19:36:23 -04:00
query_term.go major refactor of analysis files, now wired up to registry 2014-08-13 21:14:47 -04:00
query_test.go added tests to top level 2014-08-15 15:49:35 -04:00
query.go added tests to top level 2014-08-15 15:49:35 -04:00
README.md upaated README 2014-07-31 10:58:20 -04:00
reflect.go major refactor, apologies for the large commit 2014-07-30 12:30:38 -04:00
search.go major refactor of analysis files, now wired up to registry 2014-08-13 21:14:47 -04:00
y.go added support for boost with ^boostval in syntax query 2014-08-06 19:36:23 -04:00

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