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

  • Home
  • SEARCH
  • 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 8967349
In Process

The Archive Base Latest Questions

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

I have developed a search engine in java. Used java Servlet in server side.

  • 0

I have developed a search engine in java. Used java Servlet in server side. The problem is for each query lots of results appears.Each result is represented as a string.
How to achieve server side pagination?

  • 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-15T17:13:24+00:00Added an answer on June 15, 2026 at 5:13 pm

    The general idea of the pagination is to using skip/limit parameters. You should set skip/limit parameters into the query in client-side and on the server-side by checking this parameters you should return the expected results.

    Explanation of the parameters are :

    skip : skips the number of results and return the others
    limit : return the given number of results.
    

    Ex : Say your query returns a 25 result and you want to paginate it.
    Then for your first page you should set skip=0, limit=10 on the client-side and on the server-side by checking this parameters you should skip 0 result and return the 10 of them. Then it will return the results between 0-9 for first page.

    For second page, you should send query with skip=10, limit=10 and result will be between 10-19.

    For last page your query will be skip=20, limit=10 and it will return you the results between 20-25.

    This is the general idea how pagination work. To use pagination you should implement it by yourself.

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

Sidebar

Related Questions

I have developed a Java server using Eclipse that accepts TCP socket connection from
I have developed one application which used to send/receive mails using Exchange Server 2003
I have developed a custom search engine for our Magento store and I am
I use Solrnet to develop a search engine. In my application, I have a
I have been reading about making ajax heavy applications more search engine friendly: https://developers.google.com/webmasters/ajax-crawling/docs/getting-started
(this is in a Java project) I'm using a search engine in parallel with
I am trying to develop a complex textual search engine. I have thousands of
So, I have developed a live search function on my site but, no big
I have a Wordpress-based website which uses Sphinx as a search engine, with a
I have Backbone website. I've used phantomjs so that search engines can look up

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.