can i use 'searchTerm' parameter to search documents/folders on document library ?
do i need to change doclist.lib.js to achieve this requirement?
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.
it is URL parameter
this is same as advance search url
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.
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(
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.
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.
Retrieving data ...