Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-111

new repsonse classes and connection enhancements

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • clients - ruby - flare
    • None
    • Darwin frizz 8.8.1 Darwin Kernel Version 8.8.1: Mon Sep 25 19:42:00 PDT 2006; root:xnu-792.13.8.obj~1/RELEASE_I386 i386 i386

    Description

      Similar to Solr::Request::* a Solr::Response::* hierarchy was created as well as a Solr::Response::Base which has a factory method for creating the appropriate response based on the request type and the raw response.

      Also added delete(), delete_by_query(), add(), update() and query() methods to Solr::Connection. This gets a bit closer to a DSL type of syntax which doesn't require the user to know the inner workings of solrb. I adjusted README accordingly.

      Solr::Connection also operates with autocommit turned on so commit() messages are not required when doing add(), update(), delete() calls. It can be turned off if the user doesn't want they extra http traffic.

      Added the ability to iterate over search results. Although need to add the ability to iterate over complete results, fetching data behind the scenes as necessary.

      Unit tests have been added and functional tests improved.

      Attachments

        1. response_connection_changes.diff
          30 kB
          Ed Summers
        2. response_connection_changes.diff
          30 kB
          Ed Summers

        Activity

          People

            ehatcher Erik Hatcher
            edsu Ed Summers
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: