<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Problems with query string length in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/problems-with-query-string-length/m-p/51951#M19649</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I seem to run in a problem with the query string length (this is at least my assumption based on observations).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The project uses a complex advanced search form with lots of fields. Doing a search normally works fine. But when either a couple of long strings are filled out in the form or a couple of filters are applied in the facted search, the search fails. Error message is&amp;nbsp;(maybe not exactly - this is a German Alfresco installation): "There was an error requesting your search results. Please try again."&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When analyzing this,&amp;nbsp; I took a look at the long query string and tried to shorten it -&amp;nbsp;as soon as the length was below 4120 characters, the queries worked, no matter if I removed attributes completely or shortened some search strings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did not see any errors in the alfresco.log or catalina.out or solr.log.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any advice? Is there any way to extend this limit?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As normally only a subset of the fields in the advanced search form will be used, another option would be to&amp;nbsp;optimize the query string before sending out the advanced search. Many fields in the query string are unused parts like "attributename":""&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where would be the right extension point to modify this before it is processed?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alfresco Version is latest 5.x Community.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any input!&lt;BR /&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Jan 2018 08:43:51 GMT</pubDate>
    <dc:creator>chkk</dc:creator>
    <dc:date>2018-01-22T08:43:51Z</dc:date>
    <item>
      <title>Problems with query string length</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/problems-with-query-string-length/m-p/51951#M19649</link>
      <description>I seem to run in a problem with the query string length (this is at least my assumption based on observations).The project uses a complex advanced search form with lots of fields. Doing a search normally works fine. But when either a couple of long strings are filled out in the form or a couple of f</description>
      <pubDate>Mon, 22 Jan 2018 08:43:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/problems-with-query-string-length/m-p/51951#M19649</guid>
      <dc:creator>chkk</dc:creator>
      <dc:date>2018-01-22T08:43:51Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with query string length</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/problems-with-query-string-length/m-p/51952#M19650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suspect either your allowed URL length is really too short or this is a known issue with sharding- &lt;A class="link-titled" href="https://issues.alfresco.com/jira/browse/SEARCH-561" title="https://issues.alfresco.com/jira/browse/SEARCH-561" rel="nofollow noopener noreferrer"&gt;[SEARCH-561] Sharding restricts the number of results / "allowed" page sizes - Alfresco JIRA&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are only allowing 4120 characters on your URL this need to go up. Our default is much higher.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are using SOLR 4/6 sharding you may need to set the header size somewhat higher.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jan 2018 10:57:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/problems-with-query-string-length/m-p/51952#M19650</guid>
      <dc:creator>andy1</dc:creator>
      <dc:date>2018-01-22T10:57:36Z</dc:date>
    </item>
  </channel>
</rss>

