Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6797317
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T18:35:39+00:00 2026-05-26T18:35:39+00:00

By counting in facet results I mean resolve the problem: I have 7 documents:

  • 0

By counting in facet results I mean resolve the problem:

I have 7 documents:

A1   B1   C1
A2   B1   C1
A3   B2   C1
A4   B2   C2
A5   B3   C2
A6   B3   C2
A7   B3   C2

If I make the facet query by field B, get the result: B1=2, B2=2, B3=3.

A1   B1   C1
A2   B1   C1     2 - facing by B
--------------====
A3   B2   C1
A4   B2   C2     2 - facing by B
--------------====
A5   B3   C2
A6   B3   C2
A7   B3   C2     3 - facing by B
--------------====

I want to get additional information, something like count in results, by field C. So, how can I query to get a result similar to the following:

A1   B1   C1
A2   B1   C1     2, 1 - facing by B, count C in facet results
--------------=======
A3   B2   C1
A4   B2   C2     2, 2 - facing by B, count C in facet results
--------------=======
A5   B3   C2
A6   B3   C2
A7   B3   C2     2, 1 - facing by B, count C in facet results
--------------=======

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T18:35:39+00:00Added an answer on May 26, 2026 at 6:35 pm

    What you need is Facet Pivots
    This will help you get the results and counts of hierarchies.

    This is available in Solr 4.0 trunk build. So you may need to apply the patch.

    References –
    http://wiki.apache.org/solr/HierarchicalFaceting
    http://wiki.apache.org/solr/SimpleFacetParameters#Pivot_.28ie_Decision_Tree.29_Faceting

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have a problem counting array keys value in ezpublish whose php function is
I have problem with counting characters in richedit (Delphi XE). For every new line
I am counting words in a text field and after a certain amount of
I want to ignore counting the length of characters in the text if there
I'm counting the right answers field of a table and saving that calculated value
How do you count results within an array? I am counting the occurrences of
When running svndumpfilter2 on Windows, I get a problem that seems to take its
The problem reduces to counting \n characters, so is there a function that can
I have two implementations of counting pi with Monte-Carlo method : with and without
We have a big (~215 bundles and counting) osgi (felix+springdm) project, build with maven

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.