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 = orjson.dumps(search_query, option=orjson.OPT_INDENT_2)
ss = ss.decode() ss = ss.decode()
print(ss) 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) response = orjson.loads(response.text)
print("RESPONSE LEN", len(response)) print("RESPONSE LEN", len(response))
# ss = orjson.dumps(response, option=orjson.OPT_INDENT_2) # ss = orjson.dumps(response, option=orjson.OPT_INDENT_2)

View File

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

View File

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