Sunday 7 May 2017

SharePoint search query length error.

SharePoint 2013 search results query works properly if select, filter, and other options are in the search query text limit. If the search query limit exceeds the search results, it gives an error.

"An administrator configuration transformed your query into an invalid query"


The search length (in KB) is controlled by the property MaxKeywordQueryTextLength of the SharePoint search service application. The default "MaxKeywordQueryTextLength" value is 4096 (4 KB). Use the PowerShell commands given below.




So increasing the MaxKeywordQueryTextLength value from 4 KB to 8 KB helped in fixing the error.

The reference blog: https://blogs.msdn.microsoft.com/sridhara/2014/05/06/sharepoint-2013-searchserviceexception-the-maximum-allowed-value-is-4096/


🚀 "Happy Coding" 🚀