You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by "pras.venkatesh" <pr...@outlook.com> on 2015/05/07 23:51:35 UTC

Not able to Add docValues in Solr

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. 
Please advice what I am missing here.



--
View this message in context: http://lucene.472066.n3.nabble.com/Not-able-to-Add-docValues-in-Solr-tp4204405.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: Not able to Add docValues in Solr

Posted by "pras.venkatesh" <pr...@outlook.com>.
Never mind.. used the zkcli.sh that comes with solr to accomplish the
firewall



--
View this message in context: http://lucene.472066.n3.nabble.com/Not-able-to-Add-docValues-in-Solr-tp4204405p4204579.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: Not able to Add docValues in Solr

Posted by "pras.venkatesh" <pr...@outlook.com>.
Thanks for your reply, I was under the impression that clusterstate.json and
aliases.json are the two files that the zookeeper maintains.
Did not know that schema.xml is also maintained by zookeeper.Yes I am
running solrCloud. 
should I use the zookeeper client to re-upload?




--
View this message in context: http://lucene.472066.n3.nabble.com/Not-able-to-Add-docValues-in-Solr-tp4204405p4204425.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: Not able to Add docValues in Solr

Posted by Shawn Heisey <ap...@elyograg.org>.
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