more graceful search error message in messagebox

Issue #129 new
udfr
repo owner created an issue

most common search error is using non-alphanumerics in search string. change "search failed" to "please don't use non-alphanumerics" or something like that.

e.g., search for ".gz" has this error:

Resource Search

search failed

Message details: SPARQL Error: [OpenLink][Virtuoso iODBC Driver][Virtuoso Server]XM029: Free-text expression, line 0: Invalid character in free-text search expression, it may not appear outside quoted string at . () in query: SELECT * FROM http://www.udfr.org/ontosmoosh/ FROM http://ns.ontowiki.net/SysBase/ WHERE { ?resourceUri ?p ?o FILTER (bif:contains(?o, ".gz")) }

Warning: odbc_exec() [function.odbc-exec]: SQL error: [OpenLink][Virtuoso iODBC Driver][Virtuoso Server]XM029: Free-text expression, line 0: Invalid character in free-text search expression, it may not appear outside quoted string at . , SQL state 37000 in SQLExecDirect in apps/ontowiki/<...>/libraries/Erfurt/Erfurt/Store/Adapter/Virtuoso.php on line 975

Comments (5)

  1. Log in to comment