Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

help: Add some search examples #593

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions nyaa/templates/help.html
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,40 @@ <h1>Using the Site</h1>
not honor this. Using <kbd>(hello world) "foo bar"</kbd> is fine, but quoted strings inside
the parentheses will lead to unexpected results.
</div>
<table class="table">
<tr>
<th>Query</th>
<th>Result</th>
</tr>
<tr>
<td><kbd>foo</kbd></td>
<td>Torrents matching "foo" or a word starting with "foo"</td>
</tr>
<tr>
<td><kbd>foo -bar</kbd></td>
<td>Torrents matching "foo" (as above) but not "bar" (or a word starting with "bar")</td>
</tr>
<tr>
<td><kbd>foo bar</kbd></td>
<td>Torrents matching both "foo" and "bar", and not necessarily in that order</td>
</tr>
<tr>
<td><kbd>foo|bar</kbd></td>
<td>Torrents matching either "foo" or "bar"</td>
</tr>
<tr>
<td><kbd>(foo bar)|(boo baz)</kbd></td>
<td>Torrents matching either "foo" and "bar" or "boo" and "baz", but not "foo" and "boo" or "foo" and "baz", and so on.</td>
</tr>
<tr>
<td><kbd>"foo bar"</kbd></td>
<td>Torrents matching "foo bar" - literally, space included</td>
</tr>
<tr>
<td><kbd>"foo "|" foo"</kbd></td>
<td>Torrents matching "foo" as a single word (foo with a leading or trailing space) - compare against the first example</td>
</tr>
</table>

{{ linkable_header("Reporting Torrents", "reporting") }}
<div>
Expand Down