[ https://issues.apache.org/jira/browse/SOLR-13014?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16698353#comment-16698353 ]
Jan Høydahl commented on SOLR-13014: ------------------------------------ Added a Unit test with explicit long string tests for significantTerms(), timeseries(), facet(), stats(), search() and random(). Added POST fixes for SignificantTermsStream and RandomStream. I think there still may be other expressions that need patching. Would be cool if we could plug this test in somewhere that would run for all kinds of functions, also future ones. One way could be to pad spaces inside otherwise valid expressions to exceed the limit. Also, perhaps a {{TupleStream}} base class method to create the {{QueryRequest}} would be good, and switch all impls over to using that new method. See [GitHub Pull Request #506|https://github.com/apache/lucene-solr/pull/506] > URI Too Long with large streaming expressions in SolrJ > ------------------------------------------------------ > > Key: SOLR-13014 > URL: https://issues.apache.org/jira/browse/SOLR-13014 > Project: Solr > Issue Type: Bug > Security Level: Public(Default Security Level. Issues are Public) > Components: SolrJ, streaming expressions > Reporter: Jan Høydahl > Assignee: Jan Høydahl > Priority: Major > Time Spent: 10m > Remaining Estimate: 0h > > For very large expressions (e.g. with a complex search string) we'll hit the > max HTTP GET limit since SolrJ does not enforce POST for all expressions. > This goes at least for {{FacetStream}}, {{StatsStream}} and > {{TimeSeriesStream}}, and I'll link a Pull Request fixing these three. > Here is an example of a stack trace when using TimeSeriesStream with a very > large expression: [https://gist.github.com/ea626cf1ec579daaf253aeb805d1532c] > The fix is simply to use {{new QueryRequest(parameters, > SolrRequest.METHOD.POST);}} to explicitly force POST. > See also solr-user thread > [http://lucene.472066.n3.nabble.com/Streaming-Expressions-GET-vs-POST-td4415044.html] -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org