0
0
bleve/index/upside_down
Marty Schoch 27ba6187bc adds support for more complex field sorts with object (not string)
previously from JSON we would just deserialize strings like
"-abv" or "city" or "_id" or "_score" as simple sorts
on fields, ids or scores respectively

while this is simple and compact, it can be ambiguous (for
example if you have a field starting with - or if you have a field
named "_id" already.  also, this simple syntax doesnt allow us
to specify more cmoplex options to deal with type/mode/missing

we keep support for the simple string syntax, but now also
recognize a more expressive syntax like:

{
  "by": "field",
  "field": "abv",
  "desc": true,
  "type": "string",
  "mode": "min",
  "missing": "first"
}

type, mode and missing are optional and default to
"auto", "default", and "last" respectively
2016-08-17 14:33:51 -07:00
..
analysis_test.go copy locations on merge for more safe/predictable behavior 2016-01-19 14:21:48 -05:00
analysis.go fix typos 2016-04-02 21:59:30 -04:00
benchmark_all.sh refactor of kvstore api to support native merge in rocksdb 2015-04-24 17:13:50 -04:00
benchmark_boltdb_test.go major kvstore interface and impl overhaul 2015-09-23 11:25:47 -07:00
benchmark_common_test.go major kvstore interface and impl overhaul 2015-09-23 11:25:47 -07:00
benchmark_cznicb_test.go major refactor of bleve configuration 2015-09-16 17:10:59 -04:00
benchmark_forestdb_test.go fix benchmarks for the x kvstores 2015-10-09 11:09:42 -04:00
benchmark_goleveldb_test.go major kvstore interface and impl overhaul 2015-09-23 11:25:47 -07:00
benchmark_gorocksdb_test.go fix benchmarks for the x kvstores 2015-10-09 11:09:42 -04:00
benchmark_gtreap_test.go major kvstore interface and impl overhaul 2015-09-23 11:25:47 -07:00
benchmark_leveldb_test.go fix benchmarks for the x kvstores 2015-10-09 11:09:42 -04:00
benchmark_null_test.go major kvstore interface and impl overhaul 2015-09-23 11:25:47 -07:00
dump_test.go gofmt simplifications 2016-04-02 21:54:33 -04:00
dump.go major refactor of index/search API 2016-07-31 13:46:18 -04:00
field_dict_test.go fix errcheck issues 2015-10-19 14:27:03 -04:00
field_dict.go major kvstore interface and impl overhaul 2015-09-23 11:25:47 -07:00
index_reader.go adds support for more complex field sorts with object (not string) 2016-08-17 14:33:51 -07:00
reader_test.go changed approach 2016-08-01 14:26:50 -04:00
reader.go updated attempt to reuse []byte 2016-08-03 17:01:27 -04:00
row_merge_test.go fix row merging bug 2015-05-06 11:00:04 -04:00
row_merge.go fix row merging bug 2015-05-06 11:00:04 -04:00
row_test.go gofmt simplifications 2016-04-02 21:54:33 -04:00
row.go cleaner fix for the TermFrequencyRow reuse bug 2016-08-01 17:17:29 -04:00
stats.go moved fields requiring 64-bit alignment to start of struct 2016-03-20 10:38:28 -04:00
upside_down_test.go change sort field impl to use indexed values not stored values 2016-08-17 09:20:44 -07:00
upside_down.go changed approach 2016-08-01 14:26:50 -04:00
upside_down.pb.go faster protobufs with gogo 2015-08-12 13:18:23 -04:00
upside_down.proto major change to fields 2014-08-19 08:58:26 -04:00