@Hemanth,  I understand the functionality of "fl" and also about "facet"...
In my condition example i have mentioned that i need faceted COUNT  that
will be like merging both the fileds ....

Still if I am not clear to you then find below my solr search result's
console view and with what I am finding for indeed:

<results>numfound:4 </>

<doc>
field <"GrpId"=1/>
field <"Grpname"=A/>
</doc>
<doc>
field <"GrpId"=2/>
field <"Grpname"=A/>
</doc>
<doc>
field <"GrpId"=3/>
field <"Grpname"=A/>
</doc>
<doc>
field <"GrpId"=4/>
field <"Grpname"=B/>
</doc>

<facet field/>
<GrpId>
<Grpname>

grpid-1<1>
grpid-2<1>
grpid-3<1>
grpid-4<1>

Grpname-A<3>
Grpname-B<1>

</results>


But what i needed is:

grpid-1,Grpname-A<1>
grpid-2,Grpname-A<1>
grpid-3,Grpname-A<1>
grpid-4,Grpname-B<1>

I needed to get counts based GRPID clubbed with GRPNAME not different sets

 Please let me know any solution for this ...


Regards,
Rajani Maski











On Fri, Jul 16, 2010 at 4:32 PM, hemant.verma [via Lucene] <
ml-node+972194-1943694059-326...@n3.nabble.com<ml-node%2b972194-1943694059-326...@n3.nabble.com>
> wrote:

> You may be confused what facet is for.
> As your example shows, there is no need for you to use facets.
> Simply do the query and use &fl=Name, ID to get the desired results.
>
> ------------------------------
> View message @
> http://lucene.472066.n3.nabble.com/Getting-facets-count-on-multiple-fields-by-doing-a-Group-By-tp972105p972194.html
> To unsubscribe from Getting facets count on multiple fields by doing a
> "Group By", click here< (link removed) =>.
>
>
>

-- 
View this message in context: 
http://lucene.472066.n3.nabble.com/Getting-facets-count-on-multiple-fields-by-doing-a-Group-By-tp972105p975133.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to