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!

Documents are not reflecting in search web service

Status
Not open for further replies.

Susan2068

Programmer
Jul 22, 2016
16
IN
HI ,

in the enterprise workspace there are 1 document and one folder now i have added new pdf file to enterprise workspace

i am trying to get documents and folders from SOPAUI with sarch web service call i m able to see only 2 items one documents and one folder the newly added pdf file is not coming in the results.
is there any settings to do to reflect in the web service call

Thank you
 
Hi Greg Griffiths

i am using the same user in search still not able to see the newly added document in the response.

below is the search request

<urn1:Search>
<!--Optional:-->
<urn1:queries>
<!--Optional:-->
<urn1:DataCollectionSpec>'LES Enterprise'</urn1:DataCollectionSpec>
<urn1:FirstResultToRetrieve>1</urn1:FirstResultToRetrieve>
<urn1:NumResultsToRetrieve>10000</urn1:NumResultsToRetrieve>
<!--Optional:-->
<urn1:QueryLanguage>Livelink Search API V1</urn1:QueryLanguage>
<!--Optional:-->
<urn1:ResultOrderSpec> </urn1:ResultOrderSpec>
<!--Optional:-->
<urn1:ResultSetSpec>where1=("OTDataID":15853)</urn1:ResultSetSpec>
<!--Zero or more repetitions:-->
<urn1:ResultTransformationSpec>OTName</urn1:ResultTransformationSpec>
<urn1:ResultTransformationSpec>OTParentID</urn1:ResultTransformationSpec>
<urn1:ResultTransformationSpec>OTSubType</urn1:ResultTransformationSpec>

</urn1:queries>
<!--Optional:-->
<urn1:partitionName></urn1:partitionName>
</urn1:Search>


the OTDataID is 15853 the id for the newly added document

Please help
Thank you
 
As Greg said the document has to be available in a WebGUI search before it can be found by a SOAP call.
Livelink's search process works like this

You Add Object(Folder,Document etc)
Livelink search subsystem "indexes" meaning if version can be read FT indexed else metadata
After indexing puts into search index
you now are able to find it through the search

A really good working system with no bottlenecks in search will take at least 3 minutes for a newly added one to work.

I would look in the search volume and see if has any pending messages in the processing iPools.


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
 
hi appnair,

i did the re-synchronize in Enterprise Search manager and saw that there are no pending task to be indexed.

still not able to get the document in the Search service.

what might be the cause. below is the query i m executing

<urn1:queries>
<!--Optional:-->
<urn1:DataCollectionSpec>'LES Enterprise'</urn1:DataCollectionSpec>
<urn1:FirstResultToRetrieve>1</urn1:FirstResultToRetrieve>
<urn1:NumResultsToRetrieve>10000</urn1:NumResultsToRetrieve>
<!--Optional:-->
<urn1:QueryLanguage>Livelink Search API V1</urn1:QueryLanguage>
<!--Optional:-->
<urn1:ResultOrderSpec></urn1:ResultOrderSpec>
<!--Optional:-->
<urn1:ResultSetSpec>where1=("OTSubType":0 OR "OTSubType":1 OR "OTSubType":144) AND "OTParentID":2000 </urn1:ResultSetSpec>
<!--Zero or more repetitions:-->
<urn1:ResultTransformationSpec>OTName</urn1:ResultTransformationSpec>
<urn1:ResultTransformationSpec>OTSubType</urn1:ResultTransformationSpec>

<urn1:ResultTransformationSpec>OTParentID</urn1:ResultTransformationSpec>
</urn1:queries>

Thank you
 
you cannot just use the SOAP interface to debug your search results have to work with the livelink web gui,SOAP is basically calling the same thing through programmatic means
If you have time read thru this article in my blog

You will find troubleshooting in livelink an art..


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
 
hi appnair,

where can i find the web service logs in livelink content server

 
There are two kinds of logging.One is the SOAP endpoint where you hit the LL service has its logs under that webserver/application server.Depending on the verbosity you give
it will give you mostly what your application is capable of like 'Invalid UserName/Password,could not login with cookie those kind)

If you go to the livelink server connected to the SOAP end point and do this
Debug=2
wantLogs=True
WantlapiLogs=TRUE
and re-start the server when soap requests fly past between your program and livelink the thread logs that go like

thread <nn>.out will have a <INARGS and a <OutARGS inARGS is what your clinet gave Out what LL replied with.

Search has its own logging
wantSearchLogs=FALSE

If you make that true every search that is issued form GUI or Programming will show you what is being sent to the search subsystem.




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
 
Hi Appnair,

what is the difference between the below two where condition in livelink

condition 1:

<urn1:ResultSetSpec>where1=("OTSubType":0 OR "OTSubType":1 OR "OTSubType":144) AND "OTParentID":2000 </urn1:ResultSetSpec>

condition 2:

<urn1:ResultSetSpec>where1= "OTParentID":2000 </urn1:ResultSetSpec>

<urn1:ResultSetSpec>where2=("OTSubType":0 OR "OTSubType":1 OR "OTSubType":144)</urn1:ResultSetSpec>

what happens when we add the multiple where conditions like where1 ,where2.... is it takes has the AND condition where1 AND where2 ?

i in soap client i able to add the two where conditions but from the java code i m setting the setResultSetSpec like this

singleSearchRequest.setResultSetSpec("where1=\"OTParentID\":"2000")
singleSearchRequest.setResultSetSpec(where2=\"OTSubType\":0 OR \"OTSubType\":1 OR \"OTSubType\":144)

the where2 condition is overwriting the where1 in java how can i set both where using singleSearchRequest.setResultSetSpec

i tried combining both where in one like this where1=("OTSubType":0 OR "OTSubType":1 OR "OTSubType":144) AND "OTParentID":2000
but didnt got result in soap ui client if i try with two conditions it is retrieving the data.

please help

Thanks in advance
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top