updated to 1.2
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
|
||||
<!--
|
||||
This file allows you to boost certain search items to the top of search
|
||||
results. You can find out an item's ID by searching directly on the Solr
|
||||
server. The item IDs are in general constructed as follows:
|
||||
Search API:
|
||||
$document->id = $index_id . '-' . $item_id;
|
||||
Apache Solr Search Integration:
|
||||
$document->id = $site_hash . '/' . $entity_type . '/' . $entity->id;
|
||||
|
||||
If you want this file to be automatically re-loaded when a Solr commit takes
|
||||
place (e.g., if you have an automatic script active which updates elevate.xml
|
||||
according to newly-indexed data), place it into Solr's data/ directory.
|
||||
Otherwise, place it with the other configuration files into the conf/
|
||||
directory.
|
||||
|
||||
See http://wiki.apache.org/solr/QueryElevationComponent for more information.
|
||||
-->
|
||||
|
||||
<elevate>
|
||||
<!-- Example for ranking the node #1 first in searches for "example query": -->
|
||||
<!--
|
||||
<query text="example query">
|
||||
<doc id="default_node_index-1" />
|
||||
<doc id="7v3jsc/node/1" />
|
||||
</query>
|
||||
-->
|
||||
<!-- Multiple <query> elements can be specified, contained in one <elevate>. -->
|
||||
<!-- <query text="...">...</query> -->
|
||||
</elevate>
|
||||
@@ -0,0 +1,14 @@
|
||||
# This file contains character mappings for the default fulltext field type.
|
||||
# The source characters (on the left) will be replaced by the respective target
|
||||
# characters before any other processing takes place.
|
||||
# Lines starting with a pound character # are ignored.
|
||||
#
|
||||
# For sensible defaults, use the mapping-ISOLatin1Accent.txt file distributed
|
||||
# with the example application of your Solr version.
|
||||
#
|
||||
# Examples:
|
||||
# "À" => "A"
|
||||
# "\u00c4" => "A"
|
||||
# "\u00c4" => "\u0041"
|
||||
# "æ" => "ae"
|
||||
# "\n" => " "
|
||||
+10
-12
@@ -10,7 +10,7 @@
|
||||
http://wiki.apache.org/solr/SchemaXml
|
||||
-->
|
||||
|
||||
<schema name="drupal-4.0-solr-3.x" version="1.3">
|
||||
<schema name="drupal-4.1-solr-3.x" version="1.3">
|
||||
<!-- attribute "name" is the name of this schema and is only used for display purposes.
|
||||
Applications should change this to reflect the nature of the search collection.
|
||||
version="1.2" is Solr's version number for the schema syntax and semantics. It should
|
||||
@@ -330,14 +330,12 @@
|
||||
-->
|
||||
<fieldtype name="geohash" class="solr.GeoHashField"/>
|
||||
<!-- End added Solr 3.4+ types -->
|
||||
|
||||
<!-- Following is a dynamic way to include other types, added by other contrib modules -->
|
||||
<xi:include href="schema_i18n_types.xml" xmlns:xi="http://www.w3.org/2001/XInclude">
|
||||
<xi:fallback></xi:fallback>
|
||||
</xi:include>
|
||||
|
||||
</types>
|
||||
|
||||
<!-- Following is a dynamic way to include other types, added by other contrib modules -->
|
||||
<xi:include href="schema_extra_types.xml" xmlns:xi="http://www.w3.org/2001/XInclude">
|
||||
<xi:fallback></xi:fallback>
|
||||
</xi:include>
|
||||
|
||||
<fields>
|
||||
<!-- Valid attributes for fields:
|
||||
@@ -521,11 +519,6 @@
|
||||
<!-- This field is used to store access information (e.g. node access grants), as opposed to field data -->
|
||||
<dynamicField name="access_*" type="integer" indexed="true" stored="false" multiValued="true"/>
|
||||
|
||||
<!-- Following is a dynamic way to include other fields, added by other contrib modules -->
|
||||
<xi:include href="schema_i18n_fields.xml" xmlns:xi="http://www.w3.org/2001/XInclude">
|
||||
<xi:fallback></xi:fallback>
|
||||
</xi:include>
|
||||
|
||||
<!-- The following causes solr to ignore any fields that don't already match an existing
|
||||
field name or dynamic field, rather than reporting them as an error.
|
||||
Alternately, change the type="ignored" to some other type e.g. "text" if you want
|
||||
@@ -534,6 +527,11 @@
|
||||
|
||||
</fields>
|
||||
|
||||
<!-- Following is a dynamic way to include other fields, added by other contrib modules -->
|
||||
<xi:include href="schema_extra_fields.xml" xmlns:xi="http://www.w3.org/2001/XInclude">
|
||||
<xi:fallback></xi:fallback>
|
||||
</xi:include>
|
||||
|
||||
<!-- Field to use to determine and enforce document uniqueness.
|
||||
Unless this field is marked with required="false", it will be a required field
|
||||
-->
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
<fields>
|
||||
<!--
|
||||
Adding German dynamic field types to our Solr Schema
|
||||
If you enable this, make sure you have a folder called lang with stopwords_de.txt
|
||||
and synonyms_de.txt in there
|
||||
This also requires to enable the content in schema_extra_types.xml
|
||||
-->
|
||||
<!--
|
||||
<field name="label_de" type="text_de" indexed="true" stored="true" termVectors="true" omitNorms="true"/>
|
||||
<field name="content_de" type="text_de" indexed="true" stored="true" termVectors="true"/>
|
||||
<field name="teaser_de" type="text_de" indexed="false" stored="true"/>
|
||||
<field name="path_alias_de" type="text_de" indexed="true" stored="true" termVectors="true" omitNorms="true"/>
|
||||
<field name="taxonomy_names_de" type="text_de" indexed="true" stored="false" termVectors="true" multiValued="true" omitNorms="true"/>
|
||||
<field name="spell_de" type="text_de" indexed="true" stored="true" multiValued="true"/>
|
||||
<copyField source="label_de" dest="spell_de"/>
|
||||
<copyField source="content_de" dest="spell_de"/>
|
||||
<dynamicField name="tags_de_*" type="text_de" indexed="true" stored="false" omitNorms="true"/>
|
||||
<dynamicField name="ts_de_*" type="text_de" indexed="true" stored="true" multiValued="false" termVectors="true"/>
|
||||
<dynamicField name="tm_de_*" type="text_de" indexed="true" stored="true" multiValued="true" termVectors="true"/>
|
||||
<dynamicField name="tos_de_*" type="text_de" indexed="true" stored="true" multiValued="false" termVectors="true" omitNorms="true"/>
|
||||
<dynamicField name="tom_de_*" type="text_de" indexed="true" stored="true" multiValued="true" termVectors="true" omitNorms="true"/>
|
||||
-->
|
||||
</fields>
|
||||
@@ -0,0 +1,30 @@
|
||||
<types>
|
||||
<!--
|
||||
Adding German language to our Solr Schema German
|
||||
If you enable this, make sure you have a folder called lang with stopwords_de.txt
|
||||
and synonyms_de.txt in there
|
||||
-->
|
||||
<!--
|
||||
<fieldType name="text_de" class="solr.TextField" positionIncrementGap="100">
|
||||
<analyzer type="index">
|
||||
<charFilter class="solr.MappingCharFilterFactory" mapping="mapping-ISOLatin1Accent.txt"/>
|
||||
<tokenizer class="solr.WhitespaceTokenizerFactory"/>
|
||||
<filter class="solr.StopFilterFactory" words="lang/stopwords_de.txt" format="snowball" ignoreCase="true" enablePositionIncrements="true"/>
|
||||
<filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="1" splitOnCaseChange="1" splitOnNumerics="1" catenateWords="1" catenateNumbers="1" catenateAll="0" protected="protwords.txt" preserveOriginal="1"/>
|
||||
<filter class="solr.LowerCaseFilterFactory"/>
|
||||
<filter class="solr.GermanLightStemFilterFactory"/>
|
||||
<filter class="solr.RemoveDuplicatesTokenFilterFactory"/>
|
||||
</analyzer>
|
||||
<analyzer type="query">
|
||||
<charFilter class="solr.MappingCharFilterFactory" mapping="mapping-ISOLatin1Accent.txt"/>
|
||||
<tokenizer class="solr.WhitespaceTokenizerFactory"/>
|
||||
<filter class="solr.SynonymFilterFactory" synonyms="lang/synonyms_de.txt" ignoreCase="true" expand="true"/>
|
||||
<filter class="solr.StopFilterFactory" words="lang/stopwords_de.txt" format="snowball" ignoreCase="true" enablePositionIncrements="true"/>
|
||||
<filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="1" splitOnCaseChange="1" splitOnNumerics="1" catenateWords="0" catenateNumbers="0" catenateAll="0" protected="protwords.txt" preserveOriginal="1"/>
|
||||
<filter class="solr.LowerCaseFilterFactory"/>
|
||||
<filter class="solr.GermanLightStemFilterFactory"/>
|
||||
<filter class="solr.RemoveDuplicatesTokenFilterFactory"/>
|
||||
</analyzer>
|
||||
</fieldType>
|
||||
-->
|
||||
</types>
|
||||
@@ -20,7 +20,7 @@
|
||||
For more details about configurations options that may appear in
|
||||
this file, see http://wiki.apache.org/solr/SolrConfigXml.
|
||||
-->
|
||||
<config>
|
||||
<config name="drupal-4.1-solr-3.x">
|
||||
<!-- In all configuration below, a prefix of "solr." for class names
|
||||
is an alias that causes solr to search appropriate packages,
|
||||
including org.apache.solr.(search|update|request|core|analysis)
|
||||
@@ -47,7 +47,7 @@
|
||||
that you fully re-index after changing this setting as it can
|
||||
affect both how text is indexed and queried.
|
||||
-->
|
||||
<luceneMatchVersion>${luceneVersion:LUCENE_35}</luceneMatchVersion>
|
||||
<luceneMatchVersion>${solr.luceneMatchVersion:LUCENE_35}</luceneMatchVersion>
|
||||
|
||||
<!-- lib directives can be used to instruct Solr to load an Jars
|
||||
identified and use them to resolve any "plugins" specified in
|
||||
@@ -310,8 +310,8 @@
|
||||
triggering a new commit.
|
||||
-->
|
||||
<autoCommit>
|
||||
<maxDocs>10000</maxDocs>
|
||||
<maxTime>120000</maxTime>
|
||||
<maxDocs>${solr.autoCommit.MaxDocs:10000}</maxDocs>
|
||||
<maxTime>${solr.autoCommit.MaxTime:120000}</maxTime>
|
||||
</autoCommit>
|
||||
|
||||
<!-- Update Related Event Listeners
|
||||
@@ -857,7 +857,7 @@
|
||||
<bool name="omitHeader">true</bool>
|
||||
<float name="tie">0.01</float>
|
||||
<!-- Don't abort searches for the pinkPony request handler (set in solrcore.properties) -->
|
||||
<int name="timeAllowed">${pinkPony.timeAllowed:-1}</int>
|
||||
<int name="timeAllowed">${solr.pinkPony.timeAllowed:-1}</int>
|
||||
<str name="q.alt">*:*</str>
|
||||
|
||||
<!-- By default, don't spell check -->
|
||||
@@ -884,7 +884,15 @@
|
||||
<str name="mlt.maxqt">20</str>
|
||||
<str name="mlt.match.include">false</str>
|
||||
<!-- Abort any searches longer than 2 seconds (set in solrcore.properties) -->
|
||||
<int name="timeAllowed">${mlt.timeAllowed:2000}</int>
|
||||
<int name="timeAllowed">${solr.mlt.timeAllowed:2000}</int>
|
||||
</lst>
|
||||
</requestHandler>
|
||||
|
||||
<!-- A minimal query type for doing luene queries -->
|
||||
<requestHandler name="standard" class="solr.SearchHandler">
|
||||
<lst name="defaults">
|
||||
<str name="echoParams">explicit</str>
|
||||
<bool name="omitHeader">true</bool>
|
||||
</lst>
|
||||
</requestHandler>
|
||||
|
||||
@@ -1078,15 +1086,15 @@
|
||||
-->
|
||||
<requestHandler name="/replication" class="solr.ReplicationHandler" >
|
||||
<lst name="master">
|
||||
<str name="enable">${enable.master:false}</str>
|
||||
<str name="enable">${solr.replication.master:false}</str>
|
||||
<str name="replicateAfter">commit</str>
|
||||
<str name="replicateAfter">startup</str>
|
||||
<str name="confFiles">${confFiles}</str>
|
||||
<str name="confFiles">${solr.replication.confFiles:schema.xml,mapping-ISOLatin1Accent.txt,protwords.txt,stopwords.txt,synonyms.txt,elevate.xml}</str>
|
||||
</lst>
|
||||
<lst name="slave">
|
||||
<str name="enable">${enable.slave:false}</str>
|
||||
<str name="masterUrl">${masterCoreUrl}/replication</str>
|
||||
<str name="pollInterval">${pollTime:00:00:60}</str>
|
||||
<str name="enable">${solr.replication.slave:false}</str>
|
||||
<str name="masterUrl">${solr.replication.masterUrl:http://localhost:8983/solr}/replication</str>
|
||||
<str name="pollInterval">${solr.replication.pollInterval:00:00:60}</str>
|
||||
</lst>
|
||||
</requestHandler>
|
||||
|
||||
@@ -1133,73 +1141,6 @@
|
||||
|
||||
-->
|
||||
|
||||
<!-- Spell Check
|
||||
|
||||
The spell check component can return a list of alternative spelling
|
||||
suggestions.
|
||||
|
||||
http://wiki.apache.org/solr/SpellCheckComponent
|
||||
-->
|
||||
<searchComponent name="spellcheck" class="solr.SpellCheckComponent">
|
||||
|
||||
<str name="queryAnalyzerFieldType">textSpell</str>
|
||||
|
||||
<!-- Multiple "Spell Checkers" can be declared and used by this
|
||||
component
|
||||
-->
|
||||
|
||||
<!-- a spellchecker built from a field of the main index, and
|
||||
written to disk
|
||||
-->
|
||||
<lst name="spellchecker">
|
||||
<str name="name">default</str>
|
||||
<str name="field">name</str>
|
||||
<str name="spellcheckIndexDir">spellchecker</str>
|
||||
<!-- uncomment this to require terms to occur in 1% of the documents in order to be included in the dictionary
|
||||
<float name="thresholdTokenFrequency">.01</float>
|
||||
-->
|
||||
</lst>
|
||||
|
||||
<!-- a spellchecker that uses a different distance measure -->
|
||||
<!--
|
||||
<lst name="spellchecker">
|
||||
<str name="name">jarowinkler</str>
|
||||
<str name="field">spell</str>
|
||||
<str name="distanceMeasure">
|
||||
org.apache.lucene.search.spell.JaroWinklerDistance
|
||||
</str>
|
||||
<str name="spellcheckIndexDir">spellcheckerJaro</str>
|
||||
</lst>
|
||||
-->
|
||||
|
||||
<!-- a spellchecker that use an alternate comparator
|
||||
|
||||
comparatorClass be one of:
|
||||
1. score (default)
|
||||
2. freq (Frequency first, then score)
|
||||
3. A fully qualified class name
|
||||
-->
|
||||
<!--
|
||||
<lst name="spellchecker">
|
||||
<str name="name">freq</str>
|
||||
<str name="field">lowerfilt</str>
|
||||
<str name="spellcheckIndexDir">spellcheckerFreq</str>
|
||||
<str name="comparatorClass">freq</str>
|
||||
<str name="buildOnCommit">true</str>
|
||||
-->
|
||||
|
||||
<!-- A spellchecker that reads the list of words from a file -->
|
||||
<!--
|
||||
<lst name="spellchecker">
|
||||
<str name="classname">solr.FileBasedSpellChecker</str>
|
||||
<str name="name">file</str>
|
||||
<str name="sourceLocation">spellings.txt</str>
|
||||
<str name="characterEncoding">UTF-8</str>
|
||||
<str name="spellcheckIndexDir">spellcheckerFile</str>
|
||||
</lst>
|
||||
-->
|
||||
</searchComponent>
|
||||
|
||||
<!-- A request handler for demonstrating the spellcheck component.
|
||||
|
||||
NOTE: This is purely as an example. The whole purpose of the
|
||||
@@ -1435,8 +1376,8 @@
|
||||
default="true"
|
||||
class="solr.highlight.HtmlFormatter">
|
||||
<lst name="defaults">
|
||||
<str name="hl.simple.pre"><![CDATA[<em>]]></str>
|
||||
<str name="hl.simple.post"><![CDATA[</em>]]></str>
|
||||
<str name="hl.simple.pre"><![CDATA[<strong>]]></str>
|
||||
<str name="hl.simple.post"><![CDATA[</strong>]]></str>
|
||||
</lst>
|
||||
</formatter>
|
||||
|
||||
@@ -1642,4 +1583,29 @@
|
||||
-->
|
||||
</admin>
|
||||
|
||||
<!-- Following is a dynamic way to include other components or any customized solrconfig.xml stuff, added by other contrib modules -->
|
||||
<xi:include href="solrconfig_extra.xml" xmlns:xi="http://www.w3.org/2001/XInclude">
|
||||
<xi:fallback>
|
||||
<!-- Spell Check
|
||||
|
||||
The spell check component can return a list of alternative spelling
|
||||
suggestions. This component must be defined in
|
||||
solrconfig_extra.xml if present, since it's used in the search handler.
|
||||
|
||||
http://wiki.apache.org/solr/SpellCheckComponent
|
||||
-->
|
||||
<searchComponent name="spellcheck" class="solr.SpellCheckComponent">
|
||||
<str name="queryAnalyzerFieldType">textSpell</str>
|
||||
|
||||
<!-- a spellchecker built from a field of the main index -->
|
||||
<lst name="spellchecker">
|
||||
<str name="name">default</str>
|
||||
<str name="field">spell</str>
|
||||
<str name="spellcheckIndexDir">spellchecker</str>
|
||||
<str name="buildOnOptimize">true</str>
|
||||
</lst>
|
||||
</searchComponent>
|
||||
</xi:fallback>
|
||||
</xi:include>
|
||||
|
||||
</config>
|
||||
|
||||
@@ -0,0 +1,80 @@
|
||||
<!-- Spell Check
|
||||
|
||||
The spell check component can return a list of alternative spelling
|
||||
suggestions.
|
||||
|
||||
http://wiki.apache.org/solr/SpellCheckComponent
|
||||
-->
|
||||
<searchComponent name="spellcheck" class="solr.SpellCheckComponent">
|
||||
|
||||
<str name="queryAnalyzerFieldType">textSpell</str>
|
||||
|
||||
<!-- Multiple "Spell Checkers" can be declared and used by this
|
||||
component
|
||||
-->
|
||||
|
||||
<!-- a spellchecker built from a field of the main index, and
|
||||
written to disk
|
||||
-->
|
||||
<lst name="spellchecker">
|
||||
<str name="name">default</str>
|
||||
<str name="field">spell</str>
|
||||
<str name="spellcheckIndexDir">spellchecker</str>
|
||||
<str name="buildOnOptimize">true</str>
|
||||
<!-- uncomment this to require terms to occur in 1% of the documents in order to be included in the dictionary
|
||||
<float name="thresholdTokenFrequency">.01</float>
|
||||
-->
|
||||
</lst>
|
||||
|
||||
<!--
|
||||
Adding German spellhecker index to our Solr index
|
||||
This also requires to enable the content in schema_extra_types.xml and schema_extra_fields.xml
|
||||
-->
|
||||
<!--
|
||||
<lst name="spellchecker">
|
||||
<str name="name">spellchecker_de</str>
|
||||
<str name="field">spell_de</str>
|
||||
<str name="spellcheckIndexDir">./spellchecker_de</str>
|
||||
<str name="buildOnOptimize">true</str>
|
||||
</lst>
|
||||
-->
|
||||
|
||||
<!-- a spellchecker that uses a different distance measure -->
|
||||
<!--
|
||||
<lst name="spellchecker">
|
||||
<str name="name">jarowinkler</str>
|
||||
<str name="field">spell</str>
|
||||
<str name="distanceMeasure">
|
||||
org.apache.lucene.search.spell.JaroWinklerDistance
|
||||
</str>
|
||||
<str name="spellcheckIndexDir">spellcheckerJaro</str>
|
||||
</lst>
|
||||
-->
|
||||
|
||||
<!-- a spellchecker that use an alternate comparator
|
||||
|
||||
comparatorClass be one of:
|
||||
1. score (default)
|
||||
2. freq (Frequency first, then score)
|
||||
3. A fully qualified class name
|
||||
-->
|
||||
<!--
|
||||
<lst name="spellchecker">
|
||||
<str name="name">freq</str>
|
||||
<str name="field">lowerfilt</str>
|
||||
<str name="spellcheckIndexDir">spellcheckerFreq</str>
|
||||
<str name="comparatorClass">freq</str>
|
||||
<str name="buildOnCommit">true</str>
|
||||
-->
|
||||
|
||||
<!-- A spellchecker that reads the list of words from a file -->
|
||||
<!--
|
||||
<lst name="spellchecker">
|
||||
<str name="classname">solr.FileBasedSpellChecker</str>
|
||||
<str name="name">file</str>
|
||||
<str name="sourceLocation">spellings.txt</str>
|
||||
<str name="characterEncoding">UTF-8</str>
|
||||
<str name="spellcheckIndexDir">spellcheckerFile</str>
|
||||
</lst>
|
||||
-->
|
||||
</searchComponent>
|
||||
@@ -1,10 +1,12 @@
|
||||
#solrcore.properties for this specific core
|
||||
enable.master=false
|
||||
enable.slave=false
|
||||
pollTime=00:00:60
|
||||
masterCoreUrl=http://localhost:8983/solr
|
||||
confFiles=schema.xml,mapping-ISOLatin1Accent.txt,protwords.txt,stopwords.txt,synonyms.txt,elevate.xml
|
||||
mlt.timeAllowed=2000
|
||||
# You should not set your luceneVersion to anything lower then your Solr Version
|
||||
luceneVersion=LUCENE_35
|
||||
pinkPony.timeAllowed=-1
|
||||
# Defines Solr properties for this specific core.
|
||||
solr.replication.master=false
|
||||
solr.replication.slave=false
|
||||
solr.replication.pollInterval=00:00:60
|
||||
solr.replication.masterUrl=http://localhost:8983/solr
|
||||
solr.replication.confFiles=schema.xml,mapping-ISOLatin1Accent.txt,protwords.txt,stopwords.txt,synonyms.txt,elevate.xml
|
||||
solr.mlt.timeAllowed=2000
|
||||
# You should not set your luceneVersion to anything lower then your Solr Version.
|
||||
solr.luceneMatchVersion=LUCENE_35
|
||||
solr.pinkPony.timeAllowed=-1
|
||||
solr.autoCommit.MaxDocs=10000
|
||||
solr.autoCommit.MaxTime=120000
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
# Contains words which shouldn't be indexed for fulltext fields, e.g., because
|
||||
# they're to common. For documentation of the format, see
|
||||
# http://wiki.apache.org/solr/AnalyzersTokenizersTokenFilters#solr.StopFilterFactory
|
||||
# (Lines starting with a pound character # are ignored.)
|
||||
@@ -0,0 +1,3 @@
|
||||
# Contains synonyms to use for your index. For the format used, see
|
||||
# http://wiki.apache.org/solr/AnalyzersTokenizersTokenFilters#solr.SynonymFilterFactory
|
||||
# (Lines starting with a pound character # are ignored.)
|
||||
Reference in New Issue
Block a user