Activity - searchIndexedFiles

Activity Type: Indexed File

Description

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.

Examples

<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>

Specification

Element searchIndexedFiles:

Input and Output Types

Warning to Service Deployers

This activity can be used by clients to potentially access any directory on your server below that exposed by the associated OGSA-DAI service.

Data Resource Accessor

This activity requires a data resource accessor that implements the following interface: uk.org.ogsadai.dataresource.FileAccessProvider

Required Libraries

The use of this activity requires the following jar to be loaded on the server:

XML Schema

OGSA-DAI/schema/ogsadai/xsd/activities/search_indexed_file.xsd

Class

uk.org.ogsadai.activity.indexedfiles.SearchIndexedFileActivity

Client Toolkit Class

uk.org.ogsadai.client.toolkit.activity.indexedfiles.IndexedFileSearch