ajsie
ajsie

Reputation: 79686

which solrconfig.xml file is it?

i have just unzipped SOLR zip file downloaded from their website. and it says in the tutorial i have to edit the solrconfig.xml file. there are several in different locations.

which one is it? and where should i have this root folder? inside my web space?

LICENSE.txt  README.txt  client   contrib   docs   lib
CHANGES.txt  NOTICE.txt  build.xml  common-build.xml dist   example   src

ive got one in example/solr/conf. is it that one?

and about the data-config-xml. should i create one and then type in the path to it in solrconfig.xml? the tutorial isnt that descriptive.

Upvotes: 4

Views: 15492

Answers (4)

Abhisek Chowdhury
Abhisek Chowdhury

Reputation: 45

Create a New Core (Solr-8.6.2)

sudo su solr -c '/opt/solr/bin/solr create -c <corename>'
or
sudo su solr -c '/opt/solr-8.6.2/bin/solr create -c <corename>' 

Core will be created at

/var/solr/data/<corename>/conf/solrconfig.xml

Edit this XML to change your configuration

Upvotes: 1

Mikael Onsj&#246;
Mikael Onsj&#246;

Reputation: 11

For SolR 7.4.0 on CentOS and Red Hat, I found solrconfig.xml in /var/solr/data/[core_name]/conf.

Upvotes: 1

zygimantus
zygimantus

Reputation: 3777

The file you looking for is in this directory: server/solr/new_core/conf/solrconfig.xml (depending on your core name).

After changing it you should probably do bin/solr restart.

Upvotes: 1

CraftyFella
CraftyFella

Reputation: 7568

You are correct that's the directory

see here see here http://wiki.apache.org/solr/SolrInstall#Setup

The 2 files you'll have to edit at some point are:

  • solr/conf/solrconfig.xml
  • solr/conf/schema.xml

Which OS are you installing on? If it's windows then i can help you out.. as i've done it many times ;)

CraftyFella

Upvotes: 4

Related Questions