On 6/4/2015 11:42 PM, pras.venkatesh wrote: > I see docValues has been there since Lucene 4.0. so can I use docValues with > my current solr cloud version of 4.8.x > > The reason I am asking is because, I have deployment mechanism and securing > the index (using Tomcat valve) all built out based on Tomcat which I need > figure out all the way again with Jetty. > > so thinking if I could use docValues with solr/lucene 4.8.x in order to > perform sort/facet queries effectively(consuming less heap memory)
Solr 4.8 can do docValues. To enable the feature on a field, you just need to change field definition in schema.xml to include docValues="true". Note that you need to completely reindex. After you make the change and restart or reload, sorting and facets will NOT work until the reindex is done, because when docValues is present in the schema, Solr will try to use docValues, and that data will not be present unless you reindex. https://wiki.apache.org/solr/HowToReindex Thanks, Shawn