A modern text indexing library for go

Marty Schoch c526a38369 major refactor of analysis files, now wired up to registry 5 years ago
analysis c526a38369 major refactor of analysis files, now wired up to registry 5 years ago
docs 7a174d7d05 upaated README 5 years ago
document 41d4f67ee2 fix storing/retrieving numeric and date fields 5 years ago
examples c526a38369 major refactor of analysis files, now wired up to registry 5 years ago
http 4ae9eb895c added method to list fields in the index 5 years ago
index c526a38369 major refactor of analysis files, now wired up to registry 5 years ago
numeric_util 65b2faeaa2 fix go vet 5 years ago
registry c526a38369 major refactor of analysis files, now wired up to registry 5 years ago
samples 9bebbec267 added support for stored fields and highlighting results 5 years ago
search 7bbaa8ecd5 added support for returning facet results with requests 5 years ago
utils c526a38369 major refactor of analysis files, now wired up to registry 5 years ago
.gitignore c8918fe41a adding beer-sample to examples 5 years ago
LICENSE 6e7aa57b52 adding license file 5 years ago
README.md 7a174d7d05 upaated README 5 years ago
byte_array_converter.go 42895649de further streamlined the API 5 years ago
config.go c526a38369 major refactor of analysis files, now wired up to registry 5 years ago
error.go c526a38369 major refactor of analysis files, now wired up to registry 5 years ago
genparser.sh 2968d3538a major refactor, apologies for the large commit 5 years ago
index.go e5d4e6f1e4 refactored index layer to support batch operations 5 years ago
index_impl.go c526a38369 major refactor of analysis files, now wired up to registry 5 years ago
index_test.go 42895649de further streamlined the API 5 years ago
mapping_document.go c526a38369 major refactor of analysis files, now wired up to registry 5 years ago
mapping_field.go 1e5cc5c89f fix issues identified by go vet 5 years ago
mapping_index.go c526a38369 major refactor of analysis files, now wired up to registry 5 years ago
mapping_test.go 2968d3538a major refactor, apologies for the large commit 5 years ago
query.go 292af78b9e implemented prefix search 5 years ago
query_boolean.go 0441c6bef6 refactored names, removing Term from things that were more general 5 years ago
query_conjunction.go 0441c6bef6 refactored names, removing Term from things that were more general 5 years ago
query_date_range.go c526a38369 major refactor of analysis files, now wired up to registry 5 years ago
query_disjunction.go 0441c6bef6 refactored names, removing Term from things that were more general 5 years ago
query_match.go c526a38369 major refactor of analysis files, now wired up to registry 5 years ago
query_match_all.go 2968d3538a major refactor, apologies for the large commit 5 years ago
query_match_none.go 2968d3538a major refactor, apologies for the large commit 5 years ago
query_match_phrase.go c526a38369 major refactor of analysis files, now wired up to registry 5 years ago
query_numeric_range.go c526a38369 major refactor of analysis files, now wired up to registry 5 years ago
query_phrase.go 2968d3538a major refactor, apologies for the large commit 5 years ago
query_prefix.go c526a38369 major refactor of analysis files, now wired up to registry 5 years ago
query_syntax.go f69838d670 added support for boost with ^boostval in syntax query 5 years ago
query_syntax.nex 2968d3538a major refactor, apologies for the large commit 5 years ago
query_syntax.nn.go f69838d670 added support for boost with ^boostval in syntax query 5 years ago
query_syntax.y f69838d670 added support for boost with ^boostval in syntax query 5 years ago
query_syntax_parser.go f69838d670 added support for boost with ^boostval in syntax query 5 years ago
query_syntax_parser_test.go f69838d670 added support for boost with ^boostval in syntax query 5 years ago
query_term.go c526a38369 major refactor of analysis files, now wired up to registry 5 years ago
reflect.go 2968d3538a major refactor, apologies for the large commit 5 years ago
search.go c526a38369 major refactor of analysis files, now wired up to registry 5 years ago
y.go f69838d670 added support for boost with ^boostval in syntax query 5 years ago

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