Sha256: af736f2692a7eb1063390a1774b2364fbe281f75e232ee8474f14ea14c7f2b4e

Contents?: true

Size: 1.07 KB

Versions: 2

Compression:

Stored size: 1.07 KB

Contents

xml.instruct!
xml.explain("xmlns" => "http://explain.z3950.org/dtd/2.0/") do

  # Made up protocol "http-cql", oh well.
  xml.serverInfo("protocol" => "http-cql") do
    xml.host request.host
    xml.port request.port
    xml.database url_for(:action => "index", :search_field => BlacklightCql::SolrHelperExtension.pseudo_search_field[:key], :only_path => false)
  end

  xml.indexInfo do
    xml.set(:name => CqlRuby.to_solr_defaults[:solr_field_prefix], 
            :identifier => 
              url_for(:action => "index",
                      :anchor => "local_solr_field",
                      :only_path => false))
    xml.set(:name => CqlRuby.to_solr_defaults[:blacklight_field_prefix],
            :identifier => 
              url_for(:action => "index",
                      :anchor => "local_app_field",
                      :only_path => false))
    #context set for our solr.dismax relation
    xml.set(:name => "solr", :identifier => "http://purl.org/net/cql-context-set/solr")

    blacklight_config_to_explain_index(xml)
    luke_to_explain_index(xml)  
  end
end            

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
blacklight_cql-2.0.1 app/views/blacklight_cql/explain.xml.builder
blacklight_cql-2.0.0 app/views/blacklight_cql/explain.xml.builder