Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can i use WebSBrocker ?

Status
Not open for further replies.

nicolas46

Programmer
Mar 4, 2010
33
FR
Hi,
I'm developing a new research Webservice more easy to use than the existing SearchService. My web method signature is:

searchDocument(Integer aStartingLocation, String aDocumentCaption, Metadata aMetadata)

My problem is now to create the research query for the WebSBrocker module…I don’t find any documentation on how can I create this query (how can I translate my AttributeGroups into a research query ?, how can I specify that I want to research only on my remote Livelink datasource… starting from a specific folder ? etc…).
I have the “Search API Programming Guide” but this is not what I’m looking for...
Second question: according to you witch method will be the best to do what I want? $WEBSBROCKER.SearchAPIUtil.Search() or $WEBSBROCKER.TemplateUtil.NewSearchFromTemplate() or other ?

Thank for helping me.
 
Note sure I can help but a couple of qns

You are going to write the webservices server side in oscript and genearte the .NET stubs and java proxies aren't you ?

Or is this being totally done in a java or .net enviironment and what is being said is a wrapper.I think it is the former but anyway asking.

I would really be looking at the search customization guide or I would put a debug or trace into an actual livelink gui search.For a similar projcet involving search I traced the "add to collections" from asearch results and manipulated those for my own benefit.Sorry this will take more time but usually search is really not my strong point.Although in the cmmunities people have smaple code that uses search in oscript.
Should be fun I see this isn te serach service ospace
// the search API Util has been moved into websbroker.
// This is still provided as a convenience. Please repoint your script
// to use the function listed below.


function Assoc Search( Object prgCtx, Record searchRequest )

Assoc parm = $WEBSBROKER.SearchAPIUtil.Search( prgCtx, searchRequest )

return parm
end

which tells me that OT prefers using $WEBSBROKER.SearchAPIUtil

Well, if I called the wrong number, why did you answer the phone?
James Thurber, New Yorker cartoon caption, June 5, 1937
Certified OT Developer,Livelink ECM Champion 2008,Livelink ECM Champion 2010
 
Thanks appnair
You are going to write the webservices server side in oscript and genearte the .NET stubs and java proxies aren't you ?
Exactly --> In .Net stubs + Oscript Code

$WEBSBROKER.SearchAPIUtil.Search( prgCtx, searchRequest ) is the function i will use, the problem is now to build the searchRequest :(

I have pu a breakpoint in WebSbroker>ExternalSearchInterface>Search>NewSearch.Execute() there is a lot of data in the request that i don't know if there are usefull or not... I think i gonna spend a lot of time on this.
It's realy a shame that we can't find any documentation on this..I mean even for the WebService (SearchService)... the documentation (javadoc) say "public SingleSearchResponse search(SingleSearchRequest queries, String partitionName)
get a list of items according to some critera for inclusion and sorting
Parameters:
queries - a search query
partitionName - a string to be prepended to any dataids returned
Returns: a search response"

How can we guest what we need to put in "SingleSearchRequest queries "..?!?

SearchAPIUtil is supposed to be API...where is the programmer guide for this ?

Sorry i'm a little angry when i can't find documentation :)
 
EWS is a fast done alternative to LAPI so until it takes off in a huge way you will have that difficulty .If I were you I would look in oscript for an established lapi method and try to work my way as a webservice thingy.BTW search xml api is very well explained with examples so aren't you finding things that susit your purpose maybe you just have to call searchxml api in your .net code.Just my $0.02

Well, if I called the wrong number, why did you answer the phone?
James Thurber, New Yorker cartoon caption, June 5, 1937
Certified OT Developer,Livelink ECM Champion 2008,Livelink ECM Champion 2010
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top