I think the best for you is looking source code, it's easy to understood:
https://sourceforge.net/p/openkm/code/H ... /endpoint/
this is the search class
https://sourceforge.net/p/openkm/code/H ... rvice.java
And you should be interested in these two methods:
Code: Select all@GET
@Path("/find")
// Default "domain" is "1" for documents.
public QueryResultList find(@QueryParam("content") String content, @QueryParam("name") String name,
@DefaultValue("1") @QueryParam("domain") int domain, @QueryParam("keyword") List<String> keywords,
@QueryParam("category") List<String> categories, @QueryParam("property") List<String> properties,
@QueryParam("author") String author, @QueryParam("mimeType") String mimeType,
@QueryParam("lastModifiedFrom") String lastModifiedFrom, @QueryParam("lastModifiedTo") String lastModifiedTo,
@QueryParam("mailSubject") String mailSubject, @QueryParam("mailFrom") String mailFrom, @QueryParam("mailTo") String mailTo,
@QueryParam("path") String path) throws GenericException {
@GET
@Path("/findPaginated")
public ResultSet findPaginated(@DefaultValue("0") @QueryParam("offset") int offset, @DefaultValue("10") @QueryParam("limit") int limit,
@QueryParam("content") String content, @QueryParam("name") String name, @DefaultValue("1") @QueryParam("domain") int domain,
@QueryParam("keyword") List<String> keywords, @QueryParam("category") List<String> categories,
@QueryParam("property") List<String> properties, @QueryParam("author") String author, @QueryParam("mimeType") String mimeType,
@QueryParam("lastModifiedFrom") String lastModifiedFrom, @QueryParam("lastModifiedTo") String lastModifiedTo,
@QueryParam("mailSubject") String mailSubject, @QueryParam("mailFrom") String mailFrom, @QueryParam("mailTo") String mailTo,
@QueryParam("path") String path) throws GenericException
Some interesting parameters:
domain = 1; // look only for documents ( for looking folders should be value 3 = DOCUMENT | FOLDER -> take a look the class
https://sourceforge.net/p/openkm/code/H ... arams.java )
properties = list of values like propertyKey=value ( for example okp:test.name=name), something like { "okp:test.name=name", "okp:test.mail=
some@mail.com" }
The other parameters I think are clear.
Sorry for our documentation, we're working to get a newer next year, a realistic estimation is next april. We're not perfect and sometimes we make some mistakes, we've discovered was not so good idea doing documentation in actual way, anyway that helped us to think how we would like to get it.