atom feed108 messages in org.oasis-open.lists.search-wsRE: [search-ws] error in sort parameter
FromSent OnAttachments
Denenberg, RayDec 6, 2010 7:26 am 
Hammond, TonyDec 6, 2010 8:01 am 
Ray Denenberg, Library of CongressDec 6, 2010 8:24 am 
Ray Denenberg, Library of CongressDec 6, 2010 8:30 am 
Hammond, TonyDec 6, 2010 8:34 am 
Ray Denenberg, Library of CongressDec 6, 2010 8:48 am 
Hammond, TonyDec 6, 2010 8:50 am 
Hammond, TonyDec 7, 2010 6:46 am 
Ray Denenberg, Library of CongressDec 7, 2010 7:03 am 
Ray Denenberg, Library of CongressDec 7, 2010 7:24 am 
Ray Denenberg, Library of CongressDec 7, 2010 7:39 am 
Hammond, TonyDec 7, 2010 9:30 am 
LeVan,RalphDec 7, 2010 9:26 pm 
LeVan,RalphDec 7, 2010 9:30 pm 
Hammond, TonyDec 8, 2010 12:45 am 
Ray Denenberg, Library of CongressDec 8, 2010 7:40 am 
Hammond, TonyDec 8, 2010 8:19 am 
Ray Denenberg, Library of CongressDec 8, 2010 8:47 am 
Hammond, TonyDec 8, 2010 10:11 am 
Ray Denenberg, Library of CongressDec 8, 2010 11:16 am 
LeVan,RalphDec 8, 2010 11:30 pm 
Ray Denenberg, Library of CongressDec 9, 2010 6:14 am 
Matthew DoveyDec 13, 2010 4:17 am 
Matthew DoveyDec 13, 2010 4:21 am 
Hammond, TonyDec 14, 2010 1:05 am 
Hammond, TonyDec 14, 2010 1:19 am 
Matthew DoveyDec 14, 2010 1:54 am 
Hammond, TonyDec 14, 2010 2:43 am 
Matthew DoveyDec 14, 2010 3:38 am 
Ray Denenberg, Library of CongressDec 14, 2010 12:03 pm 
Matthew DoveyDec 14, 2010 12:44 pm 
Hammond, TonyDec 15, 2010 3:19 am 
Hammond, TonyDec 15, 2010 3:46 am 
Matthew DoveyDec 15, 2010 4:05 am 
Ray Denenberg, Library of CongressDec 15, 2010 7:35 am 
Hammond, TonyDec 15, 2010 7:47 am 
Matthew DoveyDec 15, 2010 8:25 am 
Ray Denenberg, Library of CongressDec 15, 2010 8:31 am 
LeVan,RalphDec 15, 2010 8:49 am 
Ray Denenberg, Library of CongressDec 15, 2010 9:05 am 
LeVan,RalphDec 15, 2010 9:12 am 
Ray Denenberg, Library of CongressDec 15, 2010 1:34 pm 
LeVan,RalphDec 15, 2010 1:44 pm 
Matthew DoveyDec 15, 2010 2:21 pm 
Ray Denenberg, Library of CongressDec 15, 2010 2:31 pm 
Matthew DoveyDec 15, 2010 2:39 pm 
Hammond, TonyDec 16, 2010 2:19 am 
Hammond, TonyDec 16, 2010 3:07 am 
LeVan,RalphDec 16, 2010 7:16 am 
LeVan,RalphDec 16, 2010 7:23 am 
Hammond, TonyDec 16, 2010 9:15 am 
LeVan,RalphDec 16, 2010 9:50 am 
LeVan,RalphDec 16, 2010 11:42 am 
Ray Denenberg, Library of CongressDec 16, 2010 12:48 pm 
LeVan,RalphDec 16, 2010 1:00 pm 
53 later messages
Subject:RE: [search-ws] error in sort parameter
From:Hammond, Tony (t.ha@nature.com)
Date:Dec 6, 2010 8:34:19 am
List:org.oasis-open.lists.search-ws

Hi Ray:

Am I missing something? What has quoting the string got to do with anything? The
space still needs to be %-escaped. If you want to avoid that then you would have
to introduce an alternate delimiter for sort indexes - say ";". But this (and
also the "," char) are anyway compromised by the wide-ranging name production.
Here's an example of an index name "inde,x" which can't be used reliably with
the "sortKeys" spec:

% cql "inde,x=3" <searchClause> <index>inde,x</index> <relation> <value>=</value> </relation> <term>3</term> </searchClause>

I guess we ought to note that some names for indexes are more robust than
others, or less fragile maybe.

Tony

-----Original Message----- From: Ray Denenberg, Library of Congress [mailto:rd@loc.gov] Sent: Mon 12/6/2010 4:24 PM To: Hammond, Tony; 'OASIS SWS TC' Subject: RE: [search-ws] error in sort parameter

I'll get to the facet issues next message .

You can't have a space in an SRU parameter because it goes directly into a URL. That's the reason you can't have a space in a cql string, because it's an sru parameter.

You can have the space but you have to url encode it. Why would we want to prescribe spaces that have to be url encoded?

--Ray

From: Hammond, Tony [mailto:t.ha@nature.com] Sent: Monday, December 06, 2010 11:02 AM To: Denenberg, Ray; OASIS SWS TC Subject: RE: [search-ws] error in sort parameter

Which is an error; the parameter value includes a space and thus should be

enclosed in quotes:

Don't see why.

This is an SRU parameter value - not a CQL string. AFAIK spaces are valid in querystring parameter values.

But this does bring up a related point in the "facetLimit" proposal I put forward because this has a value which *is* a CQL string and thus not like SRU "sortKeys". (The CQL "sortby" parameter is however OK and does not restrict index values.)

The "facetLimit" proposal does restrict index values. There would seem to be only two options here:

1. to change the two delimiter chars to any chars not allowed by the "simple-string" production

"()/<=>

(But this does make for clunky syntax.)

2. to accept that there is a restriction on index names and to add a note under index names that care should be exercised in naming so that conflicts such as use in "facetLimit" would be avoided

In my view it is regrettable that names in CQL have been allowed to range so widely because (as here) it makes it difficult to fence them in when needed.

-----Original Message----- From: Denenberg, Ray [mailto:rd@loc.gov] Sent: Mon 12/6/2010 3:27 PM To: 'OASIS SWS TC' Subject: [search-ws] error in sort parameter

Let me call attention to a problem with the SRU 2.0 sort parameter. (I noticed this while researching the facetLimit situation, which I will post further discussion on later.)

Look around line 623-624 of the September 21 version, in section 9.2 Serialization, it says

An example of the sortKeys parameter in an SRU URL might be:

&sortKeys=title,onix date,onix,,0

Which is an error; the parameter value includes a space and thus should be enclosed in quotes:

&sortKeys="title,onix date,onix,,0"

And a rule should be added to the serialization bullets to this affect:

probably: "if there is more than a single key, the entire parameter value should be enclosed in quotes."

However, note the fourth bullet: * The path and schema must be quoted if they contain quotes, commas or spaces. Internal quotes must be escaped with a backslash.

Probably should add to this:

"When the sort parameter has multiple keys and thus is enclosed in quotes, then any quotes in the path and scheme, including enclosing quotes, must be escaped." (Or would that go without saying?)

Do you concur?

--Ray

Publishers Limited Registered in England and Wales with registered number 785998 Registered Office Brunel Road, Houndmills, Basingstoke RG21 6XS **************************************************************************** ****