๐Ÿ… Craig ๐Ÿ… is a user on social.dropbear.xyz. You can follow them or interact with them if you have an account anywhere in the fediverse. If you don't, you can sign up here.

@gled I am getting an error 500 with the FPS. Looking in the logs I get:

NoMethodError (undefined method `keep_if' for #<ActiveRecord::Relation []>):
app/controllers/api/v1/search_controller.rb:22:in `block in search'

It seems search[:statuses].keep_if
is the offending line.

Any ideas what went wrong?

๐Ÿ… Craig ๐Ÿ… @smallsees
Follow

@gled I found it! There is a v2 api that needs the same change as the v1 search api

controllers/api/v2/search_controller.rb

@search = Search.new(search_results)

ยท 0 ยท 0

@smallsees you mean the FTS patch ?

The out of tree version hasn't been maintained for a couple versions iirc ;)

@gled The non ES FTS patch, yes.

I had to do some minor patch fixes but this fix was simple enough too