A modern text indexing library for go. (this is a mirror of the github repository)
http://www.blevesearch.com/
2c0bf23fac
defined article word maps for french, italian, irish and catalan defined elision filters for these same languages updated analyers for french and italian to use this new filter irish and catalan still depend on other missing pieces closes #25 |
||
---|---|---|
analysis | ||
docs | ||
document | ||
examples | ||
http | ||
index | ||
numeric_util | ||
samples/beer-sample | ||
search | ||
utils/bleve_dump | ||
.gitignore | ||
config.go | ||
error.go | ||
genparser.sh | ||
index_impl.go | ||
index_test.go | ||
index.go | ||
LICENSE | ||
mapping_document.go | ||
mapping_field.go | ||
mapping_index.go | ||
mapping_test.go | ||
query_boolean.go | ||
query_conjunction.go | ||
query_date_range.go | ||
query_disjunction.go | ||
query_match_all.go | ||
query_match_none.go | ||
query_match_phrase.go | ||
query_match.go | ||
query_numeric_range.go | ||
query_phrase.go | ||
query_syntax_parser.go | ||
query_syntax.go | ||
query_syntax.nex | ||
query_syntax.nn.go | ||
query_syntax.y | ||
query_term.go | ||
query.go | ||
README.md | ||
reflect.go | ||
search.go | ||
y.go |
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)