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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T12:08:29+00:00 2026-05-25T12:08:29+00:00

I consider this solr psedo-doc <doc> <field name=title/> <field name=name/> <field name=keywords/> </doc> Some

  • 0

I consider this solr psedo-doc

<doc>
<field name="title"/>
<field name="name"/>
<field name="keywords"/>
</doc>

Some doc’s will have the keyword “up” which means that they should appear first (despite of their initial order position) when and only when they are part of the search results.

So lets say I have:

doc1('title1','Bob, Alice','people, up, couple')
doc2('title2','Smart Phone, Laptop, Bob','devices, electronics')

if I query with “title:title2 name:Bob” then I should get doc1 first (it has the ‘up’ keyword).
if I query with “name:Bob” I still get doc1 first for the same reason.
if I query with “name:Laptop” then I should only get doc2 in my results. doc1 should not be included since it doesnt match my search query.

Any suggestion to do this?

  • 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-25T12:08:29+00:00Added an answer on May 25, 2026 at 12:08 pm

    You have several options to do something like that:

    • function query / boost query (in dismax handler)
    • during index time (boost documents)
    • extract ‘up’ keyword to additional field and sort by this field, than score

    For example (with dismax handler):

     /select?defType=dismax&q=...&bq=keywords:"up"^1000
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Consider this... I am writing a class named Cache which will accept either a
Consider a Solr index with the following fields: <fields> <field name=id type=uuid indexed=true stored=true
I have NGram filtering enabled for a keywords field I am indexing, which contains
Consider this very simple example, where I have template wrapper class for which are
Consider this example - I have a class called Report that has a field
Consider this problem: I have a program which should fetch (let's say) 100 records
Consider this simple example - public class Person { private String name; private Date
Consider this var source = new{ Id = 1, Name = Name1} It works
Consider this in C#: int[] a = new int[1024]; All integers will be set
Consider this example: <% int testNumber = 1; %> //Some HTML goes here <%=testNumber%>

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.