Sha256: 4657a5dbcfac5cb04f8f90000ed5adc6eb0e9e4f594f213537163ad5dc9b7ddd
Contents?: true
Size: 479 Bytes
Versions: 42
Compression:
Stored size: 479 Bytes
Contents
module CloudSesame module Query module Node class QueryParser < Abstract TYPES = %w(simple structured lucene dismax) attr_writer :type TYPES.each do |type| define_method type do self.type = type; self end end def type @type ||= (context[:query_parser] || :simple).to_s end def compile { query_parser: type.to_s } end end end end end
Version data entries
42 entries across 42 versions & 1 rubygems