Thanks, I will look into more like this. To answer your question, we were discussing interface for a central search service that all other components can call. We have to provide a set of parameters as interface which clients can set and ask for results. This would mean that name of each parameter needs to be defined and mapped to document field for the search service to work. One other approach is to publish a bean object which corresponds to the schema and have clients set values in the example bean object and ask for results matching that bean object. We thought this approach might be cleaner than a map of parameters.
Regards, Sohail