1 | # Licensed to the Apache Software Foundation (ASF) under one or more |
---|
2 | # contributor license agreements. See the NOTICE file distributed with |
---|
3 | # this work for additional information regarding copyright ownership. |
---|
4 | # The ASF licenses this file to You under the Apache License, Version 2.0 |
---|
5 | # (the "License"); you may not use this file except in compliance with |
---|
6 | # the License. You may obtain a copy of the License at |
---|
7 | # |
---|
8 | # http://www.apache.org/licenses/LICENSE-2.0 |
---|
9 | # |
---|
10 | # Unless required by applicable law or agreed to in writing, software |
---|
11 | # distributed under the License is distributed on an "AS IS" BASIS, |
---|
12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
---|
13 | # See the License for the specific language governing permissions and |
---|
14 | # limitations under the License. |
---|
15 | |
---|
16 | Solr DataImportHandler example configuration |
---|
17 | -------------------------------------------- |
---|
18 | |
---|
19 | Change to the parent (example) directory. Start solr by executing the following command |
---|
20 | |
---|
21 | > cd .. |
---|
22 | > java -Dsolr.solr.home="./example-DIH/solr/" -jar start.jar |
---|
23 | |
---|
24 | in this directory, and when Solr is started connect to |
---|
25 | |
---|
26 | http://localhost:8983/solr/ |
---|
27 | |
---|
28 | To import data from the hsqldb database, connect to |
---|
29 | |
---|
30 | http://localhost:8983/solr/db/dataimport?command=full-import |
---|
31 | |
---|
32 | To import data from the slashdot feed, connect to |
---|
33 | |
---|
34 | http://localhost:8983/solr/rss/dataimport?command=full-import |
---|
35 | |
---|
36 | To import data from your imap server |
---|
37 | |
---|
38 | 1. Edit the example-DIH/solr/mail/conf/data-config.xml and add details about username, password, imap server |
---|
39 | 2. Connect to http://localhost:8983/solr/mail/dataimport?command=full-import |
---|
40 | |
---|
41 | To copy data from db Solr core, connect to |
---|
42 | |
---|
43 | http://localhost:8983/solr/solr/dataimport?command=full-import |
---|
44 | |
---|
45 | See also README.txt in the solr subdirectory, and check |
---|
46 | http://wiki.apache.org/solr/DataImportHandler for detailed |
---|
47 | usage guide and tutorial. |
---|