-
Hi, We're refactoring our application from Scrivener to Flop, and I'm nearly done. The last thing I have to do is replace a complex query with Flop. But, in the long term we're going to chuck it out and replace it with Elastic search or something. The existing query has complex sorting depending on many variables that I don't want to translate to a Flop schema. So the short question is, is there a way to just tell Flop to not order anything? I've been digging in the code and I don't think I can, but maybe I'm missing something. Edit: I realize this should have been posted under the Flop discussions, and not here. I can't seem to delete it here, though. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Yes, you can set |
Beta Was this translation helpful? Give feedback.
Yes, you can set
ordering: false
, either globally, or in a configuration module, or by passing it directly to thevalidate_*
functions: https://hexdocs.pm/flop/Flop.html#t:option/0