krikri 0.12.0 → 0.12.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (46) hide show
  1. checksums.yaml +4 -4
  2. data/app/models/krikri/activity.rb +34 -8
  3. data/lib/generators/krikri/templates/schema.xml +1 -0
  4. data/lib/generators/krikri/templates/solrconfig.xml +1 -0
  5. data/lib/krikri/async_uri_getter.rb +27 -0
  6. data/lib/krikri/engine.rb +19 -4
  7. data/lib/krikri/enricher.rb +3 -6
  8. data/lib/krikri/entity_behavior.rb +57 -11
  9. data/lib/krikri/entity_behaviors/aggregation_entity_behavior.rb +1 -1
  10. data/lib/krikri/entity_behaviors/original_record_entity_behavior.rb +1 -1
  11. data/lib/krikri/entity_consumer.rb +40 -17
  12. data/lib/krikri/indexer.rb +7 -7
  13. data/lib/krikri/mapper.rb +23 -14
  14. data/lib/krikri/search_index.rb +4 -0
  15. data/lib/krikri/software_agent.rb +8 -4
  16. data/lib/krikri/version.rb +1 -1
  17. data/spec/internal/Gemfile +3 -3
  18. data/spec/internal/Gemfile.lock +28 -28
  19. data/spec/internal/app/assets/javascripts/application.js +1 -1
  20. data/spec/internal/config/initializers/blacklight_initializer.rb +1 -1
  21. data/spec/internal/config/initializers/devise.rb +2 -2
  22. data/spec/internal/config/secrets.yml +2 -2
  23. data/spec/internal/db/development.sqlite3 +0 -0
  24. data/spec/internal/db/migrate/{20160304151204_devise_create_users.rb → 20160226160200_devise_create_users.rb} +0 -0
  25. data/spec/internal/db/migrate/{20160304151247_create_searches.blacklight.rb → 20160226160226_create_searches.blacklight.rb} +0 -0
  26. data/spec/internal/db/migrate/{20160304151248_create_bookmarks.blacklight.rb → 20160226160227_create_bookmarks.blacklight.rb} +0 -0
  27. data/spec/internal/db/migrate/{20160304151249_add_polymorphic_type_to_bookmarks.blacklight.rb → 20160226160228_add_polymorphic_type_to_bookmarks.blacklight.rb} +0 -0
  28. data/spec/internal/db/schema.rb +1 -1
  29. data/spec/internal/db/test.sqlite3 +0 -0
  30. data/spec/internal/log/development.log +92 -92
  31. data/spec/lib/krikri/async_uri_getter_spec.rb +31 -7
  32. data/spec/lib/krikri/entity_consumer_spec.rb +37 -7
  33. data/spec/lib/krikri/harvester_spec.rb +7 -3
  34. data/spec/lib/krikri/indexer_spec.rb +7 -4
  35. data/spec/lib/krikri/mapper_agent_spec.rb +10 -9
  36. data/spec/lib/krikri/search_index_spec.rb +3 -6
  37. data/spec/models/activity_spec.rb +32 -0
  38. data/spec/models/dpla/map/aggregation_spec.rb +40 -21
  39. data/spec/models/provider_spec.rb +2 -9
  40. data/spec/spec_helper.rb +1 -2
  41. data/spec/support/shared_contexts/indexed_item.rb +1 -3
  42. data/spec/support/shared_examples/software_agent.rb +1 -1
  43. metadata +11 -14
  44. data/lib/generators/krikri/templates/schema.xml +0 -767
  45. data/lib/generators/krikri/templates/solrconfig.xml +0 -160
  46. data/spec/internal/log/test.log +0 -8537
@@ -1,160 +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
- <!--
20
- This is a stripped down config file used for a simple example...
21
- It is *not* a good example to work from.
22
- -->
23
- <config>
24
- <luceneMatchVersion>LUCENE_40</luceneMatchVersion>
25
- <!-- The DirectoryFactory to use for indexes.
26
- solr.StandardDirectoryFactory, the default, is filesystem based.
27
- solr.RAMDirectoryFactory is memory based, not persistent, and doesn't work with replication. -->
28
- <directoryFactory name="DirectoryFactory" class="${solr.directoryFactory:solr.StandardDirectoryFactory}"/>
29
-
30
- <lib dir="../lib/contrib/analysis-extras/lib" />
31
- <lib dir="../lib/contrib/analysis-extras/lucene-libs" />
32
-
33
- <dataDir>${solr.blacklight-core.data.dir:}</dataDir>
34
-
35
- <requestHandler name="/replication" class="solr.ReplicationHandler" startup="lazy" />
36
-
37
- <requestDispatcher handleSelect="true" >
38
- <requestParsers enableRemoteStreaming="false" multipartUploadLimitInKB="2048" />
39
- </requestDispatcher>
40
-
41
- <requestHandler name="standard" class="solr.StandardRequestHandler" />
42
- <requestHandler name="/analysis/field" startup="lazy" class="solr.FieldAnalysisRequestHandler" />
43
- <requestHandler name="/update" class="solr.UpdateRequestHandler" />
44
- <requestHandler name="/admin/" class="org.apache.solr.handler.admin.AdminHandlers" />
45
-
46
- <requestHandler name="/admin/ping" class="solr.PingRequestHandler">
47
- <lst name="invariants">
48
- <str name="q">solrpingquery</str>
49
- </lst>
50
- <lst name="defaults">
51
- <str name="echoParams">all</str>
52
- </lst>
53
- </requestHandler>
54
-
55
- <!-- config for the admin interface -->
56
- <admin>
57
- <defaultQuery>solr</defaultQuery>
58
- </admin>
59
-
60
- <!-- SearchHandler
61
-
62
- http://wiki.apache.org/solr/SearchHandler
63
-
64
- For processing Search Queries, the primary Request Handler
65
- provided with Solr is "SearchHandler" It delegates to a sequent
66
- of SearchComponents (see below) and supports distributed
67
- queries across multiple shards
68
- -->
69
- <requestHandler name="search" class="solr.SearchHandler" default="true">
70
- <!-- default values for query parameters can be specified, these
71
- will be overridden by parameters in the request
72
- -->
73
- <lst name="defaults">
74
- <str name="defType">dismax</str>
75
- <str name="echoParams">explicit</str>
76
- <int name="rows">10</int>
77
-
78
- <str name="q.alt">*:*</str>
79
- <str name="mm">2&lt;-1 5&lt;-2 6&lt;90%</str>
80
-
81
- <!-- TODO: Configure qf and pf for better search results -->
82
-
83
- <!-- this qf and pf are used by default, if not otherwise specified by
84
- client. The default blacklight_config will use these for the
85
- "keywords" search. See the author_qf/author_pf, title_qf, etc
86
- below, which the default blacklight_config will specify for
87
- those searches. You may also be interested in:
88
- http://wiki.apache.org/solr/LocalParams
89
- -->
90
-
91
- <str name="qf">
92
- dataProvider_providedLabel
93
- sourceResource_collection_title
94
- sourceResource_creator_providedLabel
95
- sourceResource_date_providedLabel
96
- sourceResource_description
97
- sourceResource_format
98
- sourceResource_rights
99
- sourceResource_spatial_providedLabel
100
- sourceResource_subject_providedLabel
101
- sourceResource_title
102
- sourceResource_type_name
103
- text
104
- </str>
105
-
106
- <str name="pf">
107
- dataProvider_providedLabel
108
- sourceResource_collection_title
109
- sourceResource_creator_providedLabel
110
- sourceResource_date_providedLabel
111
- sourceResource_description
112
- sourceResource_format
113
- sourceResource_rights
114
- sourceResource_spatial_providedLabel
115
- sourceResource_subject_providedLabel
116
- sourceResource_title
117
- sourceResource_type_name
118
- text
119
- </str>
120
-
121
- <int name="ps">3</int>
122
- <float name="tie">0.01</float>
123
-
124
- <str name="fl">
125
- id,
126
- dataProvider_providedLabel,
127
- preview_id,
128
- sourceResource_collection_title,
129
- sourceResource_creator_providedLabel,
130
- sourceResource_date_providedLabel,
131
- sourceResource_description,
132
- sourceResource_format,
133
- sourceResource_rights,
134
- sourceResource_spatial_providedLabel,
135
- sourceResource_subject_providedLabel,
136
- sourceResource_title,
137
- sourceResource_type_name
138
- </str>
139
-
140
- <str name="facet">true</str>
141
- <str name="facet.mincount">1</str>
142
- <str name="facet.limit">10</str>
143
- <str name="facet.field">dataProvider_providedLabel</str>
144
-
145
- </lst>
146
-
147
- </requestHandler>
148
-
149
- <!-- for requests to get a single document; use id=666 instead of q=id:666 -->
150
- <requestHandler name="document" class="solr.SearchHandler" >
151
- <lst name="defaults">
152
- <str name="echoParams">all</str>
153
- <str name="fl">*</str>
154
- <str name="rows">1</str>
155
- <str name="q">{!raw f=id v=$id}</str> <!-- use id=666 instead of q=id:666 -->
156
- </lst>
157
- </requestHandler>
158
-
159
- </config>
160
-