RE: Creating a distributed search in a searchComponent

2009-05-21 Thread siping liu

I was looking for answer to the same question, and have similar concern. Looks 
like any serious customization work requires developing custom SearchComponent, 
but it's not clear to me how Solr designer wanted this to be done. I have more 
confident to either do it at Lucene level, or stay on client side and using 
something like Multi-core (as discussed here 
http://wiki.apache.org/solr/MultipleIndexes).


 
 Date: Wed, 20 May 2009 13:47:20 -0400
 Subject: RE: Creating a distributed search in a searchComponent
 From: nicholas.bai...@rackspace.com
 To: solr-user@lucene.apache.org
 
 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 nicholas.bai...@rackspace.com
 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
 
 
 

_
Hotmail® has ever-growing storage! Don’t worry about storage limits.
http://windowslive.com/Tutorial/Hotmail/Storage?ocid=TXT_TAGLM_WL_HM_Tutorial_Storage1_052009

Re: Creating a distributed search in a searchComponent

2009-05-21 Thread Shalin Shekhar Mangar
On Wed, May 20, 2009 at 10:59 PM, Nick Bailey nicholas.bai...@rackspace.com
 wrote:

 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?


You can also add a ServletFilter before SolrDispatchFilter and add the
parameters before Solr processes the query.

-- 
Regards,
Shalin Shekhar Mangar.


Re: Creating a distributed search in a searchComponent

2009-05-21 Thread Shalin Shekhar Mangar
Also look at SOLR-565 and see if that helps you.

https://issues.apache.org/jira/browse/SOLR-565

On Thu, May 21, 2009 at 9:58 PM, Shalin Shekhar Mangar 
shalinman...@gmail.com wrote:


 On Wed, May 20, 2009 at 10:59 PM, Nick Bailey 
 nicholas.bai...@rackspace.com wrote:

 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?


 You can also add a ServletFilter before SolrDispatchFilter and add the
 parameters before Solr processes the query.

 --
 Regards,
 Shalin Shekhar Mangar.




-- 
Regards,
Shalin Shekhar Mangar.


RE: Creating a distributed search in a searchComponent

2009-05-20 Thread Nick Bailey
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 nicholas.bai...@rackspace.com
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