mirror of
https://github.com/silverstripe/silverstripe-fulltextsearch
synced 2024-10-22 14:05:29 +02:00
3d18903552
Solr::configure_server now takes "version" as one of the keys in the option array, and behaves slightly differently depending on whether that version is 3 or 4, to provide support for both Solr versions. The Solr extras and templates have also moved, so that different versions can be provided for the two different Solr versions.
67 lines
2.4 KiB
Scheme
67 lines
2.4 KiB
Scheme
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<!--
|
|
Licensed to the Apache Software Foundation (ASF) under one or more
|
|
contributor license agreements. See the NOTICE file distributed with
|
|
this work for additional information regarding copyright ownership.
|
|
The ASF licenses this file to You under the Apache License, Version 2.0
|
|
(the "License"); you may not use this file except in compliance with
|
|
the License. You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
-->
|
|
|
|
<!--
|
|
This is the Solr schema file. This file should be named "schema.xml" and
|
|
should be in the conf directory under the solr home
|
|
(i.e. ./solr/conf/schema.xml by default)
|
|
or located where the classloader for the Solr webapp can find it.
|
|
|
|
This example schema is the recommended starting point for users.
|
|
It should be kept correct and concise, usable out-of-the-box.
|
|
|
|
For more information, on how to customize this file, please see
|
|
http://wiki.apache.org/solr/SchemaXml
|
|
|
|
PERFORMANCE NOTE: this schema includes many optional features and should not
|
|
be used for benchmarking. To improve performance one could
|
|
- set stored="false" for all fields possible (esp large fields) when you
|
|
only need to search on the field but don't need to return the original
|
|
value.
|
|
- set indexed="false" if you don't need to search on the field, but only
|
|
return the field as a result of searching on other indexed fields.
|
|
- remove all unneeded copyField statements
|
|
- for best index size and searching performance, set "index" to false
|
|
for all general text fields, use copyField to copy them to the
|
|
catchall "text" field, and use that for searching.
|
|
- For maximum indexing performance, use the StreamingUpdateSolrServer
|
|
java client.
|
|
- Remember to run the JVM in server mode, and use a higher logging level
|
|
that avoids logging every request
|
|
-->
|
|
|
|
<schema name="$IndexName" version="1.3">
|
|
|
|
<types>
|
|
$Types
|
|
</types>
|
|
|
|
<fields>
|
|
$FieldDefinitions
|
|
</fields>
|
|
|
|
$CopyFieldDefinitions
|
|
|
|
<uniqueKey>_documentid</uniqueKey>
|
|
|
|
<defaultSearchField>_text</defaultSearchField>
|
|
|
|
<solrQueryParser defaultOperator="OR"/>
|
|
|
|
</schema>
|