0
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 1dcd06e412 add ability to define custom analysis as part of index mapping
now, as part of your index mapping you can create custom
analysis components.  these custome analysis components
are serialized as part of the mapping, and reused
as you would expect on subsequent accesses.
2014-09-01 13:55:23 -04:00
analysis add ability to define custom analysis as part of index mapping 2014-09-01 13:55:23 -04:00
docs upaated README 2014-07-31 10:58:20 -04:00
document rename imports from couchbaselabs to blevesearch 2014-08-28 15:38:57 -04:00
examples add ability to define custom analysis as part of index mapping 2014-09-01 13:55:23 -04:00
http rename imports from couchbaselabs to blevesearch 2014-08-28 15:38:57 -04:00
index rename imports from couchbaselabs to blevesearch 2014-08-28 15:38:57 -04:00
numeric_util fix go vet 2014-08-02 19:17:53 -04:00
registry add ability to define custom analysis as part of index mapping 2014-09-01 13:55:23 -04:00
samples/beer-sample added support for stored fields and highlighting results 2014-06-26 11:43:13 -04:00
search major refactor of search package 2014-09-01 11:15:38 -04:00
utils rename imports from couchbaselabs to blevesearch 2014-08-28 15:38:57 -04:00
.gitignore compile libcld2 statically 2014-08-24 03:44:57 +10:00
config_cld2.go rename imports from couchbaselabs to blevesearch 2014-08-28 15:38:57 -04:00
config_icu.go rename imports from couchbaselabs to blevesearch 2014-08-28 15:38:57 -04:00
config_leveldb.go rename imports from couchbaselabs to blevesearch 2014-08-28 15:38:57 -04:00
config_stemmer.go rename imports from couchbaselabs to blevesearch 2014-08-28 15:38:57 -04:00
config.go add ability to define custom analysis as part of index mapping 2014-09-01 13:55:23 -04:00
doc.go added package level godoc 2014-08-29 14:28:38 -04:00
error.go cleanup spacing between license and package 2014-08-29 14:18:36 -04:00
genparser.sh change to make generated lexer private 2014-08-29 23:31:40 -04:00
index_impl.go major refactor of search package 2014-09-01 11:15:38 -04:00
index_meta_test.go renamed SyntaxQuery QueryStringQuery 2014-08-29 15:19:02 -04:00
index_meta.go renamed SyntaxQuery QueryStringQuery 2014-08-29 15:19:02 -04:00
index_test.go made config private and fixed broken test 2014-08-29 15:32:36 -04:00
index.go improve go docs at the top level 2014-08-31 10:55:22 -04:00
LICENSE adding license file 2014-04-17 17:03:15 -04:00
mapping_document.go improve go docs at the top level 2014-08-31 10:55:22 -04:00
mapping_field.go improve go docs at the top level 2014-08-31 10:55:22 -04:00
mapping_index.go add ability to define custom analysis as part of index mapping 2014-09-01 13:55:23 -04:00
mapping_test.go cleanup spacing between license and package 2014-08-29 14:18:36 -04:00
query_boolean.go major refactor of search package 2014-09-01 11:15:38 -04:00
query_conjunction.go major refactor of search package 2014-09-01 11:15:38 -04:00
query_date_range.go major refactor of search package 2014-09-01 11:15:38 -04:00
query_disjunction.go major refactor of search package 2014-09-01 11:15:38 -04:00
query_match_all.go major refactor of search package 2014-09-01 11:15:38 -04:00
query_match_none.go major refactor of search package 2014-09-01 11:15:38 -04:00
query_match_phrase.go improve go docs at the top level 2014-08-31 10:55:22 -04:00
query_match.go improve go docs at the top level 2014-08-31 10:55:22 -04:00
query_numeric_range.go major refactor of search package 2014-09-01 11:15:38 -04:00
query_phrase.go major refactor of search package 2014-09-01 11:15:38 -04:00
query_prefix.go major refactor of search package 2014-09-01 11:15:38 -04:00
query_string_parser_test.go made parse query string private 2014-08-29 19:31:09 -04:00
query_string_parser.go change to make generated lexer private 2014-08-29 23:31:40 -04:00
query_string.go improve go docs at the top level 2014-08-31 10:55:22 -04:00
query_string.nex renamed SyntaxQuery QueryStringQuery 2014-08-29 15:19:02 -04:00
query_string.nn.go change to make generated lexer private 2014-08-29 23:31:40 -04:00
query_string.y refactor to make all the query classes private 2014-08-29 18:14:12 -04:00
query_term.go major refactor of search package 2014-09-01 11:15:38 -04:00
query_test.go refactor to make all the query classes private 2014-08-29 18:14:12 -04:00
query.go improve go docs at the top level 2014-08-31 10:55:22 -04:00
README.md mention of license in README 2014-08-29 07:34:15 -07:00
reflect.go made more constants private 2014-08-29 14:43:06 -04:00
search.go improve go docs at the top level 2014-08-31 10:55:22 -04:00
y.go refactor to make all the query classes private 2014-08-29 18:14:12 -04:00

bleve bleve

modern text indexing in go - blevesearch.com

Features

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

Discussion

Discuss usage and development of bleve in the google group.

Indexing

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

	mapping := bleve.NewIndexMapping()
	index, _ := bleve.New("example.bleve", mapping)
	index.Index(message)

Querying

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

License

Apache License Version 2.0

Status

Build Status Coverage Status