Hello,
I am having problems when using the Search.aspx?dbid=0&searchcommand on Weblink v9 and v10.2.
The case is as follows:
I use a string of field, route and date of modification like xxxxx {[]:[OFFICE BCRP 01.00]="Huancayo"}&{LF:LOOKIN="\CON - Container\GESCON\DAILY ACCOUNTING RECORD"}&{LF: Modified="2022/05/11"} and it responds according to what is set regarding the field and the path, but not with the modified date, I have entered different date formats but the result is the same.
Some of you know where I'm wrong.
Question
Question
Search.aspx and Search Command
Replies
Yes, this just came up last week: https://answers.laserfiche.com/questions/198064/Weblink-Search-URL-only-searches-on-first-part-of-the-search-command#198068
Thanks Brian, but i have applied the Encode, but i have the same undesired result.
I think the issue is about the number of parameters or the length of the search instruction.
I'll keep waiting for someone to collaborate with the solution.
The interesting part is that there is no error, right? So whatever WebLink thinks the query is, it is a legal query. If it was too long or the date was invalid, you would expect an error to be reported. If you have Audit Trail you could see what the server thinks the search is.
if it is unfortunate that the weblink does not emit any type of error that could help us. if we have the Audit Trail, I will investigate and comment on the result.
I checked the Audit Trail and what is logged in it is different than the string I send, for example:
1. If I enter the modified date as the first parameter, the rest of the query string is omitted. it is only searched by the modification date.
2. If I enter the modified date after any parameter, the modified date and the rest of the statement are skipped. it only searches for parameters before the modification date.
Well, this is the end of the investigation, I believe that it is now in the hands of Laserfiche.
Gracias Brian.
If you open a support case, please reference this thread in your notes.
Hi Brian, following the research and some links on URL encoding topics I was able to solve the problem, it consists of encoding (uncode) with a set of UTF-8 target characters, here is an example:
- searchcommand={LF:LOOKIN="\CON - Contenedor\GESCON\REGISTRO CONTABLE DIARIO"} & {LF:Modified="2022/05/20"} & ({LF:Ext="pdf"})
- searchcommand=%7bLF%3aLOOKIN%3d"%5cCON+-+Contenedor%5cGESCON%5cREGISTRO+CONTABLE+DIARIO"%7d+%26+%7bLF%3aModified%3d"2022%2f05%2f20"%7d+%26+(%7bLF%3aExt%3d"pdf"%7d)+
Is this different from the solution I linked to initially? You mention UTF-8 but all of the characters in your string appear to be ASCII, so I'm not sure that really affects the output.
Not at all, even here a link where you can encode your search string and validate the result https://www.urlencoder.org/ , remember that only the search string should be encoded.
Disculpa pero mi ingles no es muy bueno.