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 donjose <do...@socgen.com> on 2017/05/05 08:11:29 UTC

Search inside grouping list

Please help me to find a solution to search inside grouped result.

Grouped Result - One assetid (32) with 2 different color blue & red
===========================================
grouped: {
assetid: {
matches: 619,
ngroups: 32,
groups: [
{
groupValue: 32,
doclist: {
numFound: 2,
start: 0,
docs: [
{
assetid: 32,
merchantid: 1,
color: "red",
manufacturerid: 3,
},
{
assetid: 32,
merchantid: 1,
color:"blue"
manufacturerid: 3,
}]}}]}


Here i need to return complete asset info (both blue and red) of assetid 32
if color = red. When i am trying to query color=red i am getting only color
blue not red.



--
View this message in context: http://lucene.472066.n3.nabble.com/Search-inside-grouping-list-tp4333488.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: Search inside grouping list

Posted by Emir Arnautovic <em...@sematext.com>.
Can you try reproducing this issue on fresh Solr, and if you manage to, 
can you please share documents and steps to reproduce it.

Which version of Solr do you run and do you have any custom plugins 
running on it?

Emir


On 09.05.2017 13:01, donjose wrote:
> Yes. I am getting the same result for both q and  fq
>
>
>
> --
> View this message in context: http://lucene.472066.n3.nabble.com/Search-inside-grouping-list-tp4333488p4334206.html
> Sent from the Solr - User mailing list archive at Nabble.com.

-- 
Monitoring * Alerting * Anomaly Detection * Centralized Log Management
Solr & Elasticsearch Support * http://sematext.com/


Re: Search inside grouping list

Posted by donjose <do...@socgen.com>.
Yes. I am getting the same result for both q and  fq



--
View this message in context: http://lucene.472066.n3.nabble.com/Search-inside-grouping-list-tp4333488p4334206.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: Search inside grouping list

Posted by Emir Arnautovic <em...@sematext.com>.
Do you get the same result if you use q instead of fq?


On 09.05.2017 07:38, donjose wrote:
> Hi Emir,
>
> Grouping by default is part of the configuration
>
>         <lst name="appends">
>           <str name="group">true</str>
>           <str name="group.field">assetid</str>
>           <str name="group.ngroups">true</str>
>         </lst>
>
> Don.
>
>
>
> --
> View this message in context: http://lucene.472066.n3.nabble.com/Search-inside-grouping-list-tp4333488p4334136.html
> Sent from the Solr - User mailing list archive at Nabble.com.

-- 
Monitoring * Alerting * Anomaly Detection * Centralized Log Management
Solr & Elasticsearch Support * http://sematext.com/


Re: Search inside grouping list

Posted by donjose <do...@socgen.com>.
Hi Emir,

Grouping by default is part of the configuration

       <lst name="appends">
         <str name="group">true</str>
         <str name="group.field">assetid</str>
         <str name="group.ngroups">true</str>         
       </lst>

Don.



--
View this message in context: http://lucene.472066.n3.nabble.com/Search-inside-grouping-list-tp4333488p4334136.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: Search inside grouping list

Posted by Emir Arnautovic <em...@sematext.com>.
Hi Don,

This is query without grouping and returns expected results. But when 
you apply grouping by some field, you get wrong results? Can you share 
query results and query with grouping.

Emir


On 08.05.2017 14:28, donjose wrote:
> Hi Emir,
> Thank you for the response.
>
> Please find the query which i am sending to SOLR
> http://localhost:8983/solr/pema/select?fq=color:red&indent=on&q=*:*&wt=json
>
> Regards,
> Don.
>
>
>
>
> --
> View this message in context: http://lucene.472066.n3.nabble.com/Search-inside-grouping-list-tp4333488p4333936.html
> Sent from the Solr - User mailing list archive at Nabble.com.

-- 
Monitoring * Alerting * Anomaly Detection * Centralized Log Management
Solr & Elasticsearch Support * http://sematext.com/


Re: Search inside grouping list

Posted by donjose <do...@socgen.com>.
Hi Emir,
Thank you for the response.

Please find the query which i am sending to SOLR
http://localhost:8983/solr/pema/select?fq=color:red&indent=on&q=*:*&wt=json

Regards,
Don.




--
View this message in context: http://lucene.472066.n3.nabble.com/Search-inside-grouping-list-tp4333488p4333936.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: Search inside grouping list

Posted by Emir Arnautovic <em...@sematext.com>.
Hi,

Can you please provide full query that you are sending to Solr.

Thanks,
Emir


On 08.05.2017 07:18, donjose wrote:
> Could anyone can please reply for this query
>
>
>
> --
> View this message in context: http://lucene.472066.n3.nabble.com/Search-inside-grouping-list-tp4333488p4333870.html
> Sent from the Solr - User mailing list archive at Nabble.com.

-- 
Monitoring * Alerting * Anomaly Detection * Centralized Log Management
Solr & Elasticsearch Support * http://sematext.com/


Re: Search inside grouping list

Posted by donjose <do...@socgen.com>.
Could anyone can please reply for this query



--
View this message in context: http://lucene.472066.n3.nabble.com/Search-inside-grouping-list-tp4333488p4333870.html
Sent from the Solr - User mailing list archive at Nabble.com.