Driven circuitry and other fancy stuff. What is it?

I created a new kernel in Standalone mode

(please correct me if I say something wrong). I did it like this (following Apache Solr Reference Guide 5.2

):

$ bin/solr create -c test

      

I was hoping to see that everything (almost nothing) I do goes hand in hand with Reference Guide

. Pages 13 and 14 in the Manual clearly describe what the solr home directory should look like:

solr.xml
core_name1/
    core.properties
    conf/
        solrconfig.xml
        schema.xml
    data/
...

      

However, when I go to ./server/solr/test/conf

I see 8 files and one directory there:

currency.xml
lang/
params.json
solrconfig.xml
synonyms.txt
elevate.xml
managed-schema
protwords.txt
stopwords.txt

      

Phew ... Awful looking stuff that is not covered at all in the first chapter of the Reference Manual. I don't understand what I did wrong and what made the home directory of the new kernel so ugly. I didn't mean to create any currency.xml and other fancy files. But, worst of all, I cannot find the schematic file, which, according to the reference manual, should be the most important. I think now I have to use a managed schema, but when I open it I see a really terrible message:

<!-- Solr managed schema - automatically generated - DO NOT EDIT -->

      

Bump! A newbie like me builds the first core of his life, hopes to see a beautiful schematic file, but finds something he can't even edit. So my questions are:

  • how to actually create the core and do the dirty editing of the schema.xml file.
  • is it possible to edit any controlled schema or not.
  • is there any reference manual that can follow the line and give the expected results?
+3


source to share


2 answers


The schema.xml file is present in the solr \ configsets \ basic_configs \ conf directory. You can copy it and place it in the / conf directory and modify it to add your fields. It will not affect other kernels. In addition, other files are needed for how Solr handles stopping when searching for strings, as well as currency data, etc. In the documentation of previous versions, this data was mentioned, and this is how I understood it with difficulty. If you delete these stop words and other files, you will eventually find the error message they are missing. Hope this information helps. Happy learning



+4


source


To add this, in the SolrConfig.xml file you can find the schemaFactory tag and change the class attribute from "ManagedIndexSchemaFactory" to "ClassicIndexSchemaFactory". This will force Solr to use the schema.xml in the core root directory instead of generating a managed schema file.



+3


source







All Articles