lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erick Erickson <erickerick...@gmail.com>
Subject Re: Combine multiple SOLR Query Results
Date Tue, 10 Mar 2015 15:54:12 GMT
You simply cannot compare scores from two separate queries, comparing
them is meaningless.

This appears to be an XY problem, you're asking _how_ to do something
without telling us _what_ the end goal here is.

>From your description, I really have no idea what you're trying to do.

You might review:

http://wiki.apache.org/solr/UsingMailingLists

Best,
Erick

On Mon, Mar 9, 2015 at 7:56 AM, Reitzel, Charles
<Charles.Reitzel@tiaa-cref.org> wrote:
> Hi AnilJayanti,
>
> You shouldn't need 2 separate solr queries.   Just make sure both 'track name' and 'artist
name' fields are queried.  Solr will rank and sort the results for you.
>
> e.q. q=foo&qf=trackName,artistName
>
> This is preferable for a number of reasons.  I will be faster and simpler.  But, also,
highlight results should be better.
>
> hth,
> Charlie
>
> -----Original Message-----
> From: aniljayanti [mailto:aniljayanti@yahoo.co.in]
> Sent: Monday, March 09, 2015 6:20 AM
> To: solr-user@lucene.apache.org
> Subject: Combine multiple SOLR Query Results
>
> Hi,
>
> I am trying to work on combine multiple SOLR query results into single result. Below
is my case.
>
> 1.      Look up search term against ‘track name’, log results
> 2.      Look up search term against ‘artist name’, log results of tracks by those
> artists
> 3.      Combine results
> 4.      results by score descending order.
>
> Using "text_general" fieldType for both track name and artist name.
> copy fields are trackname and artistname
>
> Plase suggest me how to write solr Query to combine two solr results into single result.
>
> Thanks in advance.
>
> AnilJayanti
>
>
>
> --
> View this message in context: http://lucene.472066.n3.nabble.com/Combine-multiple-SOLR-Query-Results-tp4191816.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>
> *************************************************************************
> This e-mail may contain confidential or privileged information.
> If you are not the intended recipient, please notify the sender immediately and then
delete it.
>
> TIAA-CREF
> *************************************************************************

Mime
View raw message