0
0
bleve/search
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
..
collectors change sort field impl to use indexed values not stored values 2016-08-17 09:20:44 -07:00
facets Make facets much faster 2016-07-17 15:31:35 -07:00
highlight more gofmt simplifications 2016-04-03 00:03:33 -04:00
scorers refactor search package to reuse DocumentMatch and ID []byte's 2016-08-08 22:21:47 -04:00
searchers refactor search package to reuse DocumentMatch and ID []byte's 2016-08-08 22:21:47 -04:00
collector.go major refactor of index/search API 2016-07-31 13:46:18 -04:00
explanation.go Fix typos in comments and strings 2014-12-18 18:43:12 +01:00
facets_builder_test.go gofmt simplifications 2016-04-02 21:54:33 -04:00
facets_builder.go adds support for more complex field sorts with object (not string) 2016-08-17 14:33:51 -07: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
pool_test.go added test case for DocumentMatchPool 2016-08-09 11:35:12 -04:00
pool.go refactor search package to reuse DocumentMatch and ID []byte's 2016-08-08 22:21:47 -04:00
search.go change sort field impl to use indexed values not stored values 2016-08-17 09:20:44 -07:00
sort.go adds support for more complex field sorts with object (not string) 2016-08-17 14:33:51 -07: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