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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T08:21:55+00:00 2026-06-09T08:21:55+00:00

Forgive this super basic question, from a search newbie. I want to implement a

  • 0

Forgive this super basic question, from a search newbie.

I want to implement a site that makes use of faceted search. For example, it’s a site with a database of hotels, and I want to allow users to search for hotels within a price range, with a swimming pool, with either three or four stars.

Clearly I can return results to users with a simple database query.

Should I use ElasticSearch or Solr to implement this instead of using a database query? If so, why?

  • 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-09T08:21:58+00:00Added an answer on June 9, 2026 at 8:21 am

    Yes you should use ES or Solr. Reasons: primarily performance and the ability to change (think config) ‘types of faceting’ easily.

    Faceting is no small feat and although you could do it with a RDBMS, to do it fast requires hard thinking. Why do it yourself if you can use the gazillions of hours Solr / ES (+ Lucene) teams have worked to optimize it.

    As for the ‘types of faceting’ I mentioned:

    1. perhaps you want to do hierarchical faceting. Select price-category > display smaller price categories. How are the bucketed: fixed range, evenly distributed, etc. Solr / ES provide these options from within a config.
    2. Perhaps instead you implement price-faceting with a slider with min/max handles? Do you want to display the nr of hotels while you slide (histogram/facetstats in SOlr / ES)
    3. While you’ve faceted on price, perhaps you still want to know the min and max-value of the priceslider as if you DIDN’t filter on price. This is needed if you want to be able to draw the slider-handles proportionally. (see my question on SO as part of considering a switch from Solr to ES: Elasticsearch: excluding filters while faceting possible? (like in Solr) )
    4. faceting on stars? Perhaps you want to show the best price per stars-facet if the user would select that star (again histogram/ stats)

    Seriously, don’t even consider doing the above with a RDBMS. You’ll go insane.

    Hope that helps, and yes I’m familiar with the domain 🙂

    Additional questions, just ask.

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

Sidebar

Related Questions

I am a Rails newbie (from PHP). So forgive this basic data structures question:
Forgive me if this is redundant or super basic. I'm coming to Python/Numpy from
Forgive me for this noob question, but is there such a setting that sets
Please forgive this rather basic question, but I'm very new to Java and still
I am a latex beginner so forgive this basic question: How do I activate
You'll have to forgive me if this is a really basic question; I haven't
Forgive me if this is a newbie question, but... When playing video, is it
Forgive if this question is silly. I just started reading the SugarCRM developer documentation
Forgive me if this is a repeated question but I am having trouble finding
Forgive me if this is a repeat question. I've searched StackOverflow and did not

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.