In order to do a search, a CuramQuery object must be constructed. The CuramQuery class consists of:
- The searchServiceId of the SearchService whose Index you wish to search. See Search Service for more information on the concept of Search Services and searchServiceId for details of how the searchServiceId is defined
- A list of CuramTerm objects or a Text attribute representing a Lucene query string- these represent the search criteria. See below for more information on Cúram Terms and the Text attribute
- A list of CuramField objects - values for these Fields will be returned as part of the search results, but only if the fields have been marked as 'Stored' in the SearchServiceField definition (see stored)
- An integer attribute maxHits indicating the maximum number of hits to be returned for this query.
- A boolean flag maxHitsUnbounded indicating that the maximum number of hits is not limited. If this flag is set the maxHits attribute value is ignored.