You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-dev@lucene.apache.org by "Lars Kotthoff (JIRA)" <ji...@apache.org> on 2008/07/11 06:07:31 UTC

[jira] Updated: (SOLR-612) solrj should (optionally?) use POST for queries

     [ https://issues.apache.org/jira/browse/SOLR-612?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lars Kotthoff updated SOLR-612:
-------------------------------

    Attachment: SOLR-612.patch

IMHO the request method is a property of the request, not the server. Unfortunately it's not really feasible to add the method as an attribute to the request, as it's a subclass of SolrParams.

I'm attaching a patch which adds a second query() method to SolrServer which takes the request method as the second argument. This way the method can be switched per call to query(), without having to change query or server object.

> solrj should (optionally?) use POST for queries
> -----------------------------------------------
>
>                 Key: SOLR-612
>                 URL: https://issues.apache.org/jira/browse/SOLR-612
>             Project: Solr
>          Issue Type: Bug
>          Components: clients - java
>    Affects Versions: 1.3
>         Environment: all
>            Reporter: Brian Whitman
>             Fix For: 1.3
>
>         Attachments: SOLR-612.patch, solrj-post.diff
>
>
> Can we make solrj always send post queries (or have it be an init-able option)? 
> Jetty has some "problems" (in quotes because I don't know if it's really a problem) with long queries over GET:
> http://www.mail-archive.com/solr-user@lucene.apache.org/msg09457.html
> http://mail-archives.apache.org/mod_mbox/lucene-solr-user/200804.mbox/%3C47F50996.80705@umich.edu%3E
> Tiny patch attached that changes it and doesn't cause an exception on long queries in Jetty w/ solrj.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.