2

Length of Search api query text must be 4096 characters. Are there ways to increase query text?

2

You can use MaxKeywordQueryTextLength which can be increased to up to 20 KB (i.e. 20480 characters). Increasing this value beyond 20 KB is not supported.

Example:

PS C:\> $search = Get-SPServiceApplication | where {$_.displayname -contains "search"}

PS C:\> $search.MaxKeywordQueryTextLength

4096

PS C:\> $search.MaxKeywordQueryTextLength = 8192

PS C:\> $search.MaxKeywordQueryTextLength

8192
  • 1
    I'm getting error: Property "MaxKeywordQueryTextLength" cannot be found" – tomsmithweb Jun 16 '16 at 19:44
  • I'm getting the same as @tomsmithweb - is this version specific? (I run 2013) – Christofer Ohlsson Dec 18 '18 at 12:22
0

Please use the reference blog given https://blogs2share.blogspot.in/2017/05/sharepoint-search-query-length-error.html

  • Instead of giving direct links , you can mention key points and then reference to the links. that will help others when the link may become inactive in future. – John Zachariah Jul 28 '17 at 5:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.