dispatch/vendor/github.com/blevesearch/bleve
2016-03-01 01:51:26 +01:00
..
analysis Switch from Godep to go vendoring 2016-03-01 01:51:26 +01:00
docs Switch from Godep to go vendoring 2016-03-01 01:51:26 +01:00
document Switch from Godep to go vendoring 2016-03-01 01:51:26 +01:00
http Switch from Godep to go vendoring 2016-03-01 01:51:26 +01:00
index Switch from Godep to go vendoring 2016-03-01 01:51:26 +01:00
numeric_util Switch from Godep to go vendoring 2016-03-01 01:51:26 +01:00
registry Switch from Godep to go vendoring 2016-03-01 01:51:26 +01:00
search Switch from Godep to go vendoring 2016-03-01 01:51:26 +01:00
test Switch from Godep to go vendoring 2016-03-01 01:51:26 +01:00
utils Switch from Godep to go vendoring 2016-03-01 01:51:26 +01:00
config_cld2.go Switch from Godep to go vendoring 2016-03-01 01:51:26 +01:00
config_cznicb.go Switch from Godep to go vendoring 2016-03-01 01:51:26 +01:00
config_forestdb.go Switch from Godep to go vendoring 2016-03-01 01:51:26 +01:00
config_icu.go Switch from Godep to go vendoring 2016-03-01 01:51:26 +01:00
config_kagome.go Switch from Godep to go vendoring 2016-03-01 01:51:26 +01:00
config_leveldb.go Switch from Godep to go vendoring 2016-03-01 01:51:26 +01:00
config_metrics.go Switch from Godep to go vendoring 2016-03-01 01:51:26 +01:00
config_rocksdb.go Switch from Godep to go vendoring 2016-03-01 01:51:26 +01:00
config_stemmer.go Switch from Godep to go vendoring 2016-03-01 01:51:26 +01:00
config.go Switch from Godep to go vendoring 2016-03-01 01:51:26 +01:00
doc.go Switch from Godep to go vendoring 2016-03-01 01:51:26 +01:00
error.go Switch from Godep to go vendoring 2016-03-01 01:51:26 +01:00
examples_test.go Switch from Godep to go vendoring 2016-03-01 01:51:26 +01:00
index_alias_impl_test.go Switch from Godep to go vendoring 2016-03-01 01:51:26 +01:00
index_alias_impl.go Switch from Godep to go vendoring 2016-03-01 01:51:26 +01:00
index_alias.go Switch from Godep to go vendoring 2016-03-01 01:51:26 +01:00
index_impl.go Switch from Godep to go vendoring 2016-03-01 01:51:26 +01:00
index_meta_test.go Switch from Godep to go vendoring 2016-03-01 01:51:26 +01:00
index_meta.go Switch from Godep to go vendoring 2016-03-01 01:51:26 +01:00
index_stats.go Switch from Godep to go vendoring 2016-03-01 01:51:26 +01:00
index_test.go Switch from Godep to go vendoring 2016-03-01 01:51:26 +01:00
index.go Switch from Godep to go vendoring 2016-03-01 01:51:26 +01:00
LICENSE Switch from Godep to go vendoring 2016-03-01 01:51:26 +01:00
mapping_document.go Switch from Godep to go vendoring 2016-03-01 01:51:26 +01:00
mapping_field.go Switch from Godep to go vendoring 2016-03-01 01:51:26 +01:00
mapping_index.go Switch from Godep to go vendoring 2016-03-01 01:51:26 +01:00
mapping_test.go Switch from Godep to go vendoring 2016-03-01 01:51:26 +01:00
query_boolean.go Switch from Godep to go vendoring 2016-03-01 01:51:26 +01:00
query_conjunction.go Switch from Godep to go vendoring 2016-03-01 01:51:26 +01:00
query_date_range.go Switch from Godep to go vendoring 2016-03-01 01:51:26 +01:00
query_disjunction.go Switch from Godep to go vendoring 2016-03-01 01:51:26 +01:00
query_fuzzy.go Switch from Godep to go vendoring 2016-03-01 01:51:26 +01:00
query_match_all.go Switch from Godep to go vendoring 2016-03-01 01:51:26 +01:00
query_match_none.go Switch from Godep to go vendoring 2016-03-01 01:51:26 +01:00
query_match_phrase.go Switch from Godep to go vendoring 2016-03-01 01:51:26 +01:00
query_match.go Switch from Godep to go vendoring 2016-03-01 01:51:26 +01:00
query_numeric_range.go Switch from Godep to go vendoring 2016-03-01 01:51:26 +01:00
query_phrase.go Switch from Godep to go vendoring 2016-03-01 01:51:26 +01:00
query_prefix.go Switch from Godep to go vendoring 2016-03-01 01:51:26 +01:00
query_regexp.go Switch from Godep to go vendoring 2016-03-01 01:51:26 +01:00
query_string_parser_test.go Switch from Godep to go vendoring 2016-03-01 01:51:26 +01:00
query_string_parser.go Switch from Godep to go vendoring 2016-03-01 01:51:26 +01:00
query_string.go Switch from Godep to go vendoring 2016-03-01 01:51:26 +01:00
query_string.nex Switch from Godep to go vendoring 2016-03-01 01:51:26 +01:00
query_string.nn.go Switch from Godep to go vendoring 2016-03-01 01:51:26 +01:00
query_string.y Switch from Godep to go vendoring 2016-03-01 01:51:26 +01:00
query_string.y.go Switch from Godep to go vendoring 2016-03-01 01:51:26 +01:00
query_term.go Switch from Godep to go vendoring 2016-03-01 01:51:26 +01:00
query_test.go Switch from Godep to go vendoring 2016-03-01 01:51:26 +01:00
query_wildcard.go Switch from Godep to go vendoring 2016-03-01 01:51:26 +01:00
query.go Switch from Godep to go vendoring 2016-03-01 01:51:26 +01:00
README.md Switch from Godep to go vendoring 2016-03-01 01:51:26 +01:00
reflect.go Switch from Godep to go vendoring 2016-03-01 01:51:26 +01:00
search_test.go Switch from Godep to go vendoring 2016-03-01 01:51:26 +01:00
search.go Switch from Godep to go vendoring 2016-03-01 01:51:26 +01:00

bleve bleve

Build Status Coverage Status GoDoc Join the chat at https://gitter.im/blevesearch/bleve

modern text indexing in go - blevesearch.com

Try out bleve live by searching our wiki.

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, Prefix
    • Conjunction, Disjunction, Boolean
    • Numeric Range, Date Range
    • Simple query syntax for human entry
  • tf-idf Scoring
  • Search result match highlighting
  • Supports Aggregating Facets:
    • Terms Facet
    • Numeric Range Facet
    • Date Range Facet

Discussion

Discuss usage and development of bleve in the google group.

Indexing

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

	mapping := bleve.NewIndexMapping()
	index, err := bleve.New("example.bleve", mapping)
	if err != nil {
		panic(err)
	}
	index.Index(message.Id, message)

Querying

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

License

Apache License Version 2.0