-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
514 additions
and
248 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# Place any default configuration for solr_wrapper here | ||
# port: 8983 | ||
collection: | ||
dir: solr_conf/conf/ | ||
dir: solr/config/ | ||
name: blacklight-core |
347 changes: 347 additions & 0 deletions
347
lib/generators/spotlight/templates/solr/config/schema.xml
Large diffs are not rendered by default.
Oops, something went wrong.
163 changes: 163 additions & 0 deletions
163
lib/generators/spotlight/templates/solr/config/solrconfig.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,163 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<config> | ||
<!-- NOTE: various comments and unused configuration possibilities have been purged | ||
from this file. Please refer to http://wiki.apache.org/solr/SolrConfigXml, | ||
as well as the default solrconfig file included with Solr --> | ||
|
||
<abortOnConfigurationError>${solr.abortOnConfigurationError:true}</abortOnConfigurationError> | ||
|
||
<luceneMatchVersion>6.1.0</luceneMatchVersion> | ||
|
||
<directoryFactory name="DirectoryFactory" class="${solr.directoryFactory:solr.StandardDirectoryFactory}"/> | ||
|
||
<updateHandler class="solr.DirectUpdateHandler2"> | ||
<updateLog> | ||
<str name="dir">${solr.core0.data.dir:}</str> | ||
</updateLog> | ||
</updateHandler> | ||
|
||
<!-- solr lib dirs --> | ||
<lib dir="${solr.install.dir:../../../..}/contrib/analysis-extras/lib" /> | ||
<lib dir="${solr.install.dir:../../../..}/contrib/analysis-extras/lucene-libs" /> | ||
|
||
<dataDir>${solr.data.dir:}</dataDir> | ||
|
||
<requestHandler name="search" class="solr.SearchHandler" default="true"> | ||
<!-- default values for query parameters can be specified, these | ||
will be overridden by parameters in the request | ||
--> | ||
<lst name="defaults"> | ||
<str name="defType">edismax</str> | ||
<str name="echoParams">explicit</str> | ||
<str name="q.alt">*:*</str> | ||
<str name="mm">2<-1 5<-2 6<90%</str> | ||
<int name="qs">1</int> | ||
<int name="ps">2</int> | ||
<float name="tie">0.01</float> | ||
<!-- this qf and pf are used by default, if not otherwise specified by | ||
client. The default blacklight_config will use these for the | ||
"keywords" search. See the author_qf/author_pf, title_qf, etc | ||
below, which the default blacklight_config will specify for | ||
those searches. You may also be interested in: | ||
http://wiki.apache.org/solr/LocalParams | ||
--> | ||
<str name="qf"> | ||
id | ||
full_title_tesim | ||
short_title_tesim | ||
alternative_title_tesim | ||
active_fedora_model_ssi | ||
title_tesim | ||
author_tesim | ||
subject_tesim | ||
all_text_timv | ||
</str> | ||
<str name="pf"> | ||
all_text_timv^10 | ||
</str> | ||
|
||
<str name="author_qf"> | ||
author_tesim | ||
</str> | ||
<str name="author_pf"> | ||
</str> | ||
<str name="title_qf"> | ||
title_tesim | ||
full_title_tesim | ||
short_title_tesim | ||
alternative_title_tesim | ||
</str> | ||
<str name="title_pf"> | ||
</str> | ||
<str name="subject_qf"> | ||
subject_tesim | ||
</str> | ||
<str name="subject_pf"> | ||
</str> | ||
|
||
<str name="fl"> | ||
*, | ||
score | ||
</str> | ||
|
||
<str name="facet">true</str> | ||
<str name="facet.mincount">1</str> | ||
<str name="facet.limit">10</str> | ||
<str name="facet.field">active_fedora_model_ssi</str> | ||
<str name="facet.field">subject_ssim</str> | ||
|
||
<str name="spellcheck">true</str> | ||
<str name="spellcheck.dictionary">default</str> | ||
<str name="spellcheck.onlyMorePopular">true</str> | ||
<str name="spellcheck.extendedResults">true</str> | ||
<str name="spellcheck.collate">false</str> | ||
<str name="spellcheck.count">5</str> | ||
|
||
</lst> | ||
<arr name="last-components"> | ||
<str>spellcheck</str> | ||
</arr> | ||
</requestHandler> | ||
|
||
<requestHandler name="permissions" class="solr.SearchHandler" > | ||
<lst name="defaults"> | ||
<str name="facet">off</str> | ||
<str name="echoParams">all</str> | ||
<str name="rows">1</str> | ||
<str name="q">{!raw f=id v=$id}</str> <!-- use id=666 instead of q=id:666 --> | ||
<str name="fl"> | ||
id, | ||
access_ssim, | ||
discover_access_group_ssim,discover_access_person_ssim, | ||
read_access_group_ssim,read_access_person_ssim, | ||
edit_access_group_ssim,edit_access_person_ssim, | ||
depositor_ti, | ||
embargo_release_date_dtsi | ||
inheritable_access_ssim, | ||
inheritable_discover_access_group_ssim,inheritable_discover_access_person_ssim, | ||
inheritable_read_access_group_ssim,inheritable_read_access_person_ssim, | ||
inheritable_edit_access_group_ssim,inheritable_edit_access_person_ssim, | ||
inheritable_embargo_release_date_dtsi | ||
</str> | ||
</lst> | ||
</requestHandler> | ||
|
||
<requestHandler name="standard" class="solr.SearchHandler"> | ||
<lst name="defaults"> | ||
<str name="echoParams">explicit</str> | ||
<str name="defType">lucene</str> | ||
</lst> | ||
</requestHandler> | ||
|
||
<!-- for requests to get a single document; use id=666 instead of q=id:666 --> | ||
<requestHandler name="document" class="solr.SearchHandler" > | ||
<lst name="defaults"> | ||
<str name="echoParams">all</str> | ||
<str name="fl">*</str> | ||
<str name="rows">1</str> | ||
<str name="q">{!raw f=id v=$id}</str> <!-- use id=666 instead of q=id:666 --> | ||
</lst> | ||
</requestHandler> | ||
|
||
|
||
<searchComponent name="spellcheck" class="solr.SpellCheckComponent"> | ||
<str name="queryAnalyzerFieldType">textSpell</str> | ||
<!-- Multiple "Spell Checkers" can be declared and used by this component | ||
(e.g. for title_spell field) | ||
--> | ||
<lst name="spellchecker"> | ||
<str name="name">default</str> | ||
<str name="field">spell</str> | ||
<str name="spellcheckIndexDir">./spell</str> | ||
<str name="buildOnOptimize">true</str> | ||
</lst> | ||
</searchComponent> | ||
|
||
<requestHandler name="/replication" class="solr.ReplicationHandler" startup="lazy" /> | ||
|
||
<requestDispatcher handleSelect="true" > | ||
<requestParsers enableRemoteStreaming="true" multipartUploadLimitInKB="2048" /> | ||
</requestDispatcher> | ||
|
||
<requestHandler name="/analysis/field" startup="lazy" class="solr.FieldAnalysisRequestHandler" /> | ||
</config> |
159 changes: 0 additions & 159 deletions
159
lib/generators/spotlight/templates/solr_conf/conf/schema.xml
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.