Using URLs to Search a Repository
You can perform a Web Access search with appropriate search terms embedded in a URL. The easiest way to create this URL is to perform a search in Web Access and copy the URL created by the search.
You can also write your own repository search URL using the following syntax:
- http://servername/laserfiche/index.aspx?db=repositoryname#search=searchquery;view=search;imageenable=true
- repositoryname = Laserfiche Repository
- searchquery = Laserfiche search syntax
- imageenable=true = Web Access will automatically open the imaged document if there is only one document returned in the search result.
You can also write search URLs that will search using your quick search settings by using the following syntax:
- http://servername/laserfiche/index.aspx?db=repositoryname#quicksearch=searchquery;view=search
- repositoryname = Laserfiche Repository
- searchquery = The quick search term
You can create a direct link that will open a saved search using the following syntax:
- http://servername/laserfiche/index.aspx?db=repositoryname#searchname=searchname;view=search
- repositoryname = Laserfiche Repository
- searchname = The name of the saved search
A search can be performed within a single document with appropriate search terms embedded in a URL. These in-document search results will be listed in a pane below your document and double-clicking on a result will bring you to the page where the search term is found and highlight the term on the image. The easiest way to create this URL is to perform an in-document search and copy the URL created by your search.
You can also write your own in-document search URL using the following syntax:
- http://servername/laserfiche/index.aspx?db=repositoryname#id=id;view=pages;find=searchquery
- repositoryname = Laserfiche Repository
- id = Document's Entry ID
- searchquery = Laserfiche search syntax
Make sure you adjust the search syntax to be compatible with URLs. For example, this search URL:
- http://servername/laserfiche/index.aspx?db=MyRepository#search={[]:[]="Jonathan"} & {LF:name="Sample1", Type=%22DBF"};db=MyRepository;view=search
needs to be URL encoded to look like this:
- http://servername/laserfiche/index.aspx?db=MyRepository#search%3D%7B%5B%5D%3A%5B%5D%3D%22Jonathan%22%7D%20%26%20%7BLF%3Aname%3D%22Sample1%22%2C%20Type%3D%22DBF%22%7D%3Bdb%3DMyRepository%3Bview%3Dsearch
For more information on URL encoding, see URL Encoding Reference.
Related Topics