Questions tagged [bleve]

  • 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

    blevesearch.com

17 questions
5
votes
1 answer

How to use golang bleve search results?

I am new to Go and Bleve (sorry if I'm asking trivial things…). This search engine seems to be really nice, but I am getting stuck when it comes to deal with my search results. Let's say we have a struct: type Person struct { Name string…
user650108
  • 1,009
  • 1
  • 9
  • 18
4
votes
1 answer

blevesearch how to paginate results?

I'm trying to integrate blevesearch in my app. How am I supposed to implement pagination? I can't find any param to indicate the page number, per-page limit or cursor in the docs.
themihai
  • 7,903
  • 11
  • 39
  • 61
3
votes
0 answers

BleveSearch - How to implement global search

I have been using Bleve Search (Go Based search) for my application and I love the way it works, but I am stuck as how to implement global search using bleve. Here is my use case: Create an Index depending upon the…
DNadar
  • 31
  • 2
3
votes
1 answer

Index XML with the Go bleve text indexing library

How can I use the bleve text-indexing library, https://github.com/blevesearch/bleve, to index XML content? I thought about using code like this XML parser in Go: https://github.com/dps/go-xml-parse, but then how do I pass what is parsed to Bleve to…
wordSmith
  • 2,993
  • 8
  • 29
  • 50
2
votes
0 answers

Bleve Search: How do I setup the index on for my struct?

I have this struct in order to index an rdf graph. type Statement struct { StatementHash string `json:"statementHash"` SubjectType string `json:"subjType"` Subject string `json:"subject"` Predicate string…
user2302244
  • 843
  • 2
  • 11
  • 27
2
votes
0 answers

How to increase performance in FTS?

I need an advice to increase my search performance. Write now I’m developing a backend service with node.js and couchbase. My index definition is as following: {"name": "product_search", "type": "fulltext-index", "params": { "doc_config": { …
2
votes
2 answers

Getting started with Bleve using BoltDB

I am trying to wrap my head around Bleve and I understand everything that is going on in the tutorials, videos and documentation. I however get very confused when I am using it on BoltDB and don't know how to start. Say I have an existing BoltDB…
Mardwan
  • 139
  • 3
  • 14
1
vote
1 answer

How to increase (or access) Go bleve search engine results?

When I try to make a search query with bleve I always get 10 or less results. How can I increase this limit or make a search between all the data? Here is code example, where I expect to get 35 results, but getting 10 (ps calc.Rand() function is…
dancheg
  • 549
  • 1
  • 4
  • 14
1
vote
1 answer

How to recover the struct from a Document in Golang package, Bleve

It would be most convenient if I was able to get back the indexed struct from my Bleve SearchResults. This is what I know and what I have: I have SearchResults.Hits which I can iterate over, and get the Document with index.Document(hit.ID). With the…
Derek
  • 11
  • 1
1
vote
1 answer

Custom character filter in analyzer not working

i am using regexp character filter in couchbase for my analyzer. desirable result following phuong 1 -> phuong_1 phuong 12 -> phuong_12 Configuration character filter in Couchbase Web Console following Regular expression :…
nhtrung
  • 55
  • 7
0
votes
1 answer

Unable to install bleve, cannot find package "github.com/blevesearch/zap/v11" in any of

I cannot install bleve as it complains about zap: go get github.com/blevesearch/bleve/... package github.com/blevesearch/zap/v11: cannot find package "github.com/blevesearch/zap/v11" in any of: /usr/local/go/src/github.com/blevesearch/zap/v11…
Walter
  • 1,290
  • 2
  • 21
  • 46
0
votes
0 answers

fuzzy search in bleve

I have come up below code but not to sure how to move forward. In short I am trying get result for such case, When searched "ome" i need "bbb something aaa" to be found. Have tried to add tq.SetFuzziness(5) but this causes ap to crash without any…
serkan
  • 6,885
  • 4
  • 41
  • 49
0
votes
1 answer

Bleve Command Line Examples

Are there any examples detailing the use of the Bleve CLI? The functions and arguments are documented on the website, but in practice, it's hard to know what the method signatures and required fields are. After some Googling, I found the following…
Charlie
  • 4,197
  • 5
  • 42
  • 59
0
votes
1 answer

How to escape query params?

I'm using bleve (with a http server in front) to index and query documents. I need to execute a query as below which should query documents matching channelID value. How can escape query fields(in this case the value of channelID) in the query…
themihai
  • 7,903
  • 11
  • 39
  • 61
0
votes
1 answer

How to get exact phrase match using BleveSearch?

I am searching for synonyms for a particular phrase from a dataset. I have 2 JSON files in which data is stored consisting of synonyms for yes and no . If I query for "not interested" it gives both yes and no phrases/synonyms as result, the…
Gurjit Singh
  • 31
  • 1
  • 4
1
2