ransack icon indicating copy to clipboard operation
ransack copied to clipboard

Proposal: advanced search syntax

Open stereobooster opened this issue 2 years ago • 3 comments

Github has search syntax. Can we do the same with ransack? For example, query "x:1 y:>2" converted to { x_eq: 1, y_gt: 2}.

I built prototype for this https://github.com/stereobooster/search_syntax. WDYT?

stereobooster avatar Oct 21 '22 12:10 stereobooster

@stereobooster this looks like a really interesting idea, let me look into it.

scarroll32 avatar Nov 09 '22 21:11 scarroll32

@stereobooster that is a really great idea, are you still using your prototype?

ericenns avatar Jul 26 '24 16:07 ericenns

@ericenns yes, it is used in one project. To be fair I never had to touch it again after implementation

stereobooster avatar Jul 28 '24 10:07 stereobooster