beautypg.com

Examples – Google Search Appliance Protocol Reference User Manual

Page 40

background image

Google Search Appliance: Search Protocol Reference

Request Format

40

For more information about the language options, case options, and numeric options D and Y, see the

ICU Collation documentation

.

Examples

The following examples show sort parameters and how values would be sorted.

Sorting authors or other alphabetic values

Change case sorting

Sort numbers that have the same format

If all the numbers have the same format (for instance, if every number has a dollar sign, then two digits,
then a comma, then three digits, then a period, then two digits: $xx,xxx.xx).

F

This is similar to Y, but also identifies and sorts negative and floating-point
numbers. It will identify proper punctuation based on the language specified, so
a decimal point is a . for English, but a , for German.

N

Can be used to sort pure English numbers (only containing digits and +-.
punctuation) faster than using Y or F. But values like ABC2XYZ will not be sorted.

sort=meta:

Agatha Christie
C. S. Lewis
Henry David Thoreau

sort=meta::D

Henry David Thoreau
C. S. Lewis
Agatha Christie

sort=meta::A:E:en:D

aa
aA
Aa
Ab

sort=meta::A:E:en:U

Aa
aA
aa
Ab

sort=meta::D:E:en:L

aa
aA
Aa
Ab

sort=meta::D:E:en:U

Ab
aa
aA
Aa

sort=meta::::::Y

$34,827.45
$84,671.11
$93,243.55

Value

Description