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 hadi <md...@gmail.com> on 2011/09/23 23:03:19 UTC

two cores but have single result set in solr

I have to cores with seprate schema and index but i want to have single
result set in solr/browse,
how can i do this?
if i define the third core how can i define these two index for it?
thanks 

--
View this message in context: http://lucene.472066.n3.nabble.com/two-cores-but-have-single-result-set-in-solr-tp3363043p3363043.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: two cores but have single result set in solr

Posted by Erick Erickson <er...@gmail.com>.
I think you should step back and consider what you're asking
for as Ken pointed out. You have different schemas. And
presumably different documents in each schema. The scores
from the different cores are NOT comparable. So how could
you "combine" the meaningfully? Further, assuming that the
documents have different characteristics, the term frequencies
and document frequencies will be different.

Solr really only supports this notion if your schemas are identical
and you're indexing similar documents to shards, using shards
with this intent probably won't do what you expect.

But why not just index your SolrJ documents directly into the
same core that you use for Nutch and just search the one index?
You don't have to provide values for any fields that don't have
'required="true" ' set. And if you do this, I suspect you'll have trouble
with relevance, but at least you'll get started.

Best
Erick

On Sat, Sep 24, 2011 at 8:02 AM, hadi <md...@gmail.com> wrote:
> I read the link but the
> 'http://localhost:8983/solr/select?shards=localhost:8983/solr,localhost:7574/solr&indent=true&q=ipod+solr'
> have a XML response that is not useful for me, i want to create query
> in solr/browse so this is need to change the template engine,do you
> know how to change that to search both cores?  thanks
>
> On 9/24/11, Yury Kats [via Lucene]
> <ml...@n3.nabble.com> wrote:
>>
>>
>> On 9/24/2011 3:09 AM, hadi wrote:
>>> I do not know how to search both cores and not define "shard"
>>> parameter,could you show me some solutions for solve my issue?
>>
>> See this: http://wiki.apache.org/solr/DistributedSearch
>>
>>
>> _______________________________________________
>> If you reply to this email, your message will be added to the discussion
>> below:
>> http://lucene.472066.n3.nabble.com/two-cores-but-have-single-result-set-in-solr-tp3363043p3364157.html
>>
>> To unsubscribe from two cores but have single result set in solr, visit
>> http://lucene.472066.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=3363043&code=bWQuYW5iYXJpQGdtYWlsLmNvbXwzMzYzMDQzfC02NDQ5ODMwMjM=
>
>
> --
> View this message in context: http://lucene.472066.n3.nabble.com/two-cores-but-have-single-result-set-in-solr-tp3363043p3364459.html
> Sent from the Solr - User mailing list archive at Nabble.com.

Re: two cores but have single result set in solr

Posted by hadi <md...@gmail.com>.
I read the link but the
'http://localhost:8983/solr/select?shards=localhost:8983/solr,localhost:7574/solr&indent=true&q=ipod+solr'
have a XML response that is not useful for me, i want to create query
in solr/browse so this is need to change the template engine,do you
know how to change that to search both cores?  thanks

On 9/24/11, Yury Kats [via Lucene]
<ml...@n3.nabble.com> wrote:
>
>
> On 9/24/2011 3:09 AM, hadi wrote:
>> I do not know how to search both cores and not define "shard"
>> parameter,could you show me some solutions for solve my issue?
>
> See this: http://wiki.apache.org/solr/DistributedSearch
>
>
> _______________________________________________
> If you reply to this email, your message will be added to the discussion
> below:
> http://lucene.472066.n3.nabble.com/two-cores-but-have-single-result-set-in-solr-tp3363043p3364157.html
>
> To unsubscribe from two cores but have single result set in solr, visit
> http://lucene.472066.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=3363043&code=bWQuYW5iYXJpQGdtYWlsLmNvbXwzMzYzMDQzfC02NDQ5ODMwMjM=


--
View this message in context: http://lucene.472066.n3.nabble.com/two-cores-but-have-single-result-set-in-solr-tp3363043p3364459.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: two cores but have single result set in solr

Posted by Yury Kats <yu...@yahoo.com>.
On 9/24/2011 3:09 AM, hadi wrote:
> I do not know how to search both cores and not define "shard"
> parameter,could you show me some solutions for solve my issue?

See this: http://wiki.apache.org/solr/DistributedSearch

Re: two cores but have single result set in solr

Posted by hadi <md...@gmail.com>.
I do not know how to search both cores and not define "shard"
parameter,could you show me some solutions for solve my issue?

On 9/24/11, Yury Kats [via Lucene]
<ml...@n3.nabble.com> wrote:
>
>
> On 9/23/2011 6:00 PM, hadi wrote:
>> I index my files with solrj and crawl my sites with nutch 1.3 ,as you
>> know, i have to overwrite the nutch schema on solr schema in order to
>> have view the result in solr/browse, in this case i should define two
>> cores,but i want have single result or the user can search into both
>> core indexes at the same time
>
> Can you not use 'shard' parameter and specify both cores there?
>
>
>
> _______________________________________________
> If you reply to this email, your message will be added to the discussion
> below:
> http://lucene.472066.n3.nabble.com/two-cores-but-have-single-result-set-in-solr-tp3363043p3363164.html
>
> To unsubscribe from two cores but have single result set in solr, visit
> http://lucene.472066.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=3363043&code=bWQuYW5iYXJpQGdtYWlsLmNvbXwzMzYzMDQzfC02NDQ5ODMwMjM=


--
View this message in context: http://lucene.472066.n3.nabble.com/two-cores-but-have-single-result-set-in-solr-tp3363043p3363901.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: two cores but have single result set in solr

Posted by Yury Kats <yu...@yahoo.com>.
On 9/23/2011 6:00 PM, hadi wrote:
> I index my files with solrj and crawl my sites with nutch 1.3 ,as you
> know, i have to overwrite the nutch schema on solr schema in order to
> have view the result in solr/browse, in this case i should define two
> cores,but i want have single result or the user can search into both
> core indexes at the same time

Can you not use 'shard' parameter and specify both cores there?


Re: two cores but have single result set in solr

Posted by hadi <md...@gmail.com>.
I index my files with solrj and crawl my sites with nutch 1.3 ,as you
know, i have to overwrite the nutch schema on solr schema in order to
have view the result in solr/browse, in this case i should define two
cores,but i want have single result or the user can search into both
core indexes at the same time


--
View this message in context: http://lucene.472066.n3.nabble.com/two-cores-but-have-single-result-set-in-solr-tp3363043p3363133.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: two cores but have single result set in solr

Posted by Ken Krugler <kk...@transpac.com>.
On Sep 23, 2011, at 2:03pm, hadi wrote:

> I have to cores with seprate schema and index but i want to have single
> result set in solr/browse,

If they have different schemas, how would you combine results from the two?

If they have the same schemas, then you can define a third core with a different conf dir, and in that separate conf/solrschema.xml you can set up a request handler that just dispatches to the two real cores.

-- Ken

--------------------------
Ken Krugler
+1 530-210-6378
http://bixolabs.com
custom big data solutions & training
Hadoop, Cascading, Mahout & Solr