On Fri, 08 Aug 2014, Mr. Bessem Aamira wrote:
> Does anyone have an explanation why the search with a term containing
> a semicolon only returns a result for the first part (before the
> semicolon)
>
> Exemple
>  
> http://invenio-demo.cern.ch/search?ln=fr&sc=1&p=text1;text2&f=&action_search=Recherche&c=Articles+%26+Preprints&c=Books+%26+Reports&c=Multimedia+%26+Arts

In the URL protocol, semicolon is a reserved character, used to separate
entities, like "&".  The equal sign is another reserved character,
giving entities values.  Hence, if your URL is literally:

   search?p=foo;bar

then the search interface receives parameter "p" with the value of "foo"
and another parameter "bar" with no value, as it were.  IOW, the search
engine does not even get to see the ";bar" part, because it is passed
"truncated" value of "p", so to speak.

This is why semicolons have to be encoded in the URLs, like:

   search?p=foo%3Bbar

in which case the semicolon part would be well passed onto the search
engine:

   http://invenio-demo.cern.ch/search?p=text1%3Btext2&f=

Best regards
-- 
Tibor Simko

Reply via email to