You are viewing limited content. For full access, please sign in.

Question

Question

searchquery examples

asked on May 23, 2017

We are testing Weblink for searching via URLs.  From the docs we are starting with this:

 

http://Servername/WebLink8/Search.aspx?dbid=x&searchcommand=searchquery 

 

What are the options for "searchquery", I would like to restrict search to a repo folder location, meaning we want to contain the search for "water" to this location?

 

Repo Location:   CRM\52

Search Text for "water"

 

what is the syntax for this?  or if someone can point me to docs on this I will happily start there?

 

I am looking:

http://Servername/WebLink8/Search.aspx?dbid=x&searchcommand="find 'water' in CRM\52"

0 0

Replies

replied on May 23, 2017 Show version history

Build the search in the LF Client and have the advanced syntax open.  After you run the search, the advanced syntax window will have the text that you can copy and paste into the weblink url .  Then you can tokenize parts of the search string on the backend to get it to be dynamic.

1 0
replied on May 24, 2017

I'm noticing an issue as well, specific to compound searches. In the client, searching for a document with a specific field, within a specific folder, works as expected.

 

In weblink however, it evaluates without any respect towards the specific folder.

 

The weblink search command:

http://server/weblink/search.aspx?searchcommand={[]:[Document Number]="917"} & {LF:LOOKIN="Repository\Finance"}

 

Returns the same document as:


http://server/weblink/search.aspx?searchcommand={[]:[Document Number]="917"} & {LF:LOOKIN="Repository\Public Works"}

 

and

 

http://server/weblink/search.aspx?searchcommand={[]:[Document Number]="917"} & {LF:LOOKIN="Repository\Madeupnameforafolderthatdoesntexist"}

 

Is this a bug?

 

0 0
replied on May 24, 2017 Show version history

Carl

Did you encode the search string to be URL compatible?

Also, did you try to remove the repository name from the string so the lookin becomes:

{LF:LOOKIN="\Public Works"}

2 0
replied on May 24, 2017

Bingo. Solved my issue. If properly encoded, the compound search work as expected.

 

Thanks Ben.

0 0
replied on May 23, 2017

We did find in LF10 Web access ability to build a search:

 

http://pgc-lfsweb/weblinkdirect/Search.aspx?dbid=x&searchcommand=(%7BLF%3ALOOKIN%3D%22%5CCRM%5C19223%22%7D)%20%26%20info%22%40%22nsmarineleisure%22.%22com

 

So we tried using that syntax in Weblink.  Throws a weblink error.  So thinking LF10 Web Access syntax does not translate to Weblink9.

 

 

0 0
replied on May 23, 2017
https://laserficheserver/weblink/Search.aspx?dbid=0&searchcommand={}

Put advanced search syntax between the curly braces {}.

https://support.laserfiche.com/resources/2506/advanced-search-syntax-8-3

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.