Christian,

I literally did this 10 minutes ago for an internal example. You need to issue 
a RELOAD for your index to open a new searcher using the updated files. Here's 
an example showing how I did it:

** Creating a new collection
Greg-Walters-MacBook-Pro:SolrUpload greg.walters$ curl 
"http://localhost:8983/solr/admin/collections?action=CREATE&name=test1&numShards=6&collection.configName=collection1&maxShardsPerNode=6";
<?xml version="1.0" encoding="UTF-8"?>
<response>
<lst name="responseHeader"><int name="status">0</int><int 
name="QTime">5528</int></lst><lst name="success"><lst><lst 
name="responseHeader"><int name="status">0</int><int 
name="QTime">4524</int></lst><str 
name="core">test1_shard5_replica1</str></lst><lst><lst 
name="responseHeader"><int name="status">0</int><int 
name="QTime">4536</int></lst><str 
name="core">test1_shard1_replica1</str></lst><lst><lst 
name="responseHeader"><int name="status">0</int><int 
name="QTime">4537</int></lst><str 
name="core">test1_shard3_replica1</str></lst><lst><lst 
name="responseHeader"><int name="status">0</int><int 
name="QTime">4561</int></lst><str 
name="core">test1_shard4_replica1</str></lst><lst><lst 
name="responseHeader"><int name="status">0</int><int 
name="QTime">4564</int></lst><str 
name="core">test1_shard2_replica1</str></lst><lst><lst 
name="responseHeader"><int name="status">0</int><int 
name="QTime">4566</int></lst><str 
name="core">test1_shard6_replica1</str></lst></lst>
</response>

** Putting data into the new collection
Greg-Walters-MacBook-Pro:example greg.walters$ rm -rf 
solr/test1_shard1_replica1/data/index/*; cp split/part-0/* 
solr/test1_shard1_replica1/data/index/
Greg-Walters-MacBook-Pro:example greg.walters$ rm -rf 
solr/test1_shard2_replica1/data/index/*; cp split/part-1/* 
solr/test1_shard2_replica1/data/index/
Greg-Walters-MacBook-Pro:example greg.walters$ rm -rf 
solr/test1_shard3_replica1/data/index/*; cp split/part-2/* 
solr/test1_shard3_replica1/data/index/
Greg-Walters-MacBook-Pro:example greg.walters$ rm -rf 
solr/test1_shard4_replica1/data/index/*; cp split/part-3/* 
solr/test1_shard4_replica1/data/index/
Greg-Walters-MacBook-Pro:example greg.walters$ rm -rf 
solr/test1_shard5_replica1/data/index/*; cp split/part-4/* 
solr/test1_shard5_replica1/data/index/
Greg-Walters-MacBook-Pro:example greg.walters$ rm -rf 
solr/test1_shard6_replica1/data/index/*; cp split/part-5/* 
solr/test1_shard6_replica1/data/index/

** Opening a new searcher with the new data
Greg-Walters-MacBook-Pro:example greg.walters$ curl 
"http://localhost:8983/solr/admin/collections?action=RELOAD&name=test1";
<?xml version="1.0" encoding="UTF-8"?>
<response>
<lst name="responseHeader"><int name="status">0</int><int 
name="QTime">3154</int></lst><lst name="success"><lst 
name="10.10.19.156:8983_solr"><lst name="responseHeader"><int 
name="status">0</int><int name="QTime">1696</int></lst></lst><lst 
name="10.10.19.156:8983_solr"><lst name="responseHeader"><int 
name="status">0</int><int name="QTime">1981</int></lst></lst><lst 
name="10.10.19.156:8983_solr"><lst name="responseHeader"><int 
name="status">0</int><int name="QTime">1983</int></lst></lst><lst 
name="10.10.19.156:8983_solr"><lst name="responseHeader"><int 
name="status">0</int><int name="QTime">1980</int></lst></lst><lst 
name="10.10.19.156:8983_solr"><lst name="responseHeader"><int 
name="status">0</int><int name="QTime">1987</int></lst></lst><lst 
name="10.10.19.156:8983_solr"><lst name="responseHeader"><int 
name="status">0</int><int name="QTime">1989</int></lst></lst></lst>
</response>

Thanks,
Greg

On Dec 13, 2013, at 3:09 PM, Christian Bongiorno 
<christian.bongio...@gmail.com> wrote:

> Has anyone tried to take an index generated elsewhere and install it in a
> core? I have done that and I can see all the documents if I do "q=*:*" but
> I can't actually query any of the fields even though I added the field
> names to schema
> 
> I am kind of a rookie so forgive me if I come across as such. I have been
> searching around for this scenario and haven't seen any discussion on it
> 
> -- 
> Christian Bongiorno

Reply via email to