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 198ca1ad4d major refactor of kvstore/index internals, see below
In the index/store package
introduce KVReader
  creates snapshot
  all read operations consistent from this snapshot
  must close to release

introduce KVWriter
  only one writer active
  access to all operations
  allows for consisten read-modify-write
  must close to release

introduce AssociativeMerge operation on batch
  allows efficient read-modify-write
  for associative operations
  used to consolidate updates to the term summary rows
  saves 1 set and 1 get op per shared instance of term in field

In the index package
introduced an IndexReader
  exposes a consisten snapshot of the index for searching

At top level
  All searches now operate on a consisten snapshot of the index
2014-09-12 17:21:35 -04:00
analysis introducing cjk_bigram filter and cjk analyzer 2014-09-11 10:39:05 -04:00
docs upaated README 2014-07-31 10:58:20 -04:00
document continued refactoring of the mapping code 2014-09-03 13:02:10 -04:00
http added json struct tag to http doc count response 2014-09-05 12:16:26 -04:00
index major refactor of kvstore/index internals, see below 2014-09-12 17:21:35 -04:00
numeric_util more golint cleanups 2014-09-03 18:47:02 -04:00
registry fix compilation 2014-09-07 14:13:32 -04:00
search major refactor of kvstore/index internals, see below 2014-09-12 17:21:35 -04:00
utils refactor registry package and bleve_registry utility 2014-09-07 14:07:42 -04:00
.gitignore renamed/moved examples/bleve_index_json to utils/bleve_index 2014-09-01 16:14:29 -04: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 include cjk analyzer in default config 2014-09-11 10:44:14 -04:00
doc.go apply doc fix patch from rakoo 2014-09-07 09:09:47 -04:00
error.go fix issues identified by go lint 2014-09-02 17:40:46 -04:00
genparser.sh change to make generated lexer private 2014-08-29 23:31:40 -04:00
index_impl.go major refactor of kvstore/index internals, see below 2014-09-12 17:21:35 -04:00
index_meta_test.go renamed SyntaxQuery QueryStringQuery 2014-08-29 15:19:02 -04:00
index_meta.go fix issues identified by go lint 2014-09-02 17:40:46 -04:00
index_test.go further refactoring of index mappings 2014-09-03 16:40:10 -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 converted ALL_CAPS constants to CamelCase 2014-09-03 17:48:40 -04:00
mapping_field.go further refactoring of index mappings 2014-09-03 16:40:10 -04:00
mapping_index.go changed many components to not have defaults 2014-09-09 18:15:14 -04:00
mapping_test.go further refactoring of index mappings 2014-09-03 16:40:10 -04:00
query_boolean.go major refactor of kvstore/index internals, see below 2014-09-12 17:21:35 -04:00
query_conjunction.go major refactor of kvstore/index internals, see below 2014-09-12 17:21:35 -04:00
query_date_range.go major refactor of kvstore/index internals, see below 2014-09-12 17:21:35 -04:00
query_disjunction.go major refactor of kvstore/index internals, see below 2014-09-12 17:21:35 -04:00
query_match_all.go major refactor of kvstore/index internals, see below 2014-09-12 17:21:35 -04:00
query_match_none.go major refactor of kvstore/index internals, see below 2014-09-12 17:21:35 -04:00
query_match_phrase.go major refactor of kvstore/index internals, see below 2014-09-12 17:21:35 -04:00
query_match.go major refactor of kvstore/index internals, see below 2014-09-12 17:21:35 -04:00
query_numeric_range.go major refactor of kvstore/index internals, see below 2014-09-12 17:21:35 -04:00
query_phrase.go major refactor of kvstore/index internals, see below 2014-09-12 17:21:35 -04:00
query_prefix.go major refactor of kvstore/index internals, see below 2014-09-12 17:21:35 -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 major refactor of kvstore/index internals, see below 2014-09-12 17:21:35 -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 kvstore/index internals, see below 2014-09-12 17:21:35 -04:00
query_test.go changed error constants to camel case 2014-09-02 14:14:05 -04:00
query.go major refactor of kvstore/index internals, see below 2014-09-12 17:21:35 -04:00
README.md apply doc fix patch from rakoo 2014-09-07 09:09:47 -04:00
reflect.go change another variable capitalization 2014-09-02 14:22:21 -04:00
search.go added convenience method to add field to highlight request 2014-09-04 10:13:13 -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

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:   "example",
		From: "marty.schoch@gmail.com",
		Body: "bleve indexing is easy",
	}

	mapping := bleve.NewIndexMapping()
	index, _ := bleve.New("example.bleve", mapping)
	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

Status

Build Status Coverage Status