1

I'm indexing several different fields in a document using Apache SOLR 3.6.

When I do a search for a term, SOLR returns all the occurrences of the term in each field. However, the same score for all the fields that the term occurred inside the text of the field does not change. For example if USC occurred in the title field, and in the contents field, they both get the same score.

Is there a way to index a document of different fields and have a weighted score based on the type of field within the document?

4

1 回答 1

2

使用 dismax 或 edismax 并将 qf(查询字段)参数设置为类似这样,以使标题比正文更重要。

qf=title^3 body

于 2012-06-26T16:32:01.070 回答