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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T12:36:37+00:00 2026-06-03T12:36:37+00:00

I have Content entity which is saved to database and Lucene for full text

  • 0

I have Content entity which is saved to database and Lucene for full text search.
In that entities i have field Rating which is updated when user + or – rating.
So rating can be updated any time and i need to show correct Rating value how to do it better? should i save rating to Lucene document and update it each time when user updates it?

  • 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-03T12:36:42+00:00Added an answer on June 3, 2026 at 12:36 pm

    Usually approach is following:

    • store entity Id in Lucene, so you can easy load your entity from database or cache by this Id.
    • store entity fields by which you will do search, filtering or ordering. For example if you do search by username, store username. If you want to search by username and user bio, store both fields. But do not store for example user age or user phone if you don’t need to do any search in this fields. Same with rating – if you do not need to search by rating (say you don’t need to do queries like: search all users with rating > 100, or with rating != 0 etc) do NOT store rating in Lucene. Instead do search in Lucene, get entities Ids and then retrieve ratings from database or cache. This way you will need to update ratings in database only and update Lucene index only in case if few fields (like username or user bio) are changed.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a content folder which is full of other sub-directories named in the
I have content on a webpage which is both sent from the server at
I have content management system application that uses a polymorphic tree table as the
can we have content text directly in <div>text content</div> or it should be like
We have a content delivery system that delivers many different content types to devices.
I have some content that I want to appear on multiple pages of my
I have some content that I am loading using jquery ajax. The content has
I have an entity model that has audit information on every table (50+ tables)
I'm using the entity framework and I have some properties which are common to
I have the following code, which retrieves the page slugs from the database which

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.