1
0
mirror of https://github.com/djohnlewis/stackdump synced 2024-12-04 23:17:37 +00:00

Grrr, forgot to add a file to the previous changeset.

This adds the template that is used when bad Solr syntax is encountered.
This commit is contained in:
Sam 2013-10-22 23:20:23 +11:00
parent 7dc7b7b5bd
commit 77c76ea9d4

View File

@ -0,0 +1,34 @@
{% extends 'base.html' %}
{% block title %}
Stackdump // Bad Search Syntax
{% endblock %}
{% block body %}
<div class="row errormessage">
<div class="span16">
<h1>Error: bad search syntax</h1>
<p>
The search query you entered,
</p>
<p><pre>{{ error.responseHeader.params.q }}</pre></p>
<p>
...is not valid. The error message is:
</p>
<p><pre>{{ error.error.msg }}</pre></p>
<p>
If you see a <em>siteKey</em> parameter in your query, that
was added by Stackdump to filter the search down to this
particular site.
</p>
<p>
A common cause is using colons in the query. A colon is used
to search a particular field in the search index. Searching
using fields directly is not supported by Stackdump. To
perform a search using special characters like the colon,
enclose the query term in quotes, e.g. "foo:bar".
</p>
<p class="page-actions"><a href="javascript:window.history.go(-1)">&larr; Return to the previous page to retry the search query</a></p>
</div>
</div>
{% endblock %}