Skip to content

Instantly share code, notes, and snippets.

@dtynn
Created May 14, 2015 06:33
Show Gist options
  • Save dtynn/7d7fd0003ec6c43ce952 to your computer and use it in GitHub Desktop.
Save dtynn/7d7fd0003ec6c43ce952 to your computer and use it in GitHub Desktop.
bleve highlight panic
panic: runtime error: slice bounds out of range
goroutine 1 [running]:
github.com/blevesearch/bleve/search/highlight/fragmenters/simple.(*Fragmenter).Fragment(0x2088f6f40, 0x208972299, 0x3, 0x3, 0x2089200a0, 0x1, 0x1, 0x0, 0x0, 0x0)
/Users/dtynn/work/gopj/src/github.com/blevesearch/bleve/search/highlight/fragmenters/simple/fragmenter_simple.go:57 +0x927
github.com/blevesearch/bleve/search/highlight/highlighters/simple.(*Highlighter).BestFragmentsInField(0x208927290, 0x20891e640, 0x20891e7c0, 0x208972328, 0x4, 0x1, 0x0, 0x0, 0x0)
/Users/dtynn/work/gopj/src/github.com/blevesearch/bleve/search/highlight/highlighters/simple/highlighter_simple.go:84 +0x3c0
github.com/blevesearch/bleve.(*indexImpl).Search(0x2088fc230, 0x208922230, 0x0, 0x0, 0x0)
/Users/dtynn/work/gopj/src/github.com/blevesearch/bleve/index_impl.go:447 +0x13a0
main.main()
/Users/dtynn/work/gopj/src/github.com/tukdesk/tuksearch/_test/highlight/main.go:39 +0x5bd
goroutine 5 [select]:
github.com/blevesearch/bleve/index/upside_down.AnalysisWorker(0x208924120, 0x208924180)
/Users/dtynn/work/gopj/src/github.com/blevesearch/bleve/index/upside_down/analysis_pool.go:54 +0x19d3
created by github.com/blevesearch/bleve/index/upside_down.NewAnalysisQueue
/Users/dtynn/work/gopj/src/github.com/blevesearch/bleve/index/upside_down/analysis_pool.go:46 +0xd5
goroutine 6 [select]:
github.com/blevesearch/bleve/index/upside_down.AnalysisWorker(0x208924120, 0x208924180)
/Users/dtynn/work/gopj/src/github.com/blevesearch/bleve/index/upside_down/analysis_pool.go:54 +0x19d3
created by github.com/blevesearch/bleve/index/upside_down.NewAnalysisQueue
/Users/dtynn/work/gopj/src/github.com/blevesearch/bleve/index/upside_down/analysis_pool.go:46 +0xd5
goroutine 7 [select]:
github.com/blevesearch/bleve/index/upside_down.AnalysisWorker(0x208924120, 0x208924180)
/Users/dtynn/work/gopj/src/github.com/blevesearch/bleve/index/upside_down/analysis_pool.go:54 +0x19d3
created by github.com/blevesearch/bleve/index/upside_down.NewAnalysisQueue
/Users/dtynn/work/gopj/src/github.com/blevesearch/bleve/index/upside_down/analysis_pool.go:46 +0xd5
goroutine 8 [select]:
github.com/blevesearch/bleve/index/upside_down.AnalysisWorker(0x208924120, 0x208924180)
/Users/dtynn/work/gopj/src/github.com/blevesearch/bleve/index/upside_down/analysis_pool.go:54 +0x19d3
created by github.com/blevesearch/bleve/index/upside_down.NewAnalysisQueue
/Users/dtynn/work/gopj/src/github.com/blevesearch/bleve/index/upside_down/analysis_pool.go:46 +0xd5
exit status 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment