Method: MarkLogic::Queries::RangeQuery#options
- Defined in:
- lib/marklogic/queries/range_query.rb
#options ⇒ Object
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 |
# File 'lib/marklogic/queries/range_query.rb', line 43 def opts = [] @options.each do |k, v| case k.to_s when "collation", "min_occurs", "max_occurs", "score_function", "slope_factor" opts << %Q{"#{k.to_s.gsub(/_/, '-')}=#{v}"} when "cached" opts << (v == true ? %Q{"cached"} : %Q{"uncached"}) when "synonym" opts << %Q{"#{k}"} else opts << %Q{"#{v}"} end end opts end |