Slide 22
Slide 22 text
local create_t = string.match(token, "^fq=created_time_t%%3A%%5B(%d%d%d%d%-%d%d%-%d%dT%d%d%%3A%d%d%%3A%d)
%dZ%+TO%+%%2A%%5D$")
if create_t then
-- conditionsͰfilter queryͷhitΛ͋͛ΔͨΊɺcreated_time_tͷ࠷ޙΛ9ඵʹͯ͠͠·͏
create_t_filter = "created_time_t%3A%5B" .. create_t .. "9Z+TO+%2A%5D"
-- ͷঢ়ଶ: શ෦ࢦఆ͞ΕͯΔͷͰফ͢
args = string.gsub(ngx.var.args,"&fq=item_condition_id%%3A%%281%+OR%+2%+OR%+3%+OR%+4%+OR%+5%+OR%+6%%29","")
-- ࠷Ձ͕֨300ԁͳͷͰফͤΔ
args = string.gsub(args,"&fq=price_t%%3A%%5B300%%2BTO%%2B*%%5D", "")
-- ͷՁ֨: frangeʹॻ͖͑ɹ
args = string.gsub(args,"&fq=price_t%%3A%%5B%%2A%+TO%+(%d+)%%5D","&fq=%%7B%%21frange%+cache%%3Dfalse%+cost%
%3D150%+u%%3D%1%%7Dprice_t")
-- "͑͑͑͑͑͑͑͑͑͑͑͑͑͑͑͑͑͑͑͑͑" ରࡦɻ10ճҎ্࿈ଓͰ10จࣈ·ͰΓ٧Ί
args, _, _ = ngx.re.gsub(args, "(%[0-9a-f][0-9a-f]%[0-9a-f][0-9a-f]%[0-9a-f][0-9a-f])\\1{9,}",
"$1$1$1$1$1$1$1$1$1$1", "i")