You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Jon Baer <jo...@gmail.com> on 2008/05/02 21:36:17 UTC

Distributed Search (shard) w/ Multicore?

Hi,

Im trying to figure out if I can do this or if something else needs to  
be set, trying to run a query over multiple cores w/ the shard param?   
I seem to be getting the correct number of results back but no  
data ... any ideas?

Thanks.

- Jon

Re: Distributed Search (shard) w/ Multicore?

Posted by Yonik Seeley <yo...@apache.org>.
Try adding echoParams=all to the request.
Maybe there is a default rows=0 or something.

Are you using a recent version of Solr?

-Yonik

On Fri, May 2, 2008 at 4:30 PM, Jon Baer <jo...@gmail.com> wrote:
> Sorry about that, Im sending something simple like:
>
>http://search.company.com:8115/solr/search/players?q=Smith&shards=box1:8115/search/players,box2:8115/search/players
>
>  Im getting back:
>
>  <response>
>   <lst name="responseHeader">
>     <int name="status">0</int>
>     <int name="QTime">18</int>
>   </lst>
>   <result name="response" numFound="13" start="0" />
>  </response>
>
>  Identical schemas, it found the correct 13 but no docs attached.  In the
> logs I can see the results come back (w/ wt=javabin&isShared=true) ...
>
>  - Jon
>
>
>
>  On May 2, 2008, at 3:41 PM, Yonik Seeley wrote:
>
>
> > On Fri, May 2, 2008 at 3:36 PM, Jon Baer <jo...@gmail.com> wrote:
> >
> > > Im trying to figure out if I can do this or if something else needs to
> be
> > > set, trying to run a query over multiple cores w/ the shard param?  I
> seem
> > > to be getting the correct number of results back but no data ... any
> ideas?
> > >
> >
> > Should work OK (note that schemas should match across cores...
> > distributed search is not federated search).
> > You might need to be a little more explicit about what you are sending
> > and what you are getting back (the actual URL of the request, and the
> > actual XML of the response).
> >
> > -Yonik

Re: Distributed Search (shard) w/ Multicore?

Posted by Jon Baer <jo...@gmail.com>.
Sorry about that, Im sending something simple like:

http://search.company.com:8115/solr/search/players?q=Smith&shards=box1:8115/search/players,box2:8115/search/players

Im getting back:

<response>
   <lst name="responseHeader">
     <int name="status">0</int>
     <int name="QTime">18</int>
   </lst>
   <result name="response" numFound="13" start="0" />
</response>

Identical schemas, it found the correct 13 but no docs attached.  In  
the logs I can see the results come back (w/  
wt=javabin&isShared=true) ...

- Jon

On May 2, 2008, at 3:41 PM, Yonik Seeley wrote:

> On Fri, May 2, 2008 at 3:36 PM, Jon Baer <jo...@gmail.com> wrote:
>> Im trying to figure out if I can do this or if something else needs  
>> to be
>> set, trying to run a query over multiple cores w/ the shard param?   
>> I seem
>> to be getting the correct number of results back but no data ...  
>> any ideas?
>
> Should work OK (note that schemas should match across cores...
> distributed search is not federated search).
> You might need to be a little more explicit about what you are sending
> and what you are getting back (the actual URL of the request, and the
> actual XML of the response).
>
> -Yonik


Re: Distributed Search (shard) w/ Multicore?

Posted by Yonik Seeley <yo...@apache.org>.
On Fri, May 2, 2008 at 3:36 PM, Jon Baer <jo...@gmail.com> wrote:
>  Im trying to figure out if I can do this or if something else needs to be
> set, trying to run a query over multiple cores w/ the shard param?  I seem
> to be getting the correct number of results back but no data ... any ideas?

Should work OK (note that schemas should match across cores...
distributed search is not federated search).
You might need to be a little more explicit about what you are sending
and what you are getting back (the actual URL of the request, and the
actual XML of the response).

-Yonik