-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Show help when algorithm is switched in search
- Loading branch information
Showing
10 changed files
with
71 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<div class="card mt-3"> | ||
<div class="card-body"> | ||
<h5 class="card-title">{{ selected_algorithm }}</h5> | ||
{% include help_template_name %} | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
from django.urls import path | ||
from rest_framework.urlpatterns import format_suffix_patterns | ||
|
||
from .views import SearchView | ||
from .views import HelpView, SearchView | ||
|
||
urlpatterns = [ | ||
path("", SearchView.as_view(), name="search"), | ||
path("help", HelpView.as_view(), name="search_help"), | ||
] | ||
|
||
urlpatterns = format_suffix_patterns(urlpatterns) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,15 @@ | ||
<div class="card"> | ||
<div class="card-body"> | ||
<h5 class="card-title">Vespa BM25 Help</h5> | ||
<p class="card-text"> | ||
Vespa ist a modern full text search database and BM25 is a simple search | ||
ranking algorithm based on the query terms appearing in each document. | ||
</p> | ||
<p class="card-text"> | ||
{# https://docs.vespa.ai/en/reference/simple-query-language-reference.html #} | ||
The following rules apply: | ||
<ul> | ||
<li>Search is case-insensitive.</li> | ||
<li>All terms in the query must be matched by a document (implicit AND query).</li> | ||
<li>term1 OR term2 (capital OR) means that either term1 or term2 must match.</li> | ||
<li>Terms surrounded by quotes are search as exact phrase, e.g. "lung disease".</li> | ||
<li>+ in front of a term means that the exact term must match.</li> | ||
</ul> | ||
</p> | ||
</div> | ||
</div> | ||
<p class="card-text"> | ||
Vespa ist a modern full text search database and BM25 is a simple search | ||
ranking algorithm based on the query terms appearing in each document. | ||
</p> | ||
<p class="card-text"> | ||
{# https://docs.vespa.ai/en/reference/simple-query-language-reference.html #} | ||
The following rules apply: | ||
<ul> | ||
<li>Search is case-insensitive.</li> | ||
<li>All terms in the query must be matched by a document (implicit AND query).</li> | ||
<li>term1 OR term2 (capital OR) means that either term1 or term2 must match.</li> | ||
<li>Terms surrounded by quotes are search as exact phrase, e.g. "lung disease".</li> | ||
<li>+ in front of a term means that the exact term must match.</li> | ||
</ul> | ||
</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
TODO: Hybrid Help |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters