Page 1 of 1

OKMSearch find in a specific path

PostPosted:Wed May 04, 2011 5:56 pm
by rocabu
Hi there,
I am trying to make a search of documents inside OpenKM but using an specific path. I know OKMSearch.find would work but honestly I have no idea about how to use it. I saw here some links were the info is on the wiki section (which I can not get in obviously). Does anyone have a clear example where this kind of search was made?

I'm using this code, but got no results even knowing that there are documents that match my search.

queryParams Params = new queryParams();
Params.path = "/okm:root/pruebas";
Params.content = "test";

queryResult[] Result = searchService.find(token, Params);

Please if you could help me, I'll really appreciate it, I'm using C# .net

Cheers,
RC.

Re: OKMSearch find in a specific path

PostPosted:Wed May 04, 2011 8:13 pm
by jllort
I suggest taking a look at project http://openkm.svn.sourceforge.net/viewv ... penKMCore/ where is the ms addins library I suggest take a look at DocumentLogic.cs http://openkm.svn.sourceforge.net/viewv ... ore/logic/

To search first must be authenticate etc...

I suggest take a look at ms word addin classes
http://openkm.svn.sourceforge.net/viewv ... WordAddIn/

I think it could be a good starting to you. After it you can go into searching on webservices, you must generate the classes.