Revision 8889
Added by Jing Tao about 10 years ago
src/edu/ucsb/nceas/metacat/index/MetacatSolrIndex.java | ||
---|---|---|
172 | 172 |
|
173 | 173 |
} |
174 | 174 |
|
175 |
|
|
176 |
|
|
175 | 177 |
public void submit(Identifier pid, SystemMetadata systemMetadata, Map<String, List<Object>> fields, boolean followRevisions) { |
176 |
submit(pid, systemMetadata, fields, followRevisions, null); |
|
177 |
|
|
178 |
} |
|
179 |
|
|
180 |
public void submit(Identifier pid, SystemMetadata systemMetadata, Map<String, List<Object>> fields, boolean followRevisions, byte[] resourceMapData) { |
|
181 | 178 |
IndexTask task = new IndexTask(); |
182 | 179 |
task.setSystemMetadata(systemMetadata); |
183 | 180 |
task.setFields(fields); |
184 |
if(resourceMapData != null) { |
|
185 |
task.setResourceMapData(resourceMapData); |
|
186 |
} |
|
187 | 181 |
HazelcastService.getInstance().getIndexQueue().put(pid, task); |
188 | 182 |
|
189 | 183 |
// submit older revisions recursively otherwise they stay in the index! |
... | ... | |
191 | 185 |
Identifier obsoletedPid = systemMetadata.getObsoletes(); |
192 | 186 |
SystemMetadata obsoletedSysMeta = HazelcastService.getInstance().getSystemMetadataMap().get(obsoletedPid); |
193 | 187 |
Map<String, List<Object>> obsoletedFields = EventLog.getInstance().getIndexFields(obsoletedPid, Event.READ.xmlValue()); |
194 |
this.submit(obsoletedPid, obsoletedSysMeta , obsoletedFields, followRevisions, resourceMapData);
|
|
188 |
this.submit(obsoletedPid, obsoletedSysMeta , obsoletedFields, followRevisions); |
|
195 | 189 |
} |
196 | 190 |
} |
197 | 191 |
|
192 |
|
|
198 | 193 |
|
199 | 194 |
} |
Also available in: Unified diff
Removed the method which had the byte array attribute.