When saving a record to solr, fieldname_i: None will cause problems (it saves the string "None" but needs an int). We should raise an exception for those. Also look for other solr data types where similar problems could occur, and do the same.
Then upgrade pysolr with pip install pysolr==2.0.13 and start a new paster shell and do it again. Ticket search shouldn't give a solr error. May get a legitimate KeyError: 'ticket_num_i' if the result is in it.
To test logging changes: run an invalid search like "foo && && || foo". You should get the solr message in the page response. allura.log should have the solr error message also. I created https://control.sog.geek.net/sog/trac/ticket/18365 to tweak the logging
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
forge:db/2019 To test the big solr problem, run a paster shell and do:
do a search, confirm error on all ticket searches. Then fix with:
Then upgrade pysolr with
pip install pysolr==2.0.13
and start a new paster shell and do it again. Ticket search shouldn't give a solr error. May get a legitimate KeyError: 'ticket_num_i' if the result is in it.To test logging changes: run an invalid search like "foo && && || foo". You should get the solr message in the page response. allura.log should have the solr error message also. I created https://control.sog.geek.net/sog/trac/ticket/18365 to tweak the logging
forge:db/2019 has ticket_num required now. Pending Ming upgrade (see https://control.sog.geek.net/sog/trac/ticket/18370) but you can install that manually too.
Ming change was reviewed by Rick and is at http://merciless.git.sourceforge.net/git/gitweb.cgi?p=merciless/merciless;a=commitdiff;h=abfdec866bc654e763b0c953ef6b2669d6a321dd
merged directly to forge:master @ [76cf08e]