comparison conf/solrindex-mapping.xml @ 0:3b37d71af924 default tip

iniitial
author dwinter
date Tue, 26 Feb 2013 15:50:30 +0100
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:3b37d71af924
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 <mapping>
20 <!-- Simple mapping of fields created by Nutch IndexingFilters
21 to fields defined (and expected) in Solr schema.xml.
22
23 Any fields in NutchDocument that match a name defined
24 in field/@source will be renamed to the corresponding
25 field/@dest.
26 Additionally, if a field name (before mapping) matches
27 a copyField/@source then its values will be copied to
28 the corresponding copyField/@dest.
29
30 uniqueKey has the same meaning as in Solr schema.xml
31 and defaults to "id" if not defined.
32 -->
33 <fields>
34 <field dest="content" source="content"/>
35 <field dest="title" source="title"/>
36 <field dest="host" source="host"/>
37 <field dest="segment" source="segment"/>
38 <field dest="boost" source="boost"/>
39 <field dest="digest" source="digest"/>
40 <field dest="tstamp" source="tstamp"/>
41 <field dest="id" source="url"/>
42 <copyField source="url" dest="url"/>
43 </fields>
44 <uniqueKey>id</uniqueKey>
45 </mapping>