12-20-2016 06:44 AM
Hi,
can i use 'searchTerm' parameter to search documents/folders on document library ?
do i need to change doclist.lib.js to achieve this requirement?
Regards
janaka
12-20-2016 07:56 AM
You should explain what kind of "searchTerm" parameter you are referring to, e.g. if you mean an URL parameter, an internal script variable, a parameter in the Script API etc.
12-20-2016 09:56 AM
it is URL parameter
this is same as advance search url
12-20-2016 10:12 AM
Since there is currently no support for a searchTerm URL parameter in the doclist data web scripts you would have to provide your own override to use such a parameter.
12-26-2016 04:28 AM
Hi axel,
Document library has used lucene search query to read data. It returned difference result than advanced search which has used fts query.
allNodes = search.query(
{
query: query,
language: lucene,
page:
{
maxItems: totalItemCount
},
sort: filterParams.sort,
templates: filterParams.templates,
namespace: (filterParams.namespace ? filterParams.namespace : null)
});
I tried to pass searchTerm with this search.query(). But it does not support. However I send search keyword with query as +TEXT:”test”. But this can search only content of document.
i can not search document by passing +TEXT:”alfresco.pdf”.
even i override doclist.lib.js, i couldn't managed above parameter of search.query().
please give me hint for this.
Regards
janaka
12-26-2016 06:25 AM
If you added a custom query template (merge it with those provided for the filter) similar to "keywords" in the advanced search, you could use +keywords:"alfresco.pdf" and it would behave like it does for the keyword search in advanced search.
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.