This commit is contained in:
ed 2021-02-22 03:46:02 +01:00
parent 81d5859588
commit f75c5f2fe5
3 changed files with 7 additions and 4 deletions

View file

@ -1,8 +1,8 @@
# coding: utf-8
VERSION = (0, 7, 7)
VERSION = (0, 8, 0)
CODENAME = "keeping track"
BUILD_DT = (2021, 2, 14)
BUILD_DT = (2021, 2, 22)
S_VERSION = ".".join(map(str, VERSION))
S_BUILD_DT = "{0:04d}-{1:02d}-{2:02d}".format(*BUILD_DT)

View file

@ -448,12 +448,12 @@ class HttpCli(object):
vbody["hash"] = len(vbody["hash"])
self.log("qj: " + repr(vbody))
hits = idx.fsearch(vols, body)
self.log("qh: " + repr(hits))
self.log("q#: " + repr(hits))
else:
# search by query params
self.log("qj: " + repr(body))
hits = idx.search(vols, body)
self.log("qh: " + str(len(hits)))
self.log("q#: " + str(len(hits)))
r = json.dumps(hits).encode("utf-8")
self.reply(r, mime="application/json")

View file

@ -131,6 +131,9 @@ def _conv_txt(q, body, k, sql):
inv = "not"
v = v[1:]
if not v:
continue
head = "'%'||"
if v.startswith("^"):
head = ""