It seems I sent this out a bit too soon. After looking at the source it seems
there are two seperate paths for distributed and regular queries, however the
prepare method for for all components is run before the shards parameter is
checked. So I can build the shards portion by using the prepare method of the
my own search component.
However I'm not sure if this is the greatest idea in case solr changes at some
point.
-Nick
-Original Message-
From: "Nick Bailey"
Sent: Wednesday, May 20, 2009 1:29pm
To: solr-user@lucene.apache.org
Subject: Creating a distributed search in a searchComponent
Hi,
I am wondering if it is possible to basically add the distributed portion of a
search query inside of a searchComponent.
I am hoping to build my own component and add it as a first-component to the
StandardRequestHandler. Then hopefully I will be able to use this component to
build the "shards" parameter of the query and have the Handler then treat the
query as a distributed search. Anyone have any experience or know if this is
possible?
Thanks,
Nick