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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T16:30:03+00:00 2026-05-24T16:30:03+00:00

I have a site in which users can post some questions, so I a

  • 0

I have a site in which users can post some questions, so I a have a table in mysql like this

question_id, user_id, tags, views, creation_date

what I want is to be able to

  • perform searches which will return question_ids based on those
    tags

    and order them by

    1. Views
    2. date, (like newest, or this week, month)
  • or searches for a specified user and return question_ids again
    ordered by views and date.

In what way should I bring everything in solr, as far as indexing is concerned?
Will I have to index tags, views, date? What should I index so that I have maximal performance?

  • 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-24T16:30:04+00:00Added an answer on May 24, 2026 at 4:30 pm

    Think about, if using lucene/solr is relay a benefit for you. I don’t wanna be misunderstood, but if you like to search inside an column user_id for an specific user ID, you don’t need a addition fulltext-search engine.

    Anyway – maybe you only like to have an little project to "play with" solr.
    So here are the answers of your questions:

    In what way should I bring everything in solr, as far as indexing is
    concerned?

    Put everything to solr/lucene, you need to search for. Use the DHI (data import handler) http://wiki.apache.org/solr/DataImportHandler to let solr walk trough your table and index the data.

    Will I have to index tags, views, date?

    Yes. You have to index all the things you like to work with.
    btw: there is a difference between indexing and storing data. You can index fields (like tags, user_id, views,..) but you don’t need to store them (additional) inside your lucene index. Storing data is necessary, if lucene/solr have to return/deliver the searched data.
    Otherwise, solr only returns the uniqueKey (primary key) of the matches documents and you have to fetch the data from the datebes (…where pk=< lucene result >)
    So you don’t need to store those fields, which are only relevant for sorting (for example).

    What should I index so that I have maximal performance?

    Index only those fields (columns), you need to work with (solr). Don’t index field you will never ask for / search for.

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

Sidebar

Related Questions

I have a site where users can post stuff (as in forums, comments, etc)
I have to develop a site which has to accomodate around 2000 users a
I currently have a site which uses a MySQL 4.x schema, the site uses
I'm writing a web site with rails, which can let visitors inputing some domains
I have some questions regarding login and sessions. I have this code: The db
I have a navigation on a site which uses subnavigation in the main navigation...
I have a window application which uses SP classes to create a site. I
simple question... Given I have an ASP.NET site, which uses a [custom] RoleProvider, Is
I have a site that uses a menu control tied to a sitemapdatasource which
I have a site that uses a large centered background image, which naturally loads

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.