mirror of
https://github.com/MarginaliaSearch/MarginaliaSearch.git
synced 2025-02-24 05:18:58 +00:00
Testing development flow with adding a ~tilde search filter
This commit is contained in:
parent
72152f9d80
commit
8d1c3c754d
@ -14,6 +14,7 @@ public enum SearchProfile {
|
|||||||
CORPO("corpo", SearchSetIdentifier.NONE),
|
CORPO("corpo", SearchSetIdentifier.NONE),
|
||||||
YOLO("yolo", SearchSetIdentifier.NONE),
|
YOLO("yolo", SearchSetIdentifier.NONE),
|
||||||
VINTAGE("vintage", SearchSetIdentifier.NONE),
|
VINTAGE("vintage", SearchSetIdentifier.NONE),
|
||||||
|
TILDE("tilde", SearchSetIdentifier.NONE),
|
||||||
CORPO_CLEAN("corpo-clean", SearchSetIdentifier.NONE),
|
CORPO_CLEAN("corpo-clean", SearchSetIdentifier.NONE),
|
||||||
ACADEMIA("academia", SearchSetIdentifier.ACADEMIA),
|
ACADEMIA("academia", SearchSetIdentifier.ACADEMIA),
|
||||||
PLAIN_TEXT("plain-text", SearchSetIdentifier.NONE),
|
PLAIN_TEXT("plain-text", SearchSetIdentifier.NONE),
|
||||||
@ -57,6 +58,9 @@ public enum SearchProfile {
|
|||||||
subquery.searchTermsPriority.add("format:html123");
|
subquery.searchTermsPriority.add("format:html123");
|
||||||
subquery.searchTermsPriority.add("js:false");
|
subquery.searchTermsPriority.add("js:false");
|
||||||
}
|
}
|
||||||
|
if (this == TILDE) {
|
||||||
|
subquery.searchTermsAdvice.add("special:tilde");
|
||||||
|
}
|
||||||
if (this == PLAIN_TEXT) {
|
if (this == PLAIN_TEXT) {
|
||||||
subquery.searchTermsAdvice.add("format:plain");
|
subquery.searchTermsAdvice.add("format:plain");
|
||||||
}
|
}
|
||||||
|
@ -15,6 +15,7 @@
|
|||||||
</optgroup>
|
</optgroup>
|
||||||
<optgroup label="Vintage">
|
<optgroup label="Vintage">
|
||||||
<option {{#eq profile "vintage"}}selected{{/eq}} value="vintage">Web 1.0</option>
|
<option {{#eq profile "vintage"}}selected{{/eq}} value="vintage">Web 1.0</option>
|
||||||
|
<option {{#eq profile "tilde"}}selected{{/eq}} value="tilde">~tilde/</option>
|
||||||
<option {{#eq profile "plain-text"}}selected{{/eq}} value="plain-text">Text Files</option>
|
<option {{#eq profile "plain-text"}}selected{{/eq}} value="plain-text">Text Files</option>
|
||||||
</optgroup>
|
</optgroup>
|
||||||
<optgroup label="Category">
|
<optgroup label="Category">
|
||||||
|
Loading…
Reference in New Issue
Block a user