gilbert189 — 11/27/2022, 2:31:06 PM

Now for a non-weird question:

I’m going to implement searching for TBG REST. However, I’m not sure what query syntax I should use. Here’s the list:

Raw         : /search/posts?keywords=keyword&author=author&forums=2&forums=5&search_in=0&sort_by=0&sort_dir=DESC
Ocular style: /search/posts?q=keyword +username:"author" +category:"TBG" +category:"RPG"&sort=0&order=DESC
GitHub style: /search/posts?q=keyword user:author in:TBG in:RPG sort:time-desc (you can also use `sort=` and `order=` queries if you want)

not URI encoded for readabilty (for humans at least)

Which one should I choose?

♥ 1 ↩ 0 💬 3 comments

comments

realicraft:

raw, makes the most sense and will be easier to parse (as the components will already be split for you)

11/27/2022, 10:40:22 PM
oren:

Do raw style

11/27/2022, 4:16:20 PM
cst1229:

ScratchDB (ocular)-style

11/27/2022, 3:29:59 PM