solr scoring - fieldnorm

前端 未结 2 1182
迷失自我
迷失自我 2021-01-19 05:24

I have the following records and the scores against it when I search for \"iphone\" -

Record1: FieldName - DisplayName : \"Iphone\" FieldName - Name : \"Iphone\"

2条回答
  •  离开以前
    2021-01-19 06:03

    fieldnorm takes into account the field length i.e. the number of terms.
    The fieldtype used is text for the fields display name & name, which would have the stopwords and the word delimiter filters.

    Record 1 - Iphone
    Would generate a single token - IPhone

    Record 2 - The Iphone Book
    Would generate 2 tokens - Iphone, Book
    The would be removed by the stopwords.

    Record 3 - iPhone
    Would also generate 2 tokens - i,phone
    As iPhone has a case change, the word delimiter filter with splitOnCaseChange would now split iPhone into 2 tokens i, Phone and would produce the field norm same as Record 2

提交回复
热议问题