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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T23:35:17+00:00 2026-05-22T23:35:17+00:00

I need to navigate forth and back in Solr results set ordered by score

  • 0

I need to navigate forth and back in Solr results set ordered by score viewing documents one by one. To visualise that, first a list of document titles is presented to user, then he or she can click one of the title to see more details and then needs to have an opportunity to move to the next document in the original list without getting back and clicking another title.

During viewing documents get changed: their dynamic field is modified (or created is not exists yet) to mark that document has already been viewed (used in other search).

The problem I face is that when the document is altered and re-indexed to keep those changes, sometimes (and not always, which is very disturbing) its place in the results set for the same query changes (in other words, it’s score changes as that doesn’t happen when browsing results sorted by one of the documents’ fields). So, “Previous” / “Next” navigation doesn’t work properly.

I’m not using any custom weighting or boosters on fields for score calculation. Also, that dynamic field changed during browsing doesn’t participate in the query used to get the record set browsed.

So, the questions are: can the modification of the document’s field not included in the query change its relevance score? And if it can, then how can I control that?

UPDATE

I did some tests and can add the following:

  1. Document changes its place in the result set even if no field is amended – just requesting the document and re-indexing it without any changes to its fields makes it take another place next time the same query over the same index is executed.

  2. That happens even if the result set is sorted explicitly (“first_name DESC”), so score (which depends on the update date) is not involved. The document stays the same, its field result set is sorted by is the same, yet its position changes.

Still have no idea how to avoid that.

  • 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-22T23:35:18+00:00Added an answer on May 22, 2026 at 11:35 pm

    I’ve found the solution which doesn’t eliminate the problem completely but makes it much less likely to happen.

    So the problem happens when the documents are sorted by some field and there is a number of them with the same value in this field (e.g. result set is sorted by first name, and there are 100 entries for “John”).

    This is when the indexed time gets involved – apparently Solr uses it to sort the documents when their main sorting fields are identical. To make this case much less probable, you need to add more sorting fields, e.g. “first_name desc” should become “first_name desc, last_name desc, register_date asc”.

    Also, adding document’s unique id as the last sorting field should remove the problem completely (the set of sorting fields will never be identical for any two documents in the index).

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

Sidebar

Related Questions

Need a function that takes a character as a parameter and returns true if
Need to an expression that returns only things with an I followed by either
Need a function like: function isGoogleURL(url) { ... } that returns true iff URL
I need to send hundreds of newsletters, but would like to check first if
Need to navigate to Excel spread sheet and display in the browser. how could
i have 2 page i need to navigate mainpage.xaml to login.page xaml but it
I have a folder structure in my server and I need to navigate through
I have created View based application , here i need to navigate between views
I have a huge solution with multiple projects. Sometime I need to navigate to
I need to navigate to a file relative to my applicationDirectory, but as it

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.