elasticsearch-analysis-ansj icon indicating copy to clipboard operation
elasticsearch-analysis-ansj copied to clipboard

打分范围是多少?

Open makefriend8 opened this issue 6 years ago • 3 comments

加入不了。另外。中文比对的打分范围是多少? 比如我定义了字段 @Field(type = FieldType.Text,analyzer = "index_ansj",searchAnalyzer = "query_ansj") String description;

使用POSTMAN进行查询 {

"query": {

	"function_score": {
		"boost_mode": "replace",
		"query": {
			"bool": {
				"should": [{
					"match": {
						"description": "测试"
					}

				}

				]

			}

		}
	}
							
							
}

}

结果。。打分超过了1??????? 请问打分范围到底是多少? 还有。QQ群到底是多少,加入不了啊。

makefriend8 avatar Oct 23 '19 06:10 makefriend8

没有范围分数是累积的

在2019年10月23日 14:58,MarsZhang 写道:

加入不了。另外。中文比对的打分范围是多少? 比如我定义了字段 @field(type = FieldType.Text,analyzer = "index_ansj",searchAnalyzer = "query_ansj") String description;

使用POSTMAN进行查询 {

"query": {

"function_score": {

	"boost_mode": "replace",

	"query": {

		"bool": {

			"should": [{

				"match": {

					"description": "测试"

				}



			}



			]



		}



	}

}

}

}

结果。。打分超过了1??????? 请问打分范围到底是多少? 还有。QQ群到底是多少,加入不了啊。

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

ansjsun avatar Oct 23 '19 07:10 ansjsun

那如何做归一化处理?

makefriend8 avatar Nov 11 '19 03:11 makefriend8

这个是lucene的特性 和分词没有关系 归一化可以自己算

在2019年11月11日 11:25,MarsZhang 写道:

那如何做归一化处理?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

ansjsun avatar Nov 11 '19 03:11 ansjsun