0
0
bleve/search
Marty Schoch 0b2380d9bf introduce ability for searches to timeout or be cancelled
our implementation uses: golang.org/x/net/context

New method SearchInContext() allows the user to run a search
in the provided context.  If that context is cancelled or
exceeds its deadline Bleve will attempt to stop and return
as soon as possible.  This is a *best effort* attempt at this
time and may *not* be in a timely manner.  If the caller must
return very near the timeout, the call should also be wrapped
in a goroutine.

The IndexAlias implementation is affected in a slightly more
complex way.  In order to return partial results when a timeout
occurs on some indexes, the timeout is strictly enforced, and
at the moment this does introduce an additional goroutine.

The Bleve implementation honoring the context is currently
very course-grained.  Specifically we check the Done() channel
between each DocumentMatch produced during the search.  In the
future we will propogate the context deeper into the internals
of Bleve, and this will allow finer-grained timeout behavior.
2016-03-02 17:30:21 -05:00
..
collectors introduce ability for searches to timeout or be cancelled 2016-03-02 17:30:21 -05:00
facets Merge pull request #134 from Shugyousha/numfacet 2015-03-06 14:50:30 -05:00
highlight fix highlighting bug with array values 2016-02-24 14:06:47 -05:00
scorers update to correctly work with composite fields 2015-07-31 11:16:11 -04:00
searchers prefix,regexp, and fuzzy searchers failed to close fieldDict 2016-02-20 15:41:12 -05:00
collector.go introduce ability for searches to timeout or be cancelled 2016-03-02 17:30:21 -05:00
explanation.go Fix typos in comments and strings 2014-12-18 18:43:12 +01:00
facets_builder_test.go fix date facet merging for searches on index aliases 2016-02-23 15:33:07 -05:00
facets_builder.go fix date facet merging for searches on index aliases 2016-02-23 15:33:07 -05:00
levenshtein_test.go moved levenshtein code outside of fuzzy searcher 2014-12-12 13:23:06 -05:00
levenshtein.go Fix some typos 2016-01-15 05:46:27 +07:00
search.go search result hits now have a field with the name of the index 2015-12-08 13:55:04 -05:00
util_test.go add newline between license and package 2014-09-02 10:54:50 -04:00
util.go Fix typos in comments and strings 2014-12-18 18:43:12 +01:00