• Search by file name using official API

  • We tried to make OpenKM as intuitive as possible, but an advice is always welcome.
We tried to make OpenKM as intuitive as possible, but an advice is always welcome.
Forum rules: Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
 #47970  by LauryMenton
 
Hi there,
I'm building a little system to make searches on my repo, so I can find and download specific doc file through my phone.

The problem is that I couldn't find any way to search files using file names. Is it possible? Available searches are:

Search simply by content:
Code: Select all
curl -u okmAdmin:admin -H "Accept: application/json" -X GET \
http://localhost:8080/OpenKM/services/rest/search/findByContent?content=santo+grial
Search by keyword:
Code: Select all
curl -u okmAdmin:admin -H "Accept: application/json" -X GET \
http://localhost:8080/OpenKM/services/rest/search/findByKeywords?keyword=santo\&keyword=grial
Or use a more customized search parameters:
Code: Select all
curl -u okmAdmin:admin -H "Accept: application/json" -X GET \
http://localhost:8080/OpenKM/services/rest/search/find?content=grial\&mimeType=application/pdf
Even can query by Property Groups:
Code: Select all
curl -u okmAdmin:admin -H "Accept: application/json" -X GET \
http://localhost:8080/OpenKM/services/rest/search/find?content=grial\&property='okp:name=alfa'
 #47985  by jllort
 
You can try with:
Code: Select all
curl -u okmAdmin:admin -H "Accept: application/json" -X GET \
http://localhost:8080/OpenKM/services/rest/search/find?name=grial'
The latest OpenKM version comes with swagger what might help you
https://docs.openkm.com/kcenter/view/ok ... agger.html

About Us

OpenKM is part of the management software. A management software is a program that facilitates the accomplishment of administrative tasks. OpenKM is a document management system that allows you to manage business content and workflow in a more efficient way. Document managers guarantee data protection by establishing information security for business content.