0
0
bleve/search
Marty Schoch 0eba2a3f0c reduce garbage created while processing facets
previously we parsed/returned large sections of the documents
back index row in order to compute facet information.  this
would require parsing the protobuf of the entire back index row.
unfortunately this creates considerable garbage.

this new version introduces a visitor/callback approach to
working with data inside the back index row.  the benefit
of this approach is that we can let the higher-level code
see values, prior to any copies of data being made or
intermediate garbage being created.  implementations of
the callback must copy any value which they would like to
retain beyond the callback.

NOTE: this approach is duplicates code from the
automatically generated protobuf code

NOTE: this approach assumes that the "field" field be serialized
before the "terms" field.  This is guaranteed by our currently
generated protobuf encoder, and is recommended by the protobuf
spec.  But, decoders SHOULD support them occuring in any order,
which we do not.
2017-03-02 17:00:46 -05:00
..
collector reduce garbage created while processing facets 2017-03-02 17:00:46 -05:00
facet reduce garbage created while processing facets 2017-03-02 17:00:46 -05:00
highlight remove use of float64 to represent int things 2017-02-09 20:15:59 -05:00
query improve error checking when parsing numbers 2017-02-24 16:30:09 -05:00
scorer remove use of float64 to represent int things 2017-02-09 20:15:59 -05:00
searcher add additional parens to clarify logic 2017-02-10 20:22:32 -05:00
collector.go nicer formatting of license header 2016-10-02 10:13:14 -04:00
explanation.go nicer formatting of license header 2016-10-02 10:13:14 -04:00
facets_builder_test.go numeric range facet merging compare range values not pointers 2016-11-03 15:48:46 -04:00
facets_builder.go reduce garbage created while processing facets 2017-03-02 17:00:46 -05:00
levenshtein_test.go removed extra ptr indirection from LevenshteinDistance 2016-10-11 08:49:10 -07:00
levenshtein.go removed extra ptr indirection from LevenshteinDistance 2016-10-11 08:49:10 -07:00
pool_test.go fix misspellings 2016-10-02 12:11:15 -04:00
pool.go DocumentMatchPool hits allocator outside of loop 2017-02-06 14:26:59 -08:00
search.go reduce garbage created while processing facets 2017-03-02 17:00:46 -05:00
sort.go reduce garbage created while processing facets 2017-03-02 17:00:46 -05:00
util_test.go nicer formatting of license header 2016-10-02 10:13:14 -04:00
util.go nicer formatting of license header 2016-10-02 10:13:14 -04:00