I'm playing with dismax and the mm parameter. Actually, configuring it in
solrconfig.xml. Starting simply, I just put 2 in, then I auto-formatted the
xml now it looks like:
<str>
2
</str>
When executing this, I get a number format exception at
o.a.solr.util.SolrPluginUtils.calculateMinShouldMatch
(SolrPluginUtils.java:625)
I assume because of the extra whitespace. Curiously, the more complex
versions seem OK. Same thing happens, BTW, with just spaces <str> 2 </str>.
The same thing can be forced by putting extraneous whitespace in the test
case BTW.
Is this worth a patch? I'd like to *finally* get back to looking at some
code upon occasion, and this is pretty trivial.....
And on the subject of code: I just rebuilt the IDEA projects. Running
SolrPluginUtilsTest tests from within the IDE gives:
java.lang.RuntimeException: java.lang.RuntimeException: Can't find resource
'solrconfig.xml' in classpath or 'solr/conf/', cwd=C:\apache_trunk
Does anyone have the magic readily available to fix this so I don't have to
flounder? I can run the test from outside IntelliJ via ant just fine.
Erick