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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T05:43:43+00:00 2026-05-31T05:43:43+00:00

I have a number of fields that either only ever contain one term or

  • 0

I have a number of fields that either only ever contain one term or I don’t want them to be disavantaged if they do have a greater number of terms, and I never boost the field so I disable norms for these fields with Field.Index.ANALYZED_NO_NORM or Field.Index.NOT_ANALYZED_NO_NORM.

But now if I’m searching using two fields

i.e

fielda:term1 OR fieldb:term2

and fielda has norms enabled and fieldb doesn’t, doesn’t that mean that documents that match fieldb are more likely to score better than documents that match fielda because the score for a document matching just fielda will end up with a lower score in the

weight = tf * idf * fieldnorm calculation.

because fieldnorm will be less than one if that field contains more than one term

Thats not what I wanted, I just wanted a document matching on fieldb which contained three terms to score as well as a match on a document fieldb with one term

Have I understood this right, all the discussion about fieldnorm focus on the fact that it takes up memory and it is not neccessary if your field only contains one term I’ve read no discussion of how it effects the results because of the apparent advantage a field with norms disabled has over a field with norms.

  • 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-31T05:43:44+00:00Added an answer on May 31, 2026 at 5:43 am

    My recommandation would be not to mix queries on fields whose norms are disabled with queries on standard fields. The point of disabling norms is to save space when a query is only used as a filter (and not contributing to the score).

    The elegant way of doing what you want would be to have two different similarities for your fields. However, this feature (per-field similarity) is only available in the development version currently.

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

Sidebar

Related Questions

I have a number of enums that each have the same fields and the
I have a form that takes in a number of fields about a camera's
I have a Django form that uses a different number of fields based on
We have a very long form that has a number of fields and 2
I currently have a SQL query that returns a number of fields. I need
I currently have an advanced search page that searches a number of fields in
I currently have an immutable type called Gene , that only has 2 fields:
I have a phone number field that can have lots of different characters such
I have n number of text fields named in the form Question...... How can
I have a detailview with a number of fields, some of which use textFieldShouldEndEditing

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.