--
You received this message because you are subscribed to the Google Groups "rsolr" group.
To post to this group, send email to rs...@googlegroups.com.
To unsubscribe from this group, send email to rsolr+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rsolr?hl=en.
Can you post your complete code + error stack?
Matt
Sorry, the example I posted previously (:data => open()) was only an
example of what the code could look like if this feature were
implemented, but it's not actually yet. I do have something in master
you could look at and test if you'd like:
https://github.com/mwmitchell/rsolr/blob/master/lib/rsolr/connection.rb#L42
That should do the trick, but it's totally untested at this point.
For the other error, if you look at the update method:
https://github.com/mwmitchell/rsolr/blob/master/lib/rsolr/client.rb#L50
You'll see that update actually has a preset "path" of "update". I
think what you want to use it "post":
solr.post "update/extract", {}
I could adapt the update method to accept a path fragment to build on "update"?
So if you want to try master, do something like:
solr.post "update/extract", :data => open("data.html"), :params =>
{"literal.id" => 1}, :headers => {"Content-Type"=>"text/html"}
Matt
request = solr.build_request('update/extract', :data=>xxx, :params => {})
puts request[:uri].to_s
response = solr.execute(request)
... that *should* work.
Matt