-
Notifications
You must be signed in to change notification settings - Fork 38
Expand file tree
/
Copy pathCDXCollection.xml
More file actions
74 lines (62 loc) · 2.71 KB
/
CDXCollection.xml
File metadata and controls
74 lines (62 loc) · 2.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd"
default-init-method="init">
<!--
This file contains a WaybackCollection implementation using a manually
created and administered CDX index file(s). It also uses the experimental
FlatFileResourceFileLocationDB, which enables mapping between ARC/WARC file
names and their absolute paths/URLs using a sorted text file
"path-index.txt".
The format of the path-index.txt is
<NAME><TAB><PATH-OR-URL>
Be sure to set the environment variable LC_ALL to "C" before sorting CDX
files and path-index.txt files.
All paths in this file reference the Spring property placeholder
"wayback.basedir" defined in wayback.xml. That value may be changed to
alter top-level prefixes for these paths, or the values in this file can
be changed directly for further flexibility.
-->
<bean id="localcdxcollection" class="org.archive.wayback.webapp.WaybackCollection">
<property name="resourceStore">
<bean class="org.archive.wayback.resourcestore.LocationDBResourceStore">
<property name="db" ref="resourcefilelocationdb" />
</bean>
</property>
<property name="resourceIndex">
<bean class="org.archive.wayback.resourceindex.LocalResourceIndex">
<property name="canonicalizer" ref="waybackCanonicalizer" />
<property name="source">
<!--
A single CDX SearchResultSource example.
Prior value was ${wail.basedir}/archiveIndexes/index.cdx , but the variable in the path
causes the index to not be accessing from OpenWayback web UI, so hard-code the path for now
20250312
-->
<bean class="org.archive.wayback.resourceindex.cdx.CDXIndex">
<property name="path" value="/Applications/WAIL.app/Contents/archiveIndexes/index.cdx" />
</bean>
<!--
A CompositeSearchResultSource example, that allows searching through
multiple sorted CDX files on each request, merging results into a single
logical index.
-->
<!--
<bean class="org.archive.wayback.resourceindex.CompositeSearchResultSource">
<property name="CDXSources">
<list>
<value>${wayback.basedir}/cdx-index/index-1.cdx</value>
<value>${wayback.basedir}/cdx-index/index-2.cdx</value>
</list>
</property>
</bean>
-->
</property>
<property name="maxRecords" value="10000" />
<property name="dedupeRecords" value="true" />
</bean>
</property>
</bean>
</beans>