OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

search-ws message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: 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




[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]