Reputation: 1457
I'm new to solr. After i tried using Solr 5 client. I want to try Solr 5 source code. So my questions are,
currency.xml
, elevate.xml
, managed-schema
(generated schema), params.json
, protwords.txt
, solrconfig.xml
, stopwords.txt
synonyms.txt
on my conf
folder and there's no schema.xml
. Did i miss something?I really appriciate your answer. Thank's
Upvotes: 0
Views: 551
Reputation: 1361
When you create a core in Solr 5 it comes by default with schemaless mode active. This mode make solr schema not visible and all changes need to be done with schema API. If you want to manage schema by yourself you could rename managed-schema
to schema.xml
and modify solrconfig.xml
to not use schemaless mode. In solrconfig.xml
replace
<schemaFactory class="ManagedIndexSchemaFactory">
<bool name="mutable">true</bool>
<str name="managedSchemaResourceName">managed-schema</str>
</schemaFactory>
by
<schemaFactory class="ClassicIndexSchemaFactory"/>
Now solr will use schema.xml
managed by yourself.
The only mandatory configuration files to use are solrconfig.xml
and in your case schema.xml
. The other files are used just if you configure some filters using them. If you are using the example schema.xml
probably you need to have all these files. But clean the configuration files to have just the fields and field types you really expect to use.
To learn more about filters, tokenizers and analyzers you can take a look at https://wiki.apache.org/solr/AnalyzersTokenizersTokenFilters.
Upvotes: 1
Reputation: 2077
Happy Searching!
Upvotes: 0