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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T22:42:40+00:00 2026-06-01T22:42:40+00:00

Is it possible to boost boolean fields in Solr so that they receive a

  • 0

Is it possible to boost boolean fields in Solr so that they receive a higher score?

We’ve got an index which looks a bit like this:

  • document_id
  • title
  • description
  • keywords
  • is_reviewed

When searching, documents that have been reviewed (ie. is_reviewed = true) should be weighted more heavily than those that haven’t, rather than exclude them completely.

Using is_review:true^100 doesn’t seem to work, and excludes unreviewed items instead of just giving them a lower weighting. If there a different way this can be achieved? Thanks!

  • 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-01T22:42:41+00:00Added an answer on June 1, 2026 at 10:42 pm

    Some query parsers have a feature dedicated to this kind of usage. For example, the dismax query parser has a boost query bq which allows you to boost documents which match a query by adding its clauses to the original query. There is also a boost function bf which allows you to multiply scores by the result of a function. For example, using is_review as this bf parameter,

    • the score of every document whose is_review field is undefined will be multiplied by 0.
    • the score of every document so that is_review=false will be multiplied by one.
    • the score of every documentso that is_review=true will be multiplied by two.

    is_review:true^100 shouldn’t exclude non reviewed items unless you are using AND as the default query operator. In this case, you could try to replace is_review:true^100 by (is_review:true^100 OR is_review:false^0).

    If you are interested in the boost feature of the dismax query parser but would like to stick to the default query parser, you can use the boost query parser which will allow you to multiply the scores of any query with any function.

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

Sidebar

Related Questions

Is it possible to give a name to a boost::thread so that the debuggers
I am wondering if it is possible with Solr 3.4 to boost a search
Is it possible with boost::gil to read the RGB image information so that I
I wonder is it possible to have a map that would work like boost
Is it possible to use boost::fusion::invoke function to call a function that has default
Is it possible to create an inline lambda using boost which always throws an
Is is possible (without external library such as boost) to prompt for input from
Is it possible to create a multithreading application in VC6 with boost library? If
Is it possible to have scoped macros using custom defined macros through boost wave?
To narrow it down: I'm currently using Boost.Unordered . I see two possible solutions:

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.