Sha256: 529973b1403b73e44fe87b130d12f5b9eae038c8979a99da729cceee9df9944e

Contents?: true

Size: 342 Bytes

Versions: 10

Compression:

Stored size: 342 Bytes

Contents

module MarkLogic
  module Queries
    class AndNotQuery < BaseQuery
      def initialize(positive_query, negative_query)
        @positive_query = positive_query
        @negative_query = negative_query
      end

      def to_xqy
        %Q{cts:and-not-query(#{@positive_query.to_xqy},#{@negative_query.to_xqy})}
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
marklogic-0.0.11 lib/marklogic/queries/and_not_query.rb
marklogic-0.0.10 lib/marklogic/queries/and_not_query.rb
marklogic-0.0.9 lib/marklogic/queries/and_not_query.rb
marklogic-0.0.8 lib/marklogic/queries/and_not_query.rb
marklogic-0.0.7 lib/marklogic/queries/and_not_query.rb
marklogic-0.0.6 lib/marklogic/queries/and_not_query.rb
marklogic-0.0.5 lib/marklogic/queries/and_not_query.rb
marklogic-0.0.4 lib/marklogic/queries/and_not_query.rb
marklogic-0.0.3 lib/marklogic/queries/and_not_query.rb
marklogic-0.0.1 lib/marklogic/queries/and_not_query.rb