Skip to content

Commit f08f78f

Browse files
committed
Updated from Solr 3.6 to 4.9.x
1 parent 34d98fb commit f08f78f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

89 files changed

+182
-3350
lines changed

docker-images/solr/Dockerfile

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
FROM debian:latest
22

3-
# Install Solr 3.6
3+
# Install Solr
44
RUN apt-get update -qy && \
55
apt-get install -qy wget openjdk-7-jre && \
6-
wget http://archive.apache.org/dist/lucene/solr/3.6.2/apache-solr-3.6.2.tgz && \
7-
tar -xvf apache-solr-3.6.2.tgz -C /usr/local && \
8-
rm apache-solr-3.6.2.tgz && \
6+
wget http://archive.apache.org/dist/lucene/solr/4.9.1/solr-4.9.1.tgz && \
7+
tar -xvf solr-4.9.1.tgz -C /usr/local && \
8+
rm solr-4.9.1.tgz && \
99
apt-get -qy purge wget && \
1010
apt-get clean && \
1111
rm -rf /tmp/*
1212

1313
# Configure Solr
14-
ENV SOLRPATH /usr/local/apache-solr-3.6.2/example
15-
COPY conf/solr $SOLRPATH/solr/conf/
14+
ENV SOLRPATH /usr/local/solr-4.9.1/example
15+
COPY conf/* $SOLRPATH/solr/collection1/conf/
1616

1717
WORKDIR $SOLRPATH
1818

docker-images/solr/conf/schema.xml

+62
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
<?xml version="1.0" encoding="UTF-8" ?>
2+
<!--
3+
/**
4+
* JeroenVermeulen_Solarium
5+
*
6+
* NOTICE OF LICENSE
7+
*
8+
* This source file is subject to the Open Software License (OSL 3.0)
9+
* that is bundled with this package in the file LICENSE.txt.
10+
* It is also available through the world-wide-web at this URL:
11+
* http://opensource.org/licenses/osl-3.0.php
12+
*
13+
* DISCLAIMER
14+
*
15+
* Do not edit or add to this file if you wish to upgrade this Module to
16+
* newer versions in the future.
17+
*
18+
* @category JeroenVermeulen
19+
* @package JeroenVermeulen_Solarium
20+
* @copyright Copyright (c) 2014 Jeroen Vermeulen (http://www.jeroenvermeulen.eu)
21+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
22+
*/
23+
-->
24+
<!--suppress XmlUnboundNsPrefix -->
25+
<schema name="magento_fulltext" version="101">
26+
27+
<types>
28+
<fieldType name="int" class="solr.TrieIntField" precisionStep="0" positionIncrementGap="0"/>
29+
<fieldType name="string" class="solr.StrField" sortMissingLast="true"/>
30+
<fieldType name="long" class="solr.TrieLongField" precisionStep="0" positionIncrementGap="0"/>
31+
<fieldType name="text_general" class="solr.TextField" positionIncrementGap="100">
32+
<analyzer>
33+
<tokenizer class="solr.StandardTokenizerFactory"/>
34+
<filter class="solr.LowerCaseFilterFactory"/>
35+
<filter class="solr.ShingleFilterFactory" maxShingleSize="3" outputUnigrams="true"/>
36+
</analyzer>
37+
</fieldType>
38+
</types>
39+
40+
<fields>
41+
<!-- Magento Fulltext Id, uniqueKey needs to be a string for QueryElevationComponent -->
42+
<field name="id" type="string" indexed="true" stored="true" required="true"/>
43+
44+
<!-- Magento Product Id, must be a string to be able to group by in Solr 3.x -->
45+
<field name="product_id" type="string" indexed="true" stored="true" required="true"/>
46+
47+
<!-- Magento Store Id -->
48+
<field name="store_id" type="int" indexed="true" stored="true" required="true"/>
49+
50+
<!-- Magento Product Fulltext -->
51+
<field name="text" type="text_general" indexed="true" stored="false"/>
52+
53+
<field name="_version_" type="long" indexed="true" stored="true"/>
54+
</fields>
55+
56+
<uniqueKey>id</uniqueKey>
57+
58+
<defaultSearchField>text</defaultSearchField>
59+
60+
<solrQueryParser defaultOperator="AND"/>
61+
62+
</schema>

docker-images/solr/conf/solr/protwords.txt

-21
This file was deleted.

docker-images/solr/conf/solr/protwords_cs.txt

Whitespace-only changes.

docker-images/solr/conf/solr/protwords_da.txt

Whitespace-only changes.

docker-images/solr/conf/solr/protwords_de.txt

Whitespace-only changes.

docker-images/solr/conf/solr/protwords_el.txt

Whitespace-only changes.

docker-images/solr/conf/solr/protwords_en.txt

Whitespace-only changes.

docker-images/solr/conf/solr/protwords_es.txt

Whitespace-only changes.

docker-images/solr/conf/solr/protwords_fi.txt

Whitespace-only changes.

docker-images/solr/conf/solr/protwords_fr.txt

Whitespace-only changes.

docker-images/solr/conf/solr/protwords_it.txt

Whitespace-only changes.

docker-images/solr/conf/solr/protwords_ja.txt

Whitespace-only changes.

docker-images/solr/conf/solr/protwords_ko.txt

Whitespace-only changes.

docker-images/solr/conf/solr/protwords_nb.txt

Whitespace-only changes.

docker-images/solr/conf/solr/protwords_nl.txt

Whitespace-only changes.

docker-images/solr/conf/solr/protwords_pt.txt

Whitespace-only changes.

docker-images/solr/conf/solr/protwords_ro.txt

Whitespace-only changes.

docker-images/solr/conf/solr/protwords_ru.txt

Whitespace-only changes.

docker-images/solr/conf/solr/protwords_sv.txt

Whitespace-only changes.

docker-images/solr/conf/solr/protwords_th.txt

Whitespace-only changes.

docker-images/solr/conf/solr/protwords_tr.txt

Whitespace-only changes.

docker-images/solr/conf/solr/protwords_zh.txt

Whitespace-only changes.

docker-images/solr/conf/solr/schema.xml

-1,608
This file was deleted.

0 commit comments

Comments
 (0)