Suneeta Mall created SOLR-5639:
----------------------------------

             Summary: Return type parameter is completely ignored when url is 
http encoded
                 Key: SOLR-5639
                 URL: https://issues.apache.org/jira/browse/SOLR-5639
             Project: Solr
          Issue Type: Bug
          Components: query parsers, SearchComponents - other
    Affects Versions: 4.5.1
         Environment: Ubuntu 13.04, 
Browser Chrome 
            Reporter: Suneeta Mall


Querying solr with wt parameter formats the result type as requested which 
works fine except when url is http encoded. 

For example: 
http://localhost:8983/solr/suggest?q=Status:ac&wt=json&indent=true
the response I get is :

<?xml version="1.0" encoding="UTF-8"?>
<response>

<lst name="responseHeader">
  <int name="status">0</int>
  <int name="QTime">1</int>
</lst>
<lst name="spellcheck">
  <lst name="suggestions">
    <lst name="ac">
      <int name="numFound">5</int>
      <int name="startOffset">7</int>
      <int name="endOffset">9</int>
      <arr name="suggestion">
        <str>acknowledged</str>
        <str>ack</str>
        <str>actual</str>
        <str>actually</str>
        <str>access</str>
      </arr>
    </lst>
    <str name="collation">Status:acknowledged</str>
  </lst>
</lst>
</response>

whereas the correct response should be:





--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to