On 5/7/2015 3:51 PM, pras.venkatesh wrote:
> I am trying to enable Doc Values for certain fields in Solr schema which
> helps with memory management while sorting the results and here is
> configuration I have 
>
> <field name="ip_addr" type="string" indexed="true" stored="true"
> omitNorms="true" docValues="true" />
>
> And field type defined this way.
>
> <fieldType name="string" class="solr.StrField" sortMissingLast="true" />
>
> I deployed this schema and started the server, but I don't see the
> schema.xml reflecting the docvalues from the Solr admin UI. 
>
> When I check the schema.xml by going to collection Name -->Files, I just see
> the below entry. 
>
> <field name="ip_addr" type="string" indexed="true" stored="true"
> omitNorms="true" />
>
> And, I did not find the need to re-index, the existing index is working just
> fine. So its clear that the docValues that I am trying to enforce is not
> taking any effect. 

The schema that you edited is probably not the active schema for that
index.  Are you running SolrCloud?  If you are, then the config will be
installed in zookeeper, requiring that you re-upload the config to
zookeeper to overwrite it with your changes.

If you're NOT running zookeeper (SolrCloud), then the following will apply:

Assuming that you are running 4.x or 5.x, if you select the core from
the dropdown and look at the "Overview" tab, you should see the
"instance" directory in the upper right corner.  Inside that directory
will be a "conf" directory with your schema and config inside it.  That
is what you will need to edit, then you need to reload the core or
restart Solr.

Thanks,
Shawn

Reply via email to