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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T06:11:07+00:00 2026-06-05T06:11:07+00:00

I am querying a solr server for locations. Those location documents also have a

  • 0

I am querying a solr server for locations. Those location documents also have a field “country_code” which contains values like US, GB, DE, …

Under certain circumstances I want to boost results with specific country codes so that I am able to prioritize my results by country.

For example:

?q=york

Let’s say the user is from Great Britain and is searching for York … At the moment he finds some Yorks in the US first, then the one in England.

I want to be able to specify that for this query British results should be on top. I found that this should be possible via dismax and bq, something like that:

?q=york&dismax=true&bq=country_code:GB^20.0

But that doesn’t work as expected, now York from Guatemala (country_code GT) is on top, the GB ones are not to be seen.

Help please 😉

  • 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-05T06:11:08+00:00Added an answer on June 5, 2026 at 6:11 am

    Ok, what I did with dismax in my question is working, I just had the boost value way too low. Changed it from 20 to 20000 and it’s working just fine.

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

Sidebar

Related Questions

My Solr setup contains the Filter LowerCaseFilterFactory for indexing and querying, so - the
I'm having an issue querying Solr using the following field type: <fieldType name=text_ci class=solr.TextField
I'm querying Solr like this: http://XXX.xx.xx:xxx/solr/select?q=name:(pizza)&fq=locationid:6050 OR _query_:{!bbox}&sfield=location&pt=34.0211224, -118.39646&d=8 I am searching for records
When querying DNS server for the IP address, which one of the following is
I have this stemmed field: <fieldtype name=textes class=solr.TextField> <analyzer type=index> <tokenizer class=solr.WhitespaceTokenizerFactory/> <filter class=solr.WordDelimiterFilterFactory
I'm querying SolR server to get the price ranges. How can I construct a
I have problem with querying webservice which uses WS-Security. I use code creadted by
I am querying an external service which is passing back JSON data. I'd like
I am currently querying a table that has some null values scattered around. Without
I am querying database from my EJB Bean, which is DAO, my query look's

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.