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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T10:02:26+00:00 2026-06-10T10:02:26+00:00

How can I boost the score for documents in which my query matches a

  • 0

How can I boost the score for documents in which my query matches a particular field earlier. For example, searching for “super man” should give “super man returns” a higher score than “there is my super man”. Is this possible?

  • 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-10T10:02:28+00:00Added an answer on June 10, 2026 at 10:02 am

    Solved it myself after reading a LOT about this online. What specifically helped me was a reply on nabble which goes like (I used dismax, so explaining that here):

    • Create a separate field named say ‘nameString’ which stores the value as "_START_ <actual data>"
    • Change the search query to "_START_ <actual query>"
    • Add the new field nameString as one of the fields to look in in the query fields param (qf)
    • While searching use the parameter pf (phrase field) as the new field nameString with a phrase slop of 1 or 2 (lower values would mean stricter searching)

    Your final query params will be something like:

    q=_START_ <actual query>
    defType=dismax
    qf=name nameString /* look in name field as well as nameString field */
    pf=nameString /* phrase field in nameString */
    ps=2 /* phrase slop */
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How can i hash (std::tr1::hash or boost::hash) a c++ pointer-to-member-function? Example: I have several
I am new to boost - can you please tell me what are the
Where can i get boost .lib for visual studio 2010?? I tried to rename
How can i create a boost::format type formatter object using the character-string or std::string
I can't seem to find boost::lambda::ll for a nested ll::for_each() invocations in any header
How can I define a array of boost matrices as a member variable? None
How can I create a const boost matrix? The following did not work: const
Are boost ptime instances always UTC? I can't see any time zone info on
I am trying to install Boost so I can use it along with MinGW
I am not using boost libraries. How can i do this using STL? class

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.