Hi,
I'd want to know how can I get rid of the name of the index.
By default it is "index", so if I specify working directory, (see code
below), the index is opened in 
"indexdir"/index.

How can I just specify the index folder?
Is there a way to change convention - my index is not called "index" so I
have a big problem there!!
Thanks a lot, any clue will be welcome.
  http://xmariachi.blogspot.com Diego 

(This code is called with a default CoreContainer)

public static SolrServer getSolrServerConfigured(CoreContainer container,
String indexdir) 
throws ParserConfigurationException, IOException, SAXException 
{
        File root = new File(indexdir);
        SolrConfig config;

        config = new SolrConfig(root.toString(),
                        "solrconfig.xml",null);
        CoreDescriptor descriptor = new CoreDescriptor(container,
                        "embedded", root.toString() );
        SolrCore core = new SolrCore("embedded", root.toString(),
                        config, null, descriptor);
        container.register("embedded", core, false);
        log.warn(" ---------- SolrCore index on " + core.getIndexDir());
        EmbeddedSolrServer solr = new EmbeddedSolrServer(container,
                        "embedded");
        return solr;
}

-- 
View this message in context: 
http://www.nabble.com/EmbeddedSolrServer---default-index-name-tp25870498p25870498.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to