Skip to content

ekanite/bleve

This branch is 2 commits ahead of, 1418 commits behind blevesearch/bleve:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

b8dcd03 · Dec 15, 2017
Jun 22, 2017
May 18, 2017
Mar 30, 2017
Oct 2, 2016
Aug 24, 2017
Apr 27, 2017
Oct 2, 2016
Aug 24, 2017
Dec 13, 2017
Mar 25, 2017
Oct 25, 2016
Sep 1, 2017
Apr 1, 2017
Mar 7, 2017
Sep 29, 2016
Sep 12, 2017
Jun 26, 2016
Apr 17, 2014
Feb 14, 2017
Oct 2, 2016
Oct 2, 2016
Oct 2, 2016
Oct 2, 2016
Oct 2, 2016
Oct 2, 2016
May 19, 2017
Oct 2, 2016
Apr 6, 2017
Nov 3, 2016
Apr 11, 2017
Oct 2, 2016
Oct 2, 2016
Oct 2, 2016
Apr 11, 2017
Mar 25, 2017
Apr 1, 2017
Jun 12, 2017
Feb 2, 2017

Repository files navigation

bleve bleve

Build Status Coverage Status GoDoc Join the chat at https://gitter.im/blevesearch/bleve codebeat Go Report Card Sourcegraph License

modern text indexing in go - blevesearch.com

Try out bleve live by searching the bleve website.

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

About

A modern text indexing library for go

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 99.6%
  • Other 0.4%