> Please advise me on how my SRU server should handle multi-word queries.
(By multi-word queries, you mean the query: foo bar
without quote saround the term)
> Should I:
> * do nothing and just throw an error,
If the server receives the query, then you should throw an error.
> * munge these queries into valid CQL on the client side, or
> * munge these queries into valid CQL on the server side
3. foo bar
> Part of my question is, "Is Query #3, above, a valid CQL query?" I
No, it should be quoted.
> My SRU client interface WILL receive queries such as the following --
> * foo bar
> My interface needs to gracefully accept such queries, process them, and
> return meaningful results; I do not intend to throw back to the user
Yep. The easiest way it just to wrap it in quotes and throw it at the
This however assumes adjacency and that may not be the case, so probably
the best way is to split bit whitespace and seaparte by 'AND'
> On the other hand, this server returns no error but actually returns
,'/:. Dr Robert Sanderson ([log in to unmask])
,'--/::(@)::. Dept. of Computer Science, Room 805
,'---/::::::::::. University of Liverpool
____/:::::::::::::. L5R Shop: http://www.cardsnotwords.com/
I L L U M I N A T I