class MarkLogic::Queries::AndNotQuery

Public Class Methods

new(positive_query, negative_query) click to toggle source
# File lib/marklogic/queries/and_not_query.rb, line 4
def initialize(positive_query, negative_query)
  @positive_query = positive_query
  @negative_query = negative_query
end

Public Instance Methods

to_xqy() click to toggle source
# File lib/marklogic/queries/and_not_query.rb, line 9
def to_xqy
  %Q{cts:and-not-query(#{@positive_query.to_xqy},#{@negative_query.to_xqy})}
end