Skip to content

Instantly share code, notes, and snippets.

View aschweer's full-sized avatar

Andrea Schweer aschweer

  • Hamilton, New Zealand
View GitHub Profile
@aschweer
aschweer / README.md
Last active August 29, 2015 14:16 — forked from terrywbrady/README.md

We found that 5M of our 12M statistics records did not have a uid. The absence of this field caused the sharding process to fail.

  • To check how many of your stats records don't have a uid, run a query like so:

    curl --globoff 'http://localhost:8080/solr/statistics/select?q=-uid:[*+TO+*]&rows=0&indent=true' | grep numFound

  • Add the following to solr.xml

      <core name="tstatistics" instanceDir="tstatistics" />
    
  • Actually create that instance directory and copy over the conf subdirectory from the statistics core