pokemontrades / flairhq

A small project to allow easy adding of flair applications for subreddits (focusing initially on /r/pokemontrades) and easy moderation for moderators.
Apache License 2.0
11 stars 9 forks source link

Changing search to lucene #627

Closed robdy closed 6 years ago

robdy commented 6 years ago

Resolves #626. I didn't find any place where search is used so this should be enough. Tested by self.

robdy commented 6 years ago

Need to recheck it as it keeps giving me 503 today...

robdy commented 6 years ago

Ok I was testing this again and found that this query ((flair_css_class:'banned' OR flair_css_class:'sv*') AND author:'" + username + "') gives 503 all the time.

The code I was using to test is in here if you want to take a look.

Screenshot showing that threads are found correctly: 2018-03-11 21_41_51-xubuntu64 uruchomiona - oracle vm virtualbox

And for banned: 2018-03-11 21_43_05-xubuntu64 uruchomiona - oracle vm virtualbox

Here what I got with old query after forcing fusion (same is displayed when I change syntax to lucene): cloudsearch-forcefusion2018-03-10 22_29_53-xubuntu64 uruchomiona - oracle vm virtualbox