Lucene weight sorting factor explanation (for future reference)

Source: Internet
Author: User
Tags idf

Tf (t in d ):Term frequency factor for the term (t) in the document (d)-howmany times the term t occurs in the document.

Idf (t ):Inverse document frequency of the term: a measure of how "unique" the term is. Very common terms have a low idf; very rare terms have a high idf.

Boost (t. field in d ):Field and document boost, as set during indexing (see section 2.5). You may use this to statically boost certain fields and certain documentsover others.

LengthNorm (t. field in d ):Normalization value of a field, given the number of terms within thefield. This value is computed during indexing and stored in the indexnorms. Shorter fields (fewer tokens) get a bigger boost from this factor.

Coord (q, d ):Coordination factor, based on the number of query terms thedocument contains. The coordination factor gives an AND-like boost to related ents that contain more of the search terms than other documents.

QueryNorm (q ):Normalization value for a query, given the sum of the squared weights of each of the query terms.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.