On 11 July 2012 10:52, Sohail Aboobaker <sabooba...@gmail.com> wrote:
> 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.

Not sure that I understand the advantage of your second approach,
but you should be able to build something on top of SolrJ, e.g., with
an internal  method that translates bean values to a Solr query:
http://wiki.apache.org/solr/Solrj#Reading_Data_from_Solr

Regards,
Gora
Regards,
Gora

Reply via email to