I found an issue/limitation with ‘?searchview’ option in web database search. We have a search form with multiple fields, where in the end user can select their own search criteria. When ever the selected query crosses the limit of 512 characters, it shows the following error message in the browser.
"Error 500HTTP Web Server: Application Exception - Search query is too long"
Some web site explains that, the issue is with domino server and doesn’t support more than 512 characters in a URL. In between, I confirmed that Domino server supports long URLs (more than 512 characters). Finally I came to know that the 512 character limitation is applicable only for search URLs, that too in a single argument. While using ‘?searchview’ the search criteria is passing though an argument called ‘&Query’. As domino server won’t process more than 512 characters in a single argument using ‘?searchview’.
In order to overcome this limitation, we can create our own agent to perform the search. This agent can be triggered from the web page with all selected search criteria though POST method. This implementation may hit the search performance. Hence I designed a Lotus Notes web based tool to perform an Advanced Search in notes databases. This is a reconstruction of Domino’s default search functionality using AJAX, Lotus Script, Formula Language, Java Script, DHTML and JSON. This tool will support up to 64,000 characters in a single search query. This is a miraculous number compare to 512 character limitation in the Domino default search functionality. I can help you on this if you need more details.