active-fedora 11.0.0.rc1 → 11.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (159) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -0
  3. data/.rubocop.yml +2 -7
  4. data/.rubocop_todo.yml +40 -9
  5. data/.solr_wrapper +6 -0
  6. data/README.md +1 -3
  7. data/active-fedora.gemspec +5 -9
  8. data/lib/active_fedora/associations/collection_association.rb +1 -1
  9. data/lib/active_fedora/associations/contained_finder.rb +2 -2
  10. data/lib/active_fedora/associations/has_many_association.rb +1 -1
  11. data/lib/active_fedora/associations/has_subresource_association.rb +2 -2
  12. data/lib/active_fedora/attribute_assignment.rb +0 -1
  13. data/lib/active_fedora/attributes.rb +1 -1
  14. data/lib/active_fedora/base.rb +3 -7
  15. data/lib/active_fedora/change_set.rb +6 -2
  16. data/lib/active_fedora/containers/container.rb +1 -1
  17. data/lib/active_fedora/core.rb +22 -25
  18. data/lib/active_fedora/fedora_attributes.rb +1 -1
  19. data/lib/active_fedora/file.rb +1 -1
  20. data/lib/active_fedora/indexing_service.rb +0 -4
  21. data/lib/active_fedora/orders/ordered_list.rb +2 -2
  22. data/lib/active_fedora/querying.rb +1 -1
  23. data/lib/active_fedora/railtie.rb +2 -2
  24. data/lib/active_fedora/rake_support.rb +1 -1
  25. data/lib/active_fedora/rdf.rb +0 -1
  26. data/lib/active_fedora/relation/delegation.rb +4 -0
  27. data/lib/active_fedora/solr_hit.rb +0 -4
  28. data/lib/active_fedora/solr_query_builder.rb +16 -12
  29. data/lib/active_fedora/version.rb +1 -1
  30. data/lib/active_fedora.rb +0 -10
  31. data/lib/generators/active_fedora/config/solr/templates/solr/config/solrconfig.xml +11 -0
  32. data/lib/generators/active_fedora/config/solr/templates/solr_wrapper_test.yml +1 -1
  33. data/spec/config_helper.rb +1 -1
  34. data/spec/integration/associations_spec.rb +17 -18
  35. data/spec/integration/attached_files_spec.rb +18 -8
  36. data/spec/integration/attributes_spec.rb +12 -16
  37. data/spec/integration/autosave_association_spec.rb +6 -6
  38. data/spec/integration/base_spec.rb +3 -3
  39. data/spec/integration/collection_association_spec.rb +2 -5
  40. data/spec/integration/date_time_properties_spec.rb +1 -2
  41. data/spec/integration/direct_container_spec.rb +8 -8
  42. data/spec/integration/directly_contains_one_association_spec.rb +11 -13
  43. data/spec/integration/eradicate_spec.rb +1 -1
  44. data/spec/integration/fedora_solr_sync_spec.rb +2 -2
  45. data/spec/integration/file_fixity_spec.rb +6 -8
  46. data/spec/integration/file_spec.rb +32 -34
  47. data/spec/integration/generators/solr_generator_spec.rb +7 -10
  48. data/spec/integration/has_many_associations_spec.rb +6 -8
  49. data/spec/integration/indexing_spec.rb +1 -1
  50. data/spec/integration/indirect_container_spec.rb +8 -9
  51. data/spec/integration/json_serialization_spec.rb +4 -4
  52. data/spec/integration/query_result_builder_spec.rb +9 -21
  53. data/spec/integration/rdf_nested_attributes_spec.rb +6 -6
  54. data/spec/integration/relation_delegation_spec.rb +8 -10
  55. data/spec/integration/relation_spec.rb +13 -16
  56. data/spec/integration/solr_hit_spec.rb +4 -4
  57. data/spec/integration/versionable_spec.rb +73 -327
  58. data/spec/spec_helper.rb +52 -10
  59. data/spec/unit/active_fedora_spec.rb +1 -1
  60. data/spec/unit/aggregation/list_source_spec.rb +37 -37
  61. data/spec/unit/aggregation/ordered_reader_spec.rb +4 -4
  62. data/spec/unit/association_hash_spec.rb +17 -31
  63. data/spec/unit/attached_files_spec.rb +35 -32
  64. data/spec/unit/attributes_spec.rb +25 -25
  65. data/spec/unit/base_active_model_spec.rb +8 -8
  66. data/spec/unit/base_cma_spec.rb +1 -1
  67. data/spec/unit/base_extra_spec.rb +7 -22
  68. data/spec/unit/base_spec.rb +14 -20
  69. data/spec/unit/callback_spec.rb +2 -2
  70. data/spec/unit/change_set_spec.rb +5 -5
  71. data/spec/unit/checksum_spec.rb +2 -2
  72. data/spec/unit/code_configurator_spec.rb +1 -1
  73. data/spec/unit/core_spec.rb +62 -26
  74. data/spec/unit/default_model_mapper_spec.rb +6 -6
  75. data/spec/unit/fedora_spec.rb +2 -2
  76. data/spec/unit/file_configurator_spec.rb +96 -96
  77. data/spec/unit/file_path_builder_spec.rb +1 -1
  78. data/spec/unit/file_spec.rb +61 -61
  79. data/spec/unit/files_hash_spec.rb +9 -9
  80. data/spec/unit/finder_methods_spec.rb +3 -3
  81. data/spec/unit/has_and_belongs_to_many_association_spec.rb +13 -14
  82. data/spec/unit/has_many_association_spec.rb +28 -13
  83. data/spec/unit/indexers/global_indexer_spec.rb +6 -6
  84. data/spec/unit/indexing_service_spec.rb +5 -5
  85. data/spec/unit/indexing_spec.rb +6 -6
  86. data/spec/unit/inheritance_spec.rb +11 -7
  87. data/spec/unit/loadable_from_json_spec.rb +4 -4
  88. data/spec/unit/logger_spec.rb +1 -1
  89. data/spec/unit/model_classifier_spec.rb +5 -5
  90. data/spec/unit/ordered_spec.rb +142 -142
  91. data/spec/unit/orders/list_node_spec.rb +21 -21
  92. data/spec/unit/orders/ordered_list_spec.rb +96 -96
  93. data/spec/unit/orders/reflection_spec.rb +4 -4
  94. data/spec/unit/pathing_spec.rb +4 -4
  95. data/spec/unit/persistence_spec.rb +28 -28
  96. data/spec/unit/property_spec.rb +2 -2
  97. data/spec/unit/query_spec.rb +10 -10
  98. data/spec/unit/rdf/indexing_service_spec.rb +26 -26
  99. data/spec/unit/readonly_spec.rb +5 -4
  100. data/spec/unit/reflection_spec.rb +3 -3
  101. data/spec/unit/rspec_matchers/belong_to_associated_active_fedora_object_matcher_spec.rb +9 -9
  102. data/spec/unit/rspec_matchers/have_many_associated_active_fedora_objects_matcher_spec.rb +9 -9
  103. data/spec/unit/rspec_matchers/have_predicate_matcher_spec.rb +9 -9
  104. data/spec/unit/schema_indexing_strategy_spec.rb +5 -5
  105. data/spec/unit/serializers_spec.rb +3 -4
  106. data/spec/unit/solr_config_options_spec.rb +13 -16
  107. data/spec/unit/solr_hit_spec.rb +9 -9
  108. data/spec/unit/solr_service_spec.rb +4 -10
  109. data/spec/unit/sparql_insert_spec.rb +2 -2
  110. data/spec/unit/validations_spec.rb +9 -9
  111. data/spec/unit/with_metadata/default_metadata_class_factory_spec.rb +3 -2
  112. data/spec/unit/with_metadata/metadata_node_spec.rb +3 -2
  113. metadata +17 -118
  114. data/lib/active_fedora/datastreams/nokogiri_datastreams.rb +0 -119
  115. data/lib/active_fedora/datastreams.rb +0 -6
  116. data/lib/active_fedora/nom_datastream.rb +0 -73
  117. data/lib/active_fedora/om_datastream.rb +0 -118
  118. data/lib/active_fedora/qualified_dublin_core_datastream.rb +0 -158
  119. data/lib/active_fedora/rdf/datastream_indexing.rb +0 -49
  120. data/lib/active_fedora/rdf/ntriples_rdf_datastream.rb +0 -13
  121. data/lib/active_fedora/rdf/rdf_datastream.rb +0 -173
  122. data/lib/active_fedora/rdf/rdfxml_datastream.rb +0 -13
  123. data/solr/config/_rest_managed.json +0 -3
  124. data/solr/config/admin-extra.html +0 -31
  125. data/solr/config/elevate.xml +0 -36
  126. data/solr/config/mapping-ISOLatin1Accent.txt +0 -246
  127. data/solr/config/protwords.txt +0 -21
  128. data/solr/config/schema.xml +0 -372
  129. data/solr/config/scripts.conf +0 -24
  130. data/solr/config/solrconfig.xml +0 -311
  131. data/solr/config/spellings.txt +0 -2
  132. data/solr/config/stopwords.txt +0 -58
  133. data/solr/config/stopwords_en.txt +0 -58
  134. data/solr/config/synonyms.txt +0 -31
  135. data/solr/config/xslt/example.xsl +0 -132
  136. data/solr/config/xslt/example_atom.xsl +0 -67
  137. data/solr/config/xslt/example_rss.xsl +0 -66
  138. data/solr/config/xslt/luke.xsl +0 -337
  139. data/spec/fixtures/damsObjectModel.xml +0 -38
  140. data/spec/fixtures/dublin_core_rdf_descMetadata.nt +0 -13
  141. data/spec/fixtures/mixed_rdf_descMetadata.nt +0 -7
  142. data/spec/fixtures/mods_articles/mods_article1.xml +0 -98
  143. data/spec/fixtures/solr_rdf_descMetadata.nt +0 -7
  144. data/spec/integration/complex_rdf_datastream_spec.rb +0 -227
  145. data/spec/integration/datastream_rdf_nested_attributes_spec.rb +0 -180
  146. data/spec/integration/ntriples_datastream_spec.rb +0 -215
  147. data/spec/integration/om_datastream_spec.rb +0 -78
  148. data/spec/samples/hydra-mods_article_datastream.rb +0 -515
  149. data/spec/samples/models/mods_article.rb +0 -9
  150. data/spec/samples/oral_history_sample.xml +0 -38
  151. data/spec/samples/oral_history_xml.xml +0 -35
  152. data/spec/samples/samples.rb +0 -2
  153. data/spec/unit/nom_datastream_spec.rb +0 -60
  154. data/spec/unit/ntriples_datastream_spec.rb +0 -167
  155. data/spec/unit/om_datastream_spec.rb +0 -294
  156. data/spec/unit/qualified_dublin_core_datastream_spec.rb +0 -119
  157. data/spec/unit/rdf_datastream_spec.rb +0 -84
  158. data/spec/unit/rdf_resource_datastream_spec.rb +0 -208
  159. data/spec/unit/rdfxml_datastream_spec.rb +0 -106
@@ -1,158 +0,0 @@
1
- module ActiveFedora
2
- # This class represents a Qualified Dublin Core Datastream. A special case of ActiveFedora::OmDatastream
3
- # The implementation of this class defines the terms from the Qualified Dublin Core specification.
4
- # This implementation features customized xml generators and deserialization routines to handle the
5
- # Fedora Dublin Core XML datastreams structure.
6
- #
7
- # Fields can still be overridden if more specificity is desired (see ActiveFedora::File#fields method).
8
- class QualifiedDublinCoreDatastream < OmDatastream
9
- attr_accessor :fields
10
- class_attribute :class_fields
11
- self.class_fields = []
12
-
13
- set_terminology do |t|
14
- t.root(path: "dc", xmlns: "http://purl.org/dc/terms/")
15
- end
16
-
17
- define_template :creator do |xml, name|
18
- xml.creator do
19
- xml.text(name)
20
- end
21
- end
22
-
23
- # A frozen array of Dublincore Terms.
24
- DCTERMS = [
25
- :abstract,
26
- :accessRights,
27
- :accrualMethod,
28
- :accrualPeriodicity,
29
- :accrualPolicy,
30
- :alternative,
31
- :audience,
32
- :available,
33
- :bibliographicCitation,
34
- :conformsTo,
35
- :contributor,
36
- :coverage,
37
- :created,
38
- :creator,
39
- :date,
40
- :dateAccepted,
41
- :dateCopyrighted,
42
- :dateSubmitted,
43
- :description,
44
- :educationLevel,
45
- :extent,
46
- :hasFormat,
47
- :hasPart,
48
- :hasVersion,
49
- :identifier,
50
- :instructionalMethod,
51
- :isFormatOf,
52
- :isPartOf,
53
- :isReferencedBy,
54
- :isReplacedBy,
55
- :isRequiredBy,
56
- :isVersionOf,
57
- :issued,
58
- :language,
59
- :license,
60
- :mediator,
61
- :medium,
62
- :modified,
63
- :provenance,
64
- :publisher,
65
- :references,
66
- :relation,
67
- :replaces,
68
- :requires,
69
- :rights,
70
- :rightsHolder,
71
- :source,
72
- :spatial,
73
- :subject,
74
- :tableOfContents,
75
- :temporal,
76
- :title,
77
- :type,
78
- :valid
79
- ].freeze # removed :format
80
- DCTERMS.freeze
81
-
82
- # Constructor. this class will call self.field for each DCTERM. In short, all DCTERMS fields will already exist
83
- # when this method returns. Each term is marked as a multivalue string.
84
- def initialize(string_or_url = nil)
85
- super
86
- self.fields = {}
87
- DCTERMS.each do |el|
88
- field el, :string, multiple: true
89
- end
90
- end
91
-
92
- # This method generates the various accessor and mutator methods on self for the datastream metadata attributes.
93
- # each field will have the 2 magic methods:
94
- # name=(arg)
95
- # name
96
- #
97
- #
98
- # Calling any of the generated methods marks self as dirty.
99
- #
100
- # 'tupe' is a datatype, currently :string, :text and :date are supported.
101
- #
102
- # opts is an options hash, which will affect the generation of the xml representation of this datastream.
103
- #
104
- # Currently supported modifiers:
105
- # For +QualifiedDublinCorDatastreams+:
106
- # :element_attrs =>{:foo=>:bar} - hash of xml element attributes
107
- # :xml_node => :nodename - The xml node to be used to represent this object (in dcterms namespace)
108
- # :encoding=>foo, or encodings_scheme - causes an xsi:type attribute to be set to 'foo'
109
- # :multiple=>true - mark this field as a multivalue field (on by default)
110
- #
111
- #
112
- # There is quite a good example of this class in use in spec/examples/oral_history.rb
113
- #
114
- # !! Careful: If you declare two fields that correspond to the same xml node without any qualifiers to differentiate them,
115
- # you will end up replicating the values in the underlying datastream, resulting in mysterious dubling, quadrupling, etc.
116
- # whenever you edit the field's values.
117
- def field(name, tupe = nil, opts = {})
118
- @fields[name.to_s.to_sym] = { type: tupe, values: [] }.merge(opts)
119
- # add term to template
120
- self.class.class_fields << name.to_s
121
- # add term to terminology
122
- return if self.class.terminology.has_term?(name.to_sym)
123
- om_term_opts = { xmlns: "http://purl.org/dc/terms/", namespace_prefix: "dcterms", path: opts[:path] }
124
- term = OM::XML::Term.new(name.to_sym, om_term_opts, self.class.terminology)
125
- self.class.terminology.add_term(term)
126
- term.generate_xpath_queries!
127
- end
128
-
129
- def update_indexed_attributes(params = {}, opts = {})
130
- # if the params are just keys, not an array, make then into an array.
131
- new_params = {}
132
- params.each do |key, val|
133
- if key.is_a? Array
134
- new_params[key] = val
135
- else
136
- new_params[[key.to_sym]] = val
137
- end
138
- end
139
- super(new_params, opts)
140
- end
141
-
142
- def self.xml_template
143
- Nokogiri::XML::Document.parse("<dc xmlns:dcterms='http://purl.org/dc/terms/' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'/>")
144
- end
145
-
146
- def to_solr(solr_doc = {}, _opts = {}) # :nodoc:
147
- @fields.each do |field_key, field_info|
148
- things = send(field_key)
149
- next unless things
150
- field_symbol = ActiveFedora.index_field_mapper.solr_name(field_key, type: field_info[:type])
151
- things.val.each do |val|
152
- ::Solrizer::Extractor.insert_solr_field_value(solr_doc, field_symbol, val)
153
- end
154
- end
155
- solr_doc
156
- end
157
- end
158
- end
@@ -1,49 +0,0 @@
1
- module ActiveFedora::RDF
2
- module DatastreamIndexing
3
- extend ActiveSupport::Concern
4
-
5
- def to_solr(solr_doc = {}, opts = {}) # :nodoc:
6
- super.tap do |new_doc|
7
- solrize_rdf_assertions(opts[:name], new_doc)
8
- end
9
- end
10
-
11
- module ClassMethods
12
- def indexer
13
- ActiveFedora::RDF::IndexingService
14
- end
15
-
16
- def index_config
17
- @index_config ||= ActiveFedora::Indexing::Map.new
18
- end
19
- end
20
-
21
- protected
22
-
23
- def indexing_service
24
- @indexing_service ||= self.class.indexer.new(self)
25
- end
26
-
27
- # Serialize the datastream's RDF relationships to solr
28
- # @param [String] file_path used to prefix the keys in the solr document
29
- # @param [Hash] solr_doc @default an empty Hash
30
- def solrize_rdf_assertions(file_path, solr_doc = {})
31
- solr_doc.merge! indexing_service.generate_solr_document(prefix_method(file_path))
32
- end
33
-
34
- # Returns a function that takes field name and returns a solr document key
35
- def prefix_method(file_path)
36
- ->(field_name) { apply_prefix(field_name, file_path) }
37
- end
38
-
39
- def apply_prefix(name, file_path)
40
- prefix(file_path) + name.to_s
41
- end
42
-
43
- # The string to prefix all solr fields with. Override this method if you want
44
- # a prefix other than the default
45
- def prefix(path)
46
- path ? "#{path.underscore}__" : ''
47
- end
48
- end
49
- end
@@ -1,13 +0,0 @@
1
- require 'rdf/ntriples'
2
-
3
- module ActiveFedora
4
- class NtriplesRDFDatastream < RDFDatastream
5
- def serialization_format
6
- :ntriples
7
- end
8
-
9
- def deprecation_warning
10
- Deprecation.warn(NtriplesRDFDatastream, "NtriplesRDFDatastream is deprecated and will be removed in ActiveFedora 11", caller(2))
11
- end
12
- end
13
- end
@@ -1,173 +0,0 @@
1
- module ActiveFedora
2
- class RDFDatastream < File
3
- include ActiveTriples::NestedAttributes
4
- include RDF::DatastreamIndexing
5
- include ActiveTriples::Properties
6
- include ActiveTriples::Reflection
7
- extend Deprecation
8
-
9
- delegate :rdf_subject, :set_value, :get_values, :attributes=, to: :resource
10
- def initialize(*args)
11
- super
12
- deprecation_warning
13
- end
14
-
15
- def deprecation_warning
16
- Deprecation.warn(RDFDatastream, "RDFDatastream is deprecated and will be removed in ActiveFedora 11", caller(2))
17
- end
18
-
19
- class << self
20
- def rdf_subject(&block)
21
- return @subject_block = block if block_given?
22
-
23
- @subject_block ||= ->(ds) { parent_uri(ds) }
24
- end
25
-
26
- # Trim the last segment off the URI to get the parents uri
27
- def parent_uri(ds)
28
- m = /^(.*)\/[^\/]*$/.match(ds.uri)
29
- if m
30
- m[1]
31
- else
32
- ::RDF::URI.new(nil)
33
- end
34
- end
35
-
36
- ##
37
- # @param [Class] klass an object to set as the resource class, Must be a descendant of
38
- # ActiveTriples::Resource and include ActiveFedora::RDF::Persistence.
39
- #
40
- # @return [Class] the object resource class
41
- def resource_class(klass = nil)
42
- if klass
43
- raise ArgumentError, "#{self} already has a resource_class #{@resource_class}, cannot redefine it to #{klass}" if @resource_class && klass != @resource_class
44
- raise ArgumentError, "#{klass} must be a subclass of ActiveTriples::Resource" unless klass < ActiveTriples::Resource
45
- end
46
-
47
- @resource_class ||= begin
48
- klass = Class.new(klass || ActiveTriples::Resource)
49
- klass.send(:include, RDF::Persistence)
50
- klass
51
- end
52
- end
53
- end
54
-
55
- before_save do
56
- if content.blank?
57
- ActiveFedora::Base.logger.warn "Cowardly refusing to save a datastream with empty content: #{inspect}" if ActiveFedora::Base.logger
58
- if ActiveSupport.respond_to?(:halt_callback_chains_on_return_false)
59
- # For Rails 5+
60
- throw :abort
61
- else
62
- # For Rails <= 4
63
- false
64
- end
65
- end
66
- end
67
-
68
- def parent_uri
69
- self.class.parent_uri(self)
70
- end
71
-
72
- def metadata?
73
- true
74
- end
75
-
76
- def content
77
- serialize
78
- end
79
-
80
- def content=(new_content)
81
- resource.clear!
82
- resource << deserialize(new_content)
83
- content
84
- end
85
-
86
- def uri=(uri)
87
- super
88
- resource.set_subject!(parent_uri) if empty_or_blank_subject?
89
- end
90
-
91
- def content_changed?
92
- return false unless instance_variable_defined? :@resource
93
- return true if empty_or_blank_subject? # can't be serialized because a subject hasn't been assigned yet.
94
- @content = serialize
95
- super
96
- end
97
-
98
- def empty_or_blank_subject?
99
- resource.rdf_subject.node? || resource.rdf_subject.value.blank?
100
- end
101
-
102
- def freeze
103
- @resource.freeze
104
- end
105
-
106
- ##
107
- # The resource is the RdfResource object that stores the graph for
108
- # the datastream and is the central point for its relationship to
109
- # other nodes.
110
- #
111
- # set_value, get_value, and property accessors are delegated to this object.
112
- def resource
113
- @resource ||= begin
114
- klass = self.class.resource_class
115
- klass.properties.merge(self.class.properties).each do |_prop, config|
116
- klass.property(config.term,
117
- predicate: config.predicate,
118
- class_name: config.class_name)
119
- end
120
- klass.accepts_nested_attributes_for(*nested_attributes_options.keys) unless nested_attributes_options.blank?
121
- uri_stub = self.class.rdf_subject.call(self)
122
-
123
- r = klass.new(uri_stub)
124
- r.datastream = self
125
- r << deserialize
126
- r
127
- end
128
- end
129
-
130
- alias graph resource
131
-
132
- def refresh_attributes
133
- @resource = nil
134
- end
135
-
136
- ##
137
- # This method allows for delegation.
138
- # This patches the fact that there's no consistent API for allowing delegation - we're matching the
139
- # OmDatastream implementation as our "consistency" point.
140
- # @TODO: We may need to enable deep RDF delegation at one point.
141
- def term_values(*values)
142
- send(values.first)
143
- end
144
-
145
- def update_indexed_attributes(hash)
146
- hash.each do |fields, value|
147
- fields.each do |field|
148
- send("#{field}=", value)
149
- end
150
- end
151
- end
152
-
153
- def serialize
154
- resource.set_subject!(parent_uri) if parent_uri && rdf_subject.node?
155
- resource.dump serialization_format
156
- end
157
-
158
- def deserialize(data = nil)
159
- return ::RDF::Graph.new if new_record? && data.nil?
160
- data ||= remote_content
161
-
162
- # Because datastream_content can return nil, we should check that here.
163
- return ::RDF::Graph.new if data.nil?
164
-
165
- data.force_encoding('utf-8')
166
- ::RDF::Graph.new << ::RDF::Reader.for(serialization_format).new(data)
167
- end
168
-
169
- def serialization_format
170
- raise "you must override the `serialization_format' method in a subclass"
171
- end
172
- end
173
- end
@@ -1,13 +0,0 @@
1
- require 'rdf/rdfxml'
2
-
3
- module ActiveFedora
4
- class RDFXMLDatastream < RDFDatastream
5
- def serialization_format
6
- :rdfxml
7
- end
8
-
9
- def mime_type
10
- 'text/xml'
11
- end
12
- end
13
- end
@@ -1,3 +0,0 @@
1
- {
2
- "initArgs":{},
3
- "managedList":[]}
@@ -1,31 +0,0 @@
1
- <!--
2
- Licensed to the Apache Software Foundation (ASF) under one or more
3
- contributor license agreements. See the NOTICE file distributed with
4
- this work for additional information regarding copyright ownership.
5
- The ASF licenses this file to You under the Apache License, Version 2.0
6
- (the "License"); you may not use this file except in compliance with
7
- the License. You may obtain a copy of the License at
8
-
9
- http://www.apache.org/licenses/LICENSE-2.0
10
-
11
- Unless required by applicable law or agreed to in writing, software
12
- distributed under the License is distributed on an "AS IS" BASIS,
13
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- See the License for the specific language governing permissions and
15
- limitations under the License.
16
- -->
17
-
18
- <!-- The content of this page will be statically included into the top
19
- of the admin page. Uncomment this as an example to see there the content
20
- will show up.
21
-
22
- <hr>
23
- <i>This line will appear before the first table</i>
24
- <tr>
25
- <td colspan="2">
26
- This row will be appended to the end of the first table
27
- </td>
28
- </tr>
29
- <hr>
30
-
31
- -->
@@ -1,36 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8" ?>
2
- <!--
3
- Licensed to the Apache Software Foundation (ASF) under one or more
4
- contributor license agreements. See the NOTICE file distributed with
5
- this work for additional information regarding copyright ownership.
6
- The ASF licenses this file to You under the Apache License, Version 2.0
7
- (the "License"); you may not use this file except in compliance with
8
- the License. You may obtain a copy of the License at
9
-
10
- http://www.apache.org/licenses/LICENSE-2.0
11
-
12
- Unless required by applicable law or agreed to in writing, software
13
- distributed under the License is distributed on an "AS IS" BASIS,
14
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
- See the License for the specific language governing permissions and
16
- limitations under the License.
17
- -->
18
-
19
- <!-- If this file is found in the config directory, it will only be
20
- loaded once at startup. If it is found in Solr's data
21
- directory, it will be re-loaded every commit.
22
- -->
23
-
24
- <elevate>
25
- <query text="foo bar">
26
- <doc id="1" />
27
- <doc id="2" />
28
- <doc id="3" />
29
- </query>
30
-
31
- <query text="ipod">
32
- <doc id="MA147LL/A" /> <!-- put the actual ipod at the top -->
33
- <doc id="IW-02" exclude="true" /> <!-- exclude this cable -->
34
- </query>
35
-
36
- </elevate>