0
0
bleve/search
Marty Schoch 0d873916f0 support JSON marshal/unmarshal of search request sort
The syntax used is an array of strings.  The strings "_id" and
"_score" are special and reserved to mean sorting on the document
id and score repsectively.  All other strings refer to the literal
field name with that value.  If the string is prefixed with "-"
the order of that sort is descending, without it, it defaults to
ascending.

Examples:

"sort":["-abv","-_score"]

This will sort results in decreasing order of the "abv" field.
Results which have the same value of the "abv" field will then
be sorted by their score, also decreasing.

If no value for "sort" is provided in the search request the
default soring is the same as before, which is decreasing score.
2016-08-12 19:16:24 -04:00
..
collectors Merge branch 'master' of https://github.com/dtylman/bleve into sort-by-field-try2 2016-08-12 14:23:55 -04: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 switch back to single DocumentMatch struct 2016-08-01 14:58:02 -04: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 support JSON marshal/unmarshal of search request sort 2016-08-12 19:16:24 -04:00
sort.go support JSON marshal/unmarshal of search request sort 2016-08-12 19:16:24 -04: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