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 8768517
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T17:05:21+00:00 2026-06-13T17:05:21+00:00

Consider the following query: /solr/select?q=linux It returns this XML response: <response> <lst name=responseHeader> <int

  • 0

Consider the following query:

/solr/select?q=linux

It returns this XML response:

<response>
    <lst name="responseHeader">
        <int name="status">0</int>
        <int name="QTime">0</int>
        <lst name="params">
            <str name="q">linux</str>
        </lst>
    </lst>
    <result name="response" numFound="10943" start="0">

From here we can see that there are 10943 documents which match our query. However, consider the same query with grouping:

/solr/select?q=linux&group=true&group.field=tag

It returns this XML response:

<response>
    <lst name="responseHeader">
        <int name="status">0</int>
        <int name="QTime">10</int>
        <lst name="params">
            <str name="group">true</str>
            <str name="group.field">tag</str>
            <str name="q">linux</str>
        </lst>
    </lst>
    <lst name="grouped">
        <lst name="tag">
            <int name="matches">10943</int>
            <arr name="groups">
                <lst>
                    <str name="groupValue">linux</str>
                    <result name="doclist" numFound="1224" start="0">

From here we can see that there are 10943 documents which meet our query (obviously, it is the same query as in the first example). We can also see that we have 1224 documents with the ‘linux’ tag. However, there is no mention of how many matched groups there are. Thus, one cannot use pagination to present a list of tags as there is no way to calculate how many pages will be needed.

How can one get the amount of groups returned, in order to calculate how many pages of pagination will be available?

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-06-13T17:05:22+00:00Added an answer on June 13, 2026 at 5:05 pm

    For the number of groups use the groups.ngroups request parameter which will give the count for the number of groups for pagination.

    Documentation :-

    group.ngroups
    true/false
    If true, includes the number of groups that have matched the query. Default is false.
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Consider the following criteria query: var x = SomeCriteria.AddOrder(new Order(Name, true)).List(); This will order
Consider the following query in HQL: SELECT m.id, (SELECT (COUNT(*) > 0) FROM SubqueryTable...)
Consider the following 3 standard statements $queryString = SOME SQL SELECT QUERY; $queryResult =
Consider the following query: INSERT INTO statement_line_items SELECT count(*)::integer as clicks, sum(amount_cents)::integer as amount_cents,
Consider the following query: SELECT operation, [...] FROM tableName The operation field will retrieve
Consider the following SQL Server 2005/2008 query: Select [UID], [DESC] From SomeTable Order By
Please consider the following: $query = SELECT legIDs FROM trip; $result = mysql_query($query) or
Consider the following query executed in PostgreSQL 9.1 (or 9.2): SELECT * FROM foo
Consider the following JPQL query: SELECT foo FROM Foo foo INNER JOIN FETCH foo.bar
Consider the following query in PostgreSQL: SELECT a, b, (A VERY LONG AND COMPLICATED

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.