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

The search method cannot manager several values for a single parameter

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: clients - php
    • Labels:
      None
    • Environment:

      Any

      Description

      If you look at this wiki page :

      http://wiki.apache.org/solr/SimpleFacetParameters

      You will notice the url may looks like :
      http://localhost:8983/solr/select?q=video&rows=0&facet=true&facet.field=inStock&facet.query=price:[*+TO+500]&facet.query=price:[500+TO+*]

      Two values for the field facet.query. It can also happen you have several values for the variable facet.field.

      Unfortunately, here is the current Apache_Solr_Service::search method

      public function search($query, $offset = 0, $limit = 10, $params = array())
      {
      (...)
      $queryString = http_build_query($params, null, $this->_queryStringDelimiter);
      (...)
      }

      $params is an associative array. In my opinion, (tell me if i am wrong), but this way you cannot generate this kind of query.

      Regards

      Antoine Tissier

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              antoine.tissier Antoine Tissier
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 4h
                4h
                Remaining:
                Remaining Estimate - 4h
                4h
                Logged:
                Time Spent - Not Specified
                Not Specified