Fixed broken extract function

fixed both issues #96 and #90 and updated test solr sever from 4.1.0 to 4.6.0. All tests pass.