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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T22:54:19+00:00 2026-05-16T22:54:19+00:00

I am started working on resume retrieval(document) component based on lucene.net engine. It works

  • 0

I am started working on resume retrieval(document) component based on lucene.net engine. It works great, and it fetches the document and score it based on the

the idea behind the VSM is the more
times a query term appears in a
document relative to the number of
times the term appears in all the
documents in the collection, the more
relevant that document is to the
query.

Lucene’s Practical Scoring Function is derived from the below.

score(q,d)=coord(q,d)·queryNorm(q)· ∑( tf(t in d) ·idf(t)2 · t.getBoost() · norm(t,d) ) 
                                  t in q

in this

  • tf(t in d) correlates to the term’s frequency, defined as the number of times term t appears in the currently scored document d. Documents that have more occurrences of a given term receive a higher score
  • idf(t) stands for Inverse Document Frequency. This value correlates to the inverse of docFreq (the number of documents in which the term t appears). This means rarer terms give higher contribution to the total score.

This is very great indeed in most of the situation, but due to the fieldnorm calculation the result is not accurate

fieldnorm aka “field length norm” value represents the length of that field in that doc (so shorter fields are automatically boosted up).

Due to this we didn’t get the accurate results.
Say for an example i got 10000 documents in which 3000 documents got java and oracle keyword. And the no of times it appears vary on each document.

  • assume doc A got 10 java 20 oracle among 1000 words and doc B got 2 java 2 oracle among 50 words
  • if am searching for a query “java and oracle”, lucene returns doc B with high score
    due to the length normalization.

Due to the nature of the business we need to retrieve the documents got more search keyword occurrence should come first, we don’t really care about the length of the document.

Because of this a Guy with a big resume with lot of keywords is been moved below in the result and some small resumes came up.

To avoid that i need to disable length normalization. Can some one help me with this??

I have attached the Luke result image for your reference.

In this image, document with java 50 times and oracle 6 times moved down to 11 th position.

alt text

But this document with java 24 times and oracle 5 times is a top scorer due to the fieldnorm.

alt text

Hope i conveyed the info clear… If not please ask me, i ll give more info

  • 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-16T22:54:20+00:00Added an answer on May 16, 2026 at 10:54 pm

    You can disable length normalization with Field.setOmitNorms(true)

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

Sidebar

Related Questions

No related questions found

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.