Hi Grant,
Thanks for your reply. I'm using solrj to connect via http, which
eventually sends this query
http://localhost:8984/solr/core0/select/?q=id:022-80633905&version=2&start=0&rows=1&fl=*&indent=on&shards=localhost:8984/solr/core0,localhost:8984/solr/core1,localhost:8984/solr/core2,localhost:8984/solr/core3,localhost:8984/solr/core4
I subsequently send the MLT query which ends up looking like:
http://localhost:8984/solr/core0/mlt/?q=id:022-80633905&version=2&start=0&rows=5&fl=id&indent=on&mlt.fl=description&mlt.match.include=false&mlt.minwl=3&mlt.mintf=1&mlt.mindf=1&localhost:8984/solr/core0,localhost:8984/solr/core1,localhost:8984/solr/core2,localhost:8984/solr/core3,localhost:8984/solr/core4
If I run that query in a browser, the response returned is
<response>
<responseHeader>
<status>0</status>
<QTime>3</QTime>
</responseHeader>
<null name='response'/>
</response>
Now, because I know the the document with id 022-80633905 went into
core 1, I get the correct results if I change the first part of the
URL to http://localhost:8984/solr/core1/mlt but doing so requires my
app (not just me!) to know which core the result came from.
Thanks
Mark
On 16 Dec 2010, at 1:44 pm, Grant Ingersoll wrote:
How are you querying the core to begin with?
On Dec 16, 2010, at 6:46 AM, Mark Allan wrote:
Hi all,
I've been bashing my head against the wall for a few hours now,
trying to get mlt (more-like-this) queries working across multiple
cores. I've since seen a JIRA issue and documentation saying that
multicore doesn't yet support mlt queries. Oops!
Anyway, to get around this, I was planning to send the mlt query
just to the specific core that a particular result came from, but I
can't see a way to obtain that information from the results. If I
figure it out by hand, I can get a MLT query to produce similar
documents from that core which is probably good enough for the time
being.
Does anyone know how, after performing a multi-core search to
retrieve a single document, I can then find out which core that
result came from?
I'm using Solr branch_3x.
Many thanks
Mark
--
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.