This repository was archived by the owner on Sep 9, 2022. It is now read-only.
solrium v1.0.0
This is v1, indicating breaking changes from the previous version!
NEW FEATURES
- Package has been reworked to allow control over what parameters are sent
as query parameters and which as body. If only query parameters given, we do a
GET
request, but if any body parameters given (even if query params given)
we do aPOST
request. This means that allsolr_*
functions have more or
less the same parameters, and you now pass query parameters toparams
and
body parameters tobody
. This definitely breaks previous code, apologies
for that, but the bump in major version is a big indicator of the breakage. - As part of overhaual, moved to using an
R6
setup for the Solr connection
object. The connection object deals with connection details, and you can call
all methods on the object created. Additionally, you can simply
pass the connection object to standalone methods. This change means
you can create connection objects to >1 Solr instance, so you can use many
Solr instances in one R session. (#100) - gains new functions
update_atomic_json
andupdate_atomic_xml
for doing
atomic updates (#97) thanks @yinghaoh solr_search
andsolr_all
gain attributes that includenumFound
,
start
, andmaxScore
(#94)solr_search
/solr_all
/solr_mlt
gain new feature where we automically
check for and adjustrows
parameter for you if you allow us to.
You can toggle this behavior and you can set a minimum number for rows
to be optimized withminOptimizedRows
. See (#102) (#104) (#105) for
discussion. Thanks @1havran
MINOR IMPROVEMENTS
- Replaced
httr
withcrul
. Should only be noticeable with respect
to specifying curl options (#98) - Added more tests (#56)
optimize
renamed tosolr_optimize
(#107)- now
solr_facet
fails better when nofacet.*
fields given (#103)
BUG FIXES
- Fixed
solr_highlight
parsing to data.frame bug (#109)