Activity Type: Indexed File
Searches a file index using the full-text search engine Jakarta Lucene. The file index must already exist on the server, having beed generated previously using the addIndexFile activity or by another means.
<searchIndexedFile name="search"> <query>AC:P13813</query> <output name="fileLocations"/> <status name="searchResults"/> </searchIndexedFile>
<searchIndexedFile name="search"> <query>AC:P13813</query> <index>uniprot_sprot/15-JUL-2004</index> <output name="fileLocations"/> <status name="searchResults"/> </searchIndexedFile>
Element searchIndexedFiles:
<searchResult resultCount="N"> <document id="ID"/> <field name="FIELD-NAME"> FIELD </field> </document> </searchResult>There will be zero or more document elements, each describing a document that matched the search query. The first block of output will contain the searchResult opening tag and the first document element if one exists. Subsequent blocks will contain subsequent document elements until there are no more results. The final block will contain the searchResult closing tag.
<readFile name="ID"> <file>FILE-NAME</file> <bytes offset="OFFSET" length="LENGTH"/> </readFile>There will be zero or more readFile elements, each describing the location of a search result within an indexed file. These elements can be streamed directly into the readFile activity in order to retrieve the file data. Each readFile element will be produced as an individual block.
This activity can be used by clients to potentially access any directory on your server below that exposed by the associated OGSA-DAI service.
This activity requires a data resource accessor that implements the following interface: uk.org.ogsadai.dataresource.FileAccessProvider
The use of this activity requires the following jar to be loaded on the server:
OGSA-DAI/schema/ogsadai/xsd/activities/search_indexed_file.xsd
uk.org.ogsadai.activity.indexedfiles.SearchIndexedFileActivity
uk.org.ogsadai.client.toolkit.activity.indexedfiles.IndexedFileSearch
Up: Activities | ||
© International Business Machines Corporation, 2002-2006. | © The University of Edinburgh, 2002-2006. |