Skip to content

Instantly share code, notes, and snippets.

@tsnow
Created October 15, 2010 20:15
Show Gist options
  • Save tsnow/628871 to your computer and use it in GitHub Desktop.
Save tsnow/628871 to your computer and use it in GitHub Desktop.
Search query syntax
Storeaka.search_for_ids(
[
%[@name "^#{q}$"],
%[@url "^#{q}$"],
%[@aka =("\$#{q}")]
]).map{|x| "(#{x})"}.join(' | '),
:match_mode => :extended2) #(@name "^hertz$") | (@url "^hertz$") | (@aka =("\$hertz"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment