Document Search

 

Documents can be searched in the system System or some specified folders Folders on the basis of Document nameName, typeType, and ownerOwner, sizeSize. Data class Class associated with document, FTS, creation Creation dateDate, Last mModified dDate and a combination of any of the specified criteria. If uUser is searching documents in a specific folder Folder, then he can also specify whether to include sub folders or not with the help of Include subfolder flag. Search results can be fetched in batches and sorted on some field like nameName, owner Owner etc. User can also specify whether to fetch the Data Class data class information with the search Search results Results or not. Search results Results without data Data class Class are faster then with Data Classdata class.

 

 

Search on Data Class and its fields

 

This sample Input xml illustrates Search for document(s) on Data data class associatedClass associated with the document. For e.g.xample, if Leave_Record is a Data Classdataclass with field NoOfLeaves then user User can search on employees whose has taken leave for more then specified days. If the user has to search for some document(s) and has some information about the Data Classdata class  associated with the document, then input Input xml similar to the following sample input Input xml will have to be generated.

 

<?xml version="1.0"?>

<NGOSearchDocumentExt_Input>

<Option>NGOSearchDocumentExt</Option>

<CabinetName>eworkstyle</CabinetName>

<UserDBId>-786155710</UserDBId>

<SearchText></SearchText>

<SearchOnPreviousVersions>N</SearchOnPreviousVersions>

<LookInFolder>14212</LookInFolder>

<LookInFolder>14232</LookInFolder>

<IncludeSubFolder>Y</IncludeSubFolder>

<DataDefinitions>1701</DataDefinitions>

<DataDefCriterion>

<DataDefIndex>1701</DataDefIndex>

<DataDefCriteria>

<DataDefIndex>1701</DataDefIndex>

<IndexId>29226</IndexId>

<Operator>=</Operator>

<IndexValue>*amit*</IndexValue>

<JoinCondition></JoinCondition>

</DataDefCriteria>

</DataDefCriterion>

<SearchScope>0</SearchScope>

<ReferenceFlag>B</ReferenceFlag>

<SortOrder>A</SortOrder>

<GroupIndex>957</GroupIndex>

<StartFrom>1</StartFrom>

<NoOfRecordsToFetch>20</NoOfRecordsToFetch>

<OrderBy>2</OrderBy>

<MaximumHitCountFlag>Y</MaximumHitCountFlag>

<DataAlsoFlag>Y</DataAlsoFlag>

</NGOSearchDocumentExt_Input>

 

 

OutputXml

 

<?xml version="1.0"?>

<NGOSearchDocumentExt_Output>

  <Option>NGOSearchDocumentExt</Option>

  <Status>0</Status>

  <NoOfRecordsFetched>1</NoOfRecordsFetched>

  <TotalNoOfRecords>1</TotalNoOfRecords>

  <MaximumHitCount>1</MaximumHitCount>

  <EncryptionFlag>N</EncryptionFlag>

  <SearchResults>

  <SearchResult>

  <Document>

    <DocumentIndex>33147</DocumentIndex>

    <ParentFolderIndex>16302</ParentFolderIndex>

    <DocumentVersionNo>1.0</DocumentVersionNo>

    <NoOfPages>1</NoOfPages>

    <DocumentName>POD</DocumentName>

    <Owner>krishan</Owner>

    <OwnerIndex>1113</OwnerIndex>

    <CreationDateTime>2001-11-20 14:19:16.997</CreationDateTime>

    <RevisedDateTime>2001-11-22 10:52:00.000</RevisedDateTime>

    <AccessDateTime>2001-11-22 14:35:00.000</AccessDateTime>

    <ExpiryDateTime>2099-12-12 00:00:00.000</ExpiryDateTime>

    <ReferenceFlag>O</ReferenceFlag>

    <VersionFlag>Y</VersionFlag>

    <DocumentType>N</DocumentType>

    <CreatedByApp>0</CreatedByApp>

    <CreatedByAppName>EXE</CreatedByAppName>

    <ISIndex>745#350#</ISIndex>

    <TextISIndex>0#0#</TextISIndex>

    <DocumentSize>250176</DocumentSize>

    <DocOrderNo>3</DocOrderNo>

    <ODMADocumentIndex>not defined</ODMADocumentIndex>

    <EnableLog>Y</EnableLog>

    <DocumentLock>N</DocumentLock>

    <Comment>Original Document</Comment>

    <Author>krishan</Author>

    <FTSFlag>PP</FTSFlag>

    <DocStatus>A</DocStatus>

    <FinalizedFlag>N</FinalizedFlag>

    <FinalizedBy>krishan</FinalizedBy>

    <FinalizedDateTime>2001-11-22 10:52:00.000</FinalizedDateTime>

    <LoginUserRights>1111111111</LoginUserRights>

    <FiledByUser>krishan</FiledByUser>

    <CheckoutStatus>N</CheckoutStatus>

    <PullPrintFlag>F</PullPrintFlag>

    <DataDefinition>

    <DataDefIndex>1701</DataDefIndex>

    <DataDefName>Adobe</DataDefName>

<Fields>

<Field>

    <IndexId>29226</IndexId>

    <IndexName>Name</IndexName>

    <IndexType>S</IndexType>

    <IndexLength>50</IndexLength>

    <IndexAttribute>0</IndexAttribute>

    <IndexFlag>D</IndexFlag>

    <IndexValue>amit</IndexValue>

</Field>

<Field>

    <IndexId>29227</IndexId>

    <IndexName>Id</IndexName>

    <IndexType>I</IndexType>

    <IndexLength>2</IndexLength>

    <IndexAttribute>0</IndexAttribute>

    <IndexFlag>D</IndexFlag>

    <IndexValue>null</IndexValue>

</Field>

</Fields>

    </DataDefinition>

    <ThumbNailFlag>N</ThumbNailFlag>

  </Document>

  <Hits>

  </Hits>

  </SearchResult>

  </SearchResults>

</NGOSearchDocumentExt_Output>

 

View call detail for document search

 

 

Search on Date

 

This sample Input xml illustrates search for document(s) based on some date-based criteria.

 

If the user User has to search for some document(s) between the range of dates Dates in which the documents were accessed or created, then input Input xml similar to the following sample input Input xml will have to be generated and send to serverServer. For eg.example User, User can search for documents created in last 2 months or documents accessed between 11/11/2001 to 23/11/2001.

 

 

<?xml version="1.0"?>

<NGOSearchDocumentExt_Input>

<Option>NGOSearchDocumentExt</Option>

<CabinetName>eworkstyle</CabinetName>

<UserDBId>-786155710</UserDBId>

<SearchOnPreviousVersions>N</SearchOnPreviousVersions>

<LookInFolder>14212</LookInFolder>

<LookInFolder>14232</LookInFolder>

<IncludeSubFolder>Y</IncludeSubFolder>

<AccessDateRange>BETWEEN,2001-8-23 00:00:01,2001-11-24 23:59:59</AccessDateRange>

<SearchScope>0</SearchScope>

<ReferenceFlag>B</ReferenceFlag>

<SortOrder>A</SortOrder>

<GroupIndex>957</GroupIndex>

<StartFrom>1</StartFrom>

<NoOfRecordsToFetch>20</NoOfRecordsToFetch>

<OrderBy>2</OrderBy>

<MaximumHitCountFlag>Y</MaximumHitCountFlag>

<DataAlsoFlag>N</DataAlsoFlag>

</NGOSearchDocumentExt_Input>

 

Outputxml

 

<?xml version="1.0"?>

<NGOSearchDocumentExt_Output>

  <Option>NGOSearchDocumentExt</Option>

  <Status>0</Status>

  <NoOfRecordsFetched>20</NoOfRecordsFetched>

  <TotalNoOfRecords>21</TotalNoOfRecords>

  <MaximumHitCount>279</MaximumHitCount>

  <EncryptionFlag>N</EncryptionFlag>

  <SearchResults>

  <SearchResult>

  <Document>

    <DocumentIndex>28841</DocumentIndex>

    <ParentFolderIndex>14560</ParentFolderIndex>

    <DocumentVersionNo>1.0</DocumentVersionNo>

    <NoOfPages>1</NoOfPages>

    <DocumentName>! @ # $ % ^ & ( ) _ - + =  { } [ ] ;  , .</DocumentName>

    <Owner>Ashish</Owner>

    <OwnerIndex>1111</OwnerIndex>

    <CreationDateTime>2001-10-06 11:47:01.867</CreationDateTime>

    <RevisedDateTime>2001-10-18 15:36:57.577</RevisedDateTime>

    <AccessDateTime>2001-11-06 10:46:00.000</AccessDateTime>

    <ExpiryDateTime>2099-12-12 00:00:00.000</ExpiryDateTime>

    <ReferenceFlag>O</ReferenceFlag>

    <VersionFlag>Y</VersionFlag>

    <DocumentType>N</DocumentType>

    <CreatedByApp>0</CreatedByApp>

    <CreatedByAppName>log</CreatedByAppName>

    <ISIndex>93#350#</ISIndex>

    <TextISIndex>0#0#</TextISIndex>

    <DocumentSize>152</DocumentSize>

    <DocOrderNo>9</DocOrderNo>

    <FTSDocumentIndex>36812</FTSDocumentIndex>

    <ODMADocumentIndex>not defined</ODMADocumentIndex>

    <EnableLog>Y</EnableLog>

    <DocumentLock>N</DocumentLock>

    <Comment>Original Document</Comment>

    <Author>Ashish</Author>

    <FTSFlag>TT</FTSFlag>

    <DocStatus>A</DocStatus>

    <FinalizedFlag>N</FinalizedFlag>

    <FinalizedBy>Supervisor</FinalizedBy>

    <FinalizedDateTime>2001-10-12 17:29:00.000</FinalizedDateTime>

    <LoginUserRights>0111010000</LoginUserRights>

    <FiledByUser>Ashish</FiledByUser>

    <CheckoutStatus>N</CheckoutStatus>

    <PullPrintFlag>I</PullPrintFlag>

    <DataDefinition>

    </DataDefinition>

    <ThumbNailFlag>N</ThumbNailFlag>

  </Document>

  <Hits>

  </Hits>

  </SearchResult>

    </SearchResults>

</NGOSearchDocumentExt_Output>

 

View call detail for document search

 

 

Search Document on the basis of some general and date criteria combined

 

This sample input xml illustrates search for document(s) based on some general information about the document and some date-based criteria. If the user has to search for some document(s) on information like document name (Supports wild card search), document type (Extension of the document like jpeg, doc etc.), document owner, some keyword attached with the document, range of size of the document, and the range of dates in which the documents were accessed, then input xml similar to the following sample input xml will have to be generated. For e.g. Document of type doc and created in last 6 months or Documents whose name starts with “ab” and modified between 11/11/2001 and 13/11/2001 or documents created by praveen in last months

 

 

<?xml version="1.0"?>

<NGOSearchDocumentExt_Input>

<Option>NGOSearchDocumentExt</Option>

<CabinetName>eworkstyle</CabinetName>

<UserDBId>-54775492</UserDBId>

<SearchOnPreviousVersions>N</SearchOnPreviousVersions>

<LookInFolder>14212</LookInFolder>

<LookInFolder>14232</LookInFolder>

<IncludeSubFolder>Y</IncludeSubFolder>

<Name>*pod*</Name>

<Owner>*krishan*</Owner>

<AccessDateRange>BETWEEN,2001-11-22 0:00:01,2001-11-23 23:59:59</AccessDateRange>

<SearchScope>0</SearchScope>

<SearchOnAlias>N</SearchOnAlias>

<Keywords>

                <Keyword>*New Document*</Keyword>

</Keywords>

<ReferenceFlag>B</ReferenceFlag>

<SortOrder>A</SortOrder>

<GroupIndex>957</GroupIndex>

<StartFrom>1</StartFrom>

<NoOfRecordsToFetch>20</NoOfRecordsToFetch>

<OrderBy>2</OrderBy>

<MaximumHitCountFlag>Y</MaximumHitCountFlag>

<DataAlsoFlag>N</DataAlsoFlag>

<DocumentSizeCriteria><=,512000</DocumentSizeCriteria>

<CreatedByAppName>exe</CreatedByAppName>

</NGOSearchDocumentExt_Input>

 

O/p xml

 

<?xml version="1.0"?>

<NGOSearchDocumentExt_Output>

  <Option>NGOSearchDocumentExt</Option>

  <Status>0</Status>

  <NoOfRecordsFetched>1</NoOfRecordsFetched>

  <TotalNoOfRecords>1</TotalNoOfRecords>

  <MaximumHitCount>1</MaximumHitCount>

  <EncryptionFlag>N</EncryptionFlag>

  <SearchResults>

  <SearchResult>

  <Document>

    <DocumentIndex>33147</DocumentIndex>

    <ParentFolderIndex>16302</ParentFolderIndex>

    <DocumentVersionNo>1.0</DocumentVersionNo>

    <NoOfPages>1</NoOfPages>

    <DocumentName>POD</DocumentName>

    <Owner>krishan</Owner>

    <OwnerIndex>1113</OwnerIndex>

    <CreationDateTime>2001-11-20 14:19:16.997</CreationDateTime>

    <RevisedDateTime>2001-11-22 10:52:00.000</RevisedDateTime>

    <AccessDateTime>2001-11-22 10:52:00.000</AccessDateTime>

    <ExpiryDateTime>2099-12-12 00:00:00.000</ExpiryDateTime>

    <ReferenceFlag>O</ReferenceFlag>

    <VersionFlag>Y</VersionFlag>

    <DocumentType>N</DocumentType>

    <CreatedByApp>0</CreatedByApp>

    <CreatedByAppName>EXE</CreatedByAppName>

    <ISIndex>745#350#</ISIndex>

    <TextISIndex>0#0#</TextISIndex>

    <DocumentSize>250176</DocumentSize>

    <DocOrderNo>3</DocOrderNo>

    <ODMADocumentIndex>not defined</ODMADocumentIndex>

    <EnableLog>Y</EnableLog>

    <DocumentLock>N</DocumentLock>

    <Comment>Original Document</Comment>

    <Author>krishan</Author>

    <FTSFlag>PP</FTSFlag>

    <DocStatus>A</DocStatus>

    <FinalizedFlag>N</FinalizedFlag>

    <FinalizedBy>krishan</FinalizedBy>

    <FinalizedDateTime>2001-11-22 10:52:00.000</FinalizedDateTime>

    <LoginUserRights>1111111111</LoginUserRights>

    <FiledByUser>krishan</FiledByUser>

    <CheckoutStatus>N</CheckoutStatus>

    <PullPrintFlag>F</PullPrintFlag>

    <DataDefinition>

    <DataDefIndex>1701</DataDefIndex>

    <DataDefName>Adobe</DataDefName>

    </DataDefinition>

    <ThumbNailFlag>N</ThumbNailFlag>

  </Document>

  <Hits>

  </Hits>

  </SearchResult>

  </SearchResults>

</NGOSearchDocumentExt_Output>

 

View call detail for document search

 

 

Search based on General information and Data Class information

 

This Sample Input XML illustrates search for document(s) on some general information about the document and the data class associated with the document. If the user has to search for some document(s) on some general information like document Document name Name (Supports wild card search), dDocument Ttype (Extension of the document like jpeg, doc etc.), document Document ownerOwner, some keyword Keyword attached with the document, range of size of the document, and the Data Classdata class  associated with the document, then input Input xml similar to the following sample input xml will have to be generated. For e.g.example, Leave request of employee in word format and who has taken leave on 12/12/2000.leave request of employee whose name starts with “aa” and has taken leave for more then 5 days.

 

 

<?xml version="1.0"?>

<NGOSearchDocumentExt_Input>

<Option>NGOSearchDocumentExt</Option>

<CabinetName>eworkstyle</CabinetName>

<UserDBId>-54775492</UserDBId>

<SearchOnPreviousVersions>N</SearchOnPreviousVersions>

<LookInFolder>14212</LookInFolder>

<LookInFolder>14232</LookInFolder>

<IncludeSubFolder>Y</IncludeSubFolder>

<Name>*pod*</Name>

<Owner>*krishan*</Owner>

<DataDefinitions>1701</DataDefinitions>

<DataDefCriterion>

<DataDefIndex>1701</DataDefIndex>

<DataDefCriteria>

<DataDefIndex>1701</DataDefIndex>

<IndexId>29226</IndexId>

<Operator>=</Operator>

<IndexValue>*amit*</IndexValue>

<JoinCondition></JoinCondition>

</DataDefCriteria>

</DataDefCriterion>

<SearchScope>0</SearchScope>

<SearchOnAlias>N</SearchOnAlias>

<Keywords>

<Keyword>*new document*</Keyword>

</Keywords>

<ReferenceFlag>B</ReferenceFlag>

<SortOrder>A</SortOrder>

<GroupIndex>957</GroupIndex>

<StartFrom>1</StartFrom>

<NoOfRecordsToFetch>20</NoOfRecordsToFetch>

<OrderBy>2</OrderBy>

<MaximumHitCountFlag>Y</MaximumHitCountFlag>

<DataAlsoFlag>Y</DataAlsoFlag>

<DocumentSizeCriteria><=,512000</DocumentSizeCriteria>

<CreatedByAppName>exe</CreatedByAppName>

</NGOSearchDocumentExt_Input>

 

OutputXml

 

<?xml version="1.0" ?>

<NGOSearchDocumentExt_Output>

<Option>NGOSearchDocumentExt</Option>

<Status>0</Status>

<NoOfRecordsFetched>1</NoOfRecordsFetched>

<TotalNoOfRecords>1</TotalNoOfRecords>

<MaximumHitCount>1</MaximumHitCount>

<EncryptionFlag>N</EncryptionFlag>

<SearchResults>

<SearchResult>

<Document>

<DocumentIndex>33147</DocumentIndex>

<ParentFolderIndex>16302</ParentFolderIndex>

<DocumentVersionNo>1.0</DocumentVersionNo>

<NoOfPages>1</NoOfPages>

<DocumentName>POD</DocumentName>

<Owner>krishan</Owner>

<OwnerIndex>1113</OwnerIndex>

<CreationDateTime>2001-11-20 14:19:16.997</CreationDateTime>

<RevisedDateTime>2001-11-22 10:52:00.000</RevisedDateTime>

<AccessDateTime>2001-11-22 10:52:00.000</AccessDateTime>

<ExpiryDateTime>2099-12-12 00:00:00.000</ExpiryDateTime>

<ReferenceFlag>O</ReferenceFlag>

<VersionFlag>Y</VersionFlag>

<DocumentType>N</DocumentType>

<CreatedByApp>0</CreatedByApp>

<CreatedByAppName>EXE</CreatedByAppName>

<ISIndex>745#350#</ISIndex>

<TextISIndex>0#0#</TextISIndex>

<DocumentSize>250176</DocumentSize>

<DocOrderNo>3</DocOrderNo>

<ODMADocumentIndex>not defined</ODMADocumentIndex>

<EnableLog>Y</EnableLog>

<DocumentLock>N</DocumentLock>

<Comment>Original Document</Comment>

<Author>krishan</Author>

<FTSFlag>PP</FTSFlag>

<DocStatus>A</DocStatus>

<FinalizedFlag>N</FinalizedFlag>

<FinalizedBy>krishan</FinalizedBy>

<FinalizedDateTime>2001-11-22 10:52:00.000</FinalizedDateTime>

<LoginUserRights>1111111111</LoginUserRights>

<FiledByUser>krishan</FiledByUser>

<CheckoutStatus>N</CheckoutStatus>

<PullPrintFlag>F</PullPrintFlag>

<DataDefinition>

<DataDefIndex>1701</DataDefIndex>

<DataDefName>Adobe</DataDefName>

<Fields>

<Field>

<IndexId>29226</IndexId>

<IndexName>Name</IndexName>

<IndexType>S</IndexType>

<IndexLength>50</IndexLength>

<IndexAttribute>0</IndexAttribute>

<IndexFlag>D</IndexFlag>

<IndexValue>amit</IndexValue>

</Field>

<Field>

<IndexId>29227</IndexId>

<IndexName>Id</IndexName>

<IndexType>I</IndexType>

<IndexLength>2</IndexLength>

<IndexAttribute>0</IndexAttribute>

<IndexFlag>D</IndexFlag>

<IndexValue>null</IndexValue>

</Field>

</Fields>

</DataDefinition>

<ThumbNailFlag>N</ThumbNailFlag>

</Document>

<Hits></Hits>

</SearchResult>

</SearchResults>

</NGOSearchDocumentExt_Output>

 

View call detail for document search

 

Search based on General information, Data Class and date.

 

This sample Iinput xml illustrates search for document(s) based on some general information about the document, information about the Data data class associatedClass associated with the document and some dateDate-based criteria. If the user User has to search for some document(s) on some general information about the documents like document Document name Name (Supports wild card search), document type (Extension of the document like jpeg, doc etc.), document Document ownerOwner, some keyword Keyword attached with the document, range of size of the document, Data Classdata class associated with the document and the range of dates Dates in which the documents were accessed, then input Input xml similar to the following sample iInput xml will have to be generated. For e.g.example, document, which are created by “praveen” in last month and leave request data class attached with it.

 

 

<?xml version="1.0"?>

<NGOSearchDocumentExt_Input>

<Option>NGOSearchDocumentExt</Option>

<CabinetName>eworkstyle</CabinetName>

<UserDBId>93796859</UserDBId>

<SearchOnPreviousVersions>N</SearchOnPreviousVersions>

<LookInFolder>14212</LookInFolder>

<LookInFolder>14232</LookInFolder>

<IncludeSubFolder>Y</IncludeSubFolder>

<Name>*pod*</Name>

<Owner>*krishan*</Owner>

<AccessDateRange>BETWEEN,2001-10-22 00:00:01,2001-11-22         23:59:59</AccessDateRange>

<DataDefinitions>1701</DataDefinitions>

<DataDefCriterion>

<DataDefIndex>1701</DataDefIndex>

<DataDefCriteria>

<DataDefIndex>1701</DataDefIndex>

<IndexId>29226</IndexId>

<Operator>=</Operator>

<IndexValue>*amit*</IndexValue>

<JoinCondition></JoinCondition>

</DataDefCriteria>

</DataDefCriterion>

<SearchScope>0</SearchScope>

<SearchOnAlias>N</SearchOnAlias>

<Keywords>

<Keyword>*new document*</Keyword>

</Keywords>

<ReferenceFlag>B</ReferenceFlag>

<SortOrder>A</SortOrder>

<GroupIndex>957</GroupIndex>

<StartFrom>1</StartFrom>

<NoOfRecordsToFetch>20</NoOfRecordsToFetch>

<OrderBy>2</OrderBy>

<CheckOutStatus>Y</CheckOutStatus>

<MaximumHitCountFlag>Y</MaximumHitCountFlag>

<CheckOutByUser>krishan</CheckOutByUser>

<DataAlsoFlag>Y</DataAlsoFlag>

<DocumentSizeCriteria><=,512000</DocumentSizeCriteria>

<CreatedByAppName>exe</CreatedByAppName>

</NGOSearchDocumentExt_Input>

 

 

Outputxml 

<?xml version="1.0"?>

<NGOSearchDocumentExt_Output>

  <Option>NGOSearchDocumentExt</Option>

  <Status>0</Status>

  <NoOfRecordsFetched>1</NoOfRecordsFetched>

  <TotalNoOfRecords>1</TotalNoOfRecords>

  <MaximumHitCount>1</MaximumHitCount>

  <EncryptionFlag>N</EncryptionFlag>

  <SearchResults>

  <SearchResult>

  <Document>

    <DocumentIndex>33147</DocumentIndex>

    <ParentFolderIndex>16302</ParentFolderIndex>

    <DocumentVersionNo>1.0</DocumentVersionNo>

    <NoOfPages>1</NoOfPages>

    <DocumentName>POD</DocumentName>

    <Owner>krishan</Owner>

    <OwnerIndex>1113</OwnerIndex>

    <CreationDateTime>2001-11-20 14:19:16.997</CreationDateTime>

    <RevisedDateTime>2001-11-22 10:52:00.000</RevisedDateTime>

    <AccessDateTime>2001-11-22 14:35:00.000</AccessDateTime>

    <ExpiryDateTime>2099-12-12 00:00:00.000</ExpiryDateTime>

    <ReferenceFlag>O</ReferenceFlag>

    <VersionFlag>Y</VersionFlag>

    <DocumentType>N</DocumentType>

    <CreatedByApp>0</CreatedByApp>

    <CreatedByAppName>EXE</CreatedByAppName>

    <ISIndex>745#350#</ISIndex>

    <TextISIndex>0#0#</TextISIndex>

    <DocumentSize>250176</DocumentSize>

    <DocOrderNo>3</DocOrderNo>

    <ODMADocumentIndex>not defined</ODMADocumentIndex>

    <EnableLog>Y</EnableLog>

    <DocumentLock>N</DocumentLock>

    <Comment>Original Document</Comment>

    <Author>krishan</Author>

    <FTSFlag>PP</FTSFlag>

    <DocStatus>A</DocStatus>

    <CheckoutBy>krishan</CheckoutBy>

    <FinalizedFlag>N</FinalizedFlag>

    <FinalizedBy>krishan</FinalizedBy>

    <FinalizedDateTime>2001-11-22 10:52:00.000</FinalizedDateTime>

    <LoginUserRights>1111111111</LoginUserRights>

    <FiledByUser>krishan</FiledByUser>

    <CheckoutStatus>Y</CheckoutStatus>

    <PullPrintFlag>F</PullPrintFlag>

    <DataDefinition>

    <DataDefIndex>1701</DataDefIndex>

    <DataDefName>Adobe</DataDefName>

<Fields>

<Field>

    <IndexId>29226</IndexId>

    <IndexName>Name</IndexName>

    <IndexType>S</IndexType>

    <IndexLength>50</IndexLength>

    <IndexAttribute>0</IndexAttribute>

    <IndexFlag>D</IndexFlag>

    <IndexValue>amit</IndexValue>

</Field>

<Field>

    <IndexId>29227</IndexId>

    <IndexName>Id</IndexName>

    <IndexType>I</IndexType>

    <IndexLength>2</IndexLength>

    <IndexAttribute>0</IndexAttribute>

    <IndexFlag>D</IndexFlag>

    <IndexValue>null</IndexValue>

</Field>

</Fields>

    </DataDefinition>

    <ThumbNailFlag>N</ThumbNailFlag>

  </Document>

  <Hits>

  </Hits>

  </SearchResult>

  </SearchResults>

</NGOSearchDocumentExt_Output>

 

View call detail for document search

 

Search Based on Text for FTS

This sample input xml illustrates search for document(s) based on some text to be found in the documents. If the user has to search for some document(s) on the basis of some text present in those document(s), then iInput xml similar to the following sample iInput xml will have to be generated. For e.g.xample, uUser wants to search for documents which containsdocuments that contain “Document”.

 

InputXml

 

<?xml version="1.0"?>

<NGOSearchDocumentExt_Input>

<Option>NGOSearchDocumentExt</Option>

<CabinetName>eworkstyle</CabinetName>

<UserDBId>-2059710609</UserDBId>

<SearchText>"document*"</SearchText>

<Rank>Y</Rank>

<SearchOnPreviousVersions>N</SearchOnPreviousVersions>

<LookInFolder>15292</LookInFolder>

<LookInFolder>15288</LookInFolder>

<IncludeSubFolder>Y</IncludeSubFolder>

<SearchScope>0</SearchScope>

<SearchOnAlias>N</SearchOnAlias>

<ReferenceFlag>B</ReferenceFlag>

<SortOrder>A</SortOrder>

<GroupIndex>1037</GroupIndex>

<StartFrom>1</StartFrom>

<NoOfRecordsToFetch>50</NoOfRecordsToFetch>

<OrderBy>2</OrderBy>

<MaximumHitCountFlag>Y</MaximumHitCountFlag>

<ObjectTypes>

<ObjectType>1</ObjectType>

<ObjectType>2</ObjectType>

<ObjectType>8</ObjectType>

<ObjectType>11</ObjectType>

<ObjectType>13</ObjectType>

</ObjectTypes>

<DataAlsoFlag>N</DataAlsoFlag>

</NGOSearchDocumentExt_Input>

 

Outputxml

 

<?xml version="1.0"?>

<NGOSearchDocumentExt_Output>

  <Option>NGOSearchDocumentExt</Option>

  <Status>0</Status>

  <NoOfRecordsFetched>50</NoOfRecordsFetched>

  <TotalNoOfRecords>51</TotalNoOfRecords>

  <MaximumHitCount>57</MaximumHitCount>

  <EncryptionFlag>N</EncryptionFlag>

  <SearchResults>

  <SearchResult>

  <Document>

    <DocumentIndex>31435</DocumentIndex>

    <ParentFolderIndex>15837</ParentFolderIndex>

    <DocumentVersionNo>1.0</DocumentVersionNo>

    <NoOfPages>1</NoOfPages>

    <DocumentName>19 oct</DocumentName>

    <Owner>kamal</Owner>

    <OwnerIndex>1214</OwnerIndex>

    <CreationDateTime>2001-10-25 15:09:03.793</CreationDateTime>

    <RevisedDateTime>2001-10-25 23:47:03.653</RevisedDateTime>

    <AccessDateTime>2001-11-22 09:19:00.000</AccessDateTime>

    <ExpiryDateTime>2099-12-12 00:00:00.000</ExpiryDateTime>

    <ReferenceFlag>O</ReferenceFlag>

    <VersionFlag>Y</VersionFlag>

    <DocumentType>N</DocumentType>

    <CreatedByApp>0</CreatedByApp>

    <CreatedByAppName>txt</CreatedByAppName>

    <ISIndex>154#368#</ISIndex>

    <TextISIndex>0#0#</TextISIndex>

    <DocumentSize>5642</DocumentSize>

    <DocOrderNo>18</DocOrderNo>

    <FTSDocumentIndex>37257</FTSDocumentIndex>

    <ODMADocumentIndex>not defined</ODMADocumentIndex>

    <EnableLog>Y</EnableLog>

    <DocumentLock>N</DocumentLock>

    <Comment>Original Document</Comment>

    <Author>kamal</Author>

    <FTSFlag>TT</FTSFlag>

    <DocStatus>A</DocStatus>

    <FinalizedFlag>N</FinalizedFlag>

    <FinalizedDateTime>2099-12-12 00:00:00.000</FinalizedDateTime>

    <LoginUserRights>010000</LoginUserRights>

    <FiledByUser>kamal</FiledByUser>

    <CheckoutStatus>N</CheckoutStatus>

    <PullPrintFlag>F</PullPrintFlag>

    <DataDefinition>

    </DataDefinition>

    <ThumbNailFlag>N</ThumbNailFlag>

  </Document>

  <Hits>

  <Hit>

  <ObjectIndex>31435</ObjectIndex>

  <ObjectType>1</ObjectType>

  <Rank>84</Rank>

  <TextValue>19 oct build

---------------

kamal

----------

1. proper selection / deselection for secure checkbox -- kamal

2. Image form is not viewable in Netscape after attaching at the time of initiation. -- ni</TextValue>

  </Hit>

  </Hits>

  </SearchResult> 

  </SearchResults>

</NGOSearchDocumentExt_Output>

 

View call detail for document search