diff --git a/core/lib/opensearch.py b/core/lib/opensearch.py index 89555b4..2626eb3 100644 --- a/core/lib/opensearch.py +++ b/core/lib/opensearch.py @@ -38,19 +38,18 @@ def construct_query(query, fields, results): "fuzzy_transpositions": True, "fuzzy_max_expansions": 50, "fuzzy_prefix_length": 0, - "minimum_should_match": 1, + # "minimum_should_match": 1, "default_operator": "or", "analyzer": "standard", - "lenient": False, + "lenient": True, "boost": 1, "allow_leading_wildcard": True, - "enable_position_increments": False, + # "enable_position_increments": False, "phrase_slop": 3, - "max_determinized_states": 10000, - "time_zone": "-08:00", + # "max_determinized_states": 10000, "quote_field_suffix": "", "quote_analyzer": "standard", - "analyze_wildcard": True, + "analyze_wildcard": False, "auto_generate_synonyms_phrase_query": True, } }, diff --git a/core/templates/ui/drilldown.html b/core/templates/ui/drilldown.html index c0ed052..5700988 100644 --- a/core/templates/ui/drilldown.html +++ b/core/templates/ui/drilldown.html @@ -2,13 +2,11 @@ {% load static %} {% block content %} -
+
{% csrf_token %} -
-
- -
+
+
@@ -21,36 +19,31 @@
- -
-
+
+
-
- -
-
-
-
- - - - +
+
+
+
+ + + + +
- -
- -
-
+
+
+
@@ -66,10 +59,9 @@
-
- -
- +
+
+
@@ -78,6 +70,9 @@ + + + @@ -85,63 +80,53 @@
-
-
+
+
-
-
- -
-
-
-
+ - - -
-
- -
- - {% if results is not None %} - - - - - - - - - - - {% endif %} - - - {% for item in results %} - - - - - - - - - {% endfor %} - -
TSmsghostnickchannelnet
{{ item.ts }}{{ item.msg }}{{ item.host }}{{ item.nick }}{{ item.channel }}{{ item.net }}
-
{% if results is not None %} +
+
+ + + + + + + + + + + + + + {% for item in results %} + + + + + + + + + {% endfor %} + +
TSmsghostnickchannelnet
{{ item.ts }}{{ item.msg }}{{ item.host }}{{ item.nick }}{{ item.channel }}{{ item.net }}
+
+

{{ card }} hits

{{ took }}ms

{% endif %} + {% endblock %}