Change druid URL

This commit is contained in:
Mark Veidemanis 2022-10-04 21:47:37 +01:00
parent 2a4db7476f
commit 987ba6ed3c
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
3 changed files with 11 additions and 10 deletions

View File

@ -114,7 +114,7 @@ class DruidBackend(StorageBackend):
ss = orjson.dumps(search_query, option=orjson.OPT_INDENT_2)
ss = ss.decode()
print(ss)
response = requests.post("http://broker:8082/druid/v2", json=search_query)
response = requests.post("http://druid:8082/druid/v2", json=search_query)
response = orjson.loads(response.text)
print("RESPONSE LEN", len(response))
# ss = orjson.dumps(response, option=orjson.OPT_INDENT_2)

View File

@ -65,11 +65,12 @@ $(document).ready(function(){
"file_ext": "off",
"file_size": "off",
"lang_code": "off",
"tokens": "off",
//"lang_name": "off",
"words_noun": "off",
"words_adj": "off",
"words_verb": "off",
"words_adv": "off"
// "words_noun": "off",
// "words_adj": "off",
// "words_verb": "off",
// "words_adv": "off"
},
};
} else {

View File

@ -65,13 +65,13 @@ class DrilldownTable(Table):
realname = Column()
server = Column()
mtype = Column()
# tokens = Column()
tokens = Column()
lang_code = Column()
lang_name = Column()
words_noun = Column()
words_adj = Column()
words_verb = Column()
words_adv = Column()
# words_noun = Column()
# words_adj = Column()
# words_verb = Column()
# words_adv = Column()
hidden = Column()
filename = Column()
file_md5 = Column()