James Dyer created CAMEL-22465:
----------------------------------

             Summary: camel-solr - Allow multiple occurrences with SolrParam.x 
headers
                 Key: CAMEL-22465
                 URL: https://issues.apache.org/jira/browse/CAMEL-22465
             Project: Camel
          Issue Type: Improvement
          Components: camel-solr
            Reporter: James Dyer


While it is convenient to build a request using the SolrParam.x header 
convention, this only allows a single value.  Yet Solr often takes multiple 
occurrences of the same value.  For instance *fq*.  Camel-Solr should allow 
multiple values, for instance:

{code}
.setHeader(SolrParam + "fq", constant(List.of("foo: bar", "baz:[1 TO 10]"))
{code}

This example sets up a query that only return results with "foo" equaling "bar" 
and "baz" being a number between 1 and 10.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to