- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
如果没有某些条款,我该如何积极提升?我在here之前问过这个问题,但是响应不令人满意,因为它的推广性不够。
让我们再试一次,更多细节。
我希望能够将笔记本电脑与其配件区分开来。在人类语言中,这是通过缺少术语来完成的。就是说,当您说lenovo thinkpad
时,您知道通过省略单词battery
意味着您想要的是真正的笔记本电脑。将其与有人说lenovo thinkpad battery
的意思(表示电池)进行比较。
因此,假设我们有索引:
PUT test_index
{
"settings": {
"index": {
"number_of_shards": 1,
"number_of_replicas": 1
}
}
}
PUT test_index/_mapping/merchant
{
"properties": {
"title": {
"type": "string"
},
"category": {
"type": "string",
"index": "not_analyzed"
}
}
}
PUT test_index/merchant/3
{
"title": "macbook battery",
"category": "laptops accessories"
}
PUT test_index/merchant/2
{
"title": "lenovo thinkpad battery",
"category": "laptops accessories"
}
PUT test_index/merchant/1
{
"title": "lenovo thinkpad white/black",
"category": "laptops"
}
lenovo thinkpad
:
POST test_index/_search
{
"query":{
"match": { "title": "lenovo thinkpad" }
}
}
"hits": [
{
"_index": "test_index",
"_type": "merchant",
"_id": "2",
"_score": 0.70710677,
"_source": {
"title": "lenovo thinkpad battery",
"category": "laptops accessories"
}
},
{
"_index": "test_index",
"_type": "merchant",
"_id": "1",
"_score": 0.70710677,
"_source": {
"title": "lenovo thinkpad white/black",
"category": "laptops"
}
}
]
lenovo thinkpad battery
比
lenovo thinkpad white/black
高。
title
匹配的相关性。例如,如果您为每个类别提取了95%的百分位词,那么
battery
是
laptops accessories
中的一个高频术语,因此在所有
battery
查询中
title
这个词都应加负数。
category
匹配的相关性。例如,除了标题匹配之外,您还可以自动将其类别中包含95%百分位数的术语(结果不包含在
title
匹配中)的结果进行负提升。
最佳答案
我的投票是
C)
固定类别,以使电池不具有“笔记本电脑”作为类别(它是“laptopAccessory”或仅仅是“accessory”)。或者,创建一个附加类别(不称为“laptops”)来指示实际的机器本身。
在搜索中,您可以尝试对“笔记本电脑”类别(不再模棱两可)进行提升,而不是尝试降低附件的排名。如您在“lenovo thinkpad”的示例中那样,这将导致最初的搜索将实际机器移至配件上方。更精确的搜索(“lenovo Thinkpad Battery”)仍然可以按照您的期望工作。
另一个不错的UI / UX体验是获取结果中返回的总类别,并提供简单的过滤器链接。因此,如果您的初始搜索返回“笔记本电脑”,“配件”,“付款计划”,那么您将把它们中的每一个作为使用原始搜索加上该类别过滤器的重新查询的链接。
祝好运!
关于search - Elasticsearch:促进某些条款的缺失,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40268146/
我的文件示例: [ { username: 'userA', action: 'click', page: 'home' }, { username: 'u
在 AgdaIntro 中, View 部分解释了: ..that with doesn’t remember the connection between the with-term and the
似乎 In 子句在 Linq 3.0 (trunk) 中不能正常工作 我尝试了以下操作: var l = session.Query.Where(p => searchGroups.Contains(
我想在kibana中创建一个可视化效果,以显示不同数据的平均值。我已经创建了显示在日志中的字段,并且还执行了管理->索引模式->刷新。 现在,当我尝试以可视化方式创建图表时-> e.x(条形图)->汇
想象以下搜索词“棕狐”。 所有文档确实都有另一个字段,称为备用名称。 该字段有时包含诸如“动物”或“狐狸”之类的漂亮术语。有时它包含“不好的”(或人类可读的)术语,例如ED2314或1231-234-
我正在尝试使用 Z3 的 HORN 逻辑(set-logic HORN)对一些命令式程序进行编码,但在定义子句时遇到一些困难(使用 SMT2)。谁能告诉我在哪里可以找到有关 Z3 的此功能的良好文档来
我有一个办公室 ID 数组,该数组可能为空。如果 officeIdsToSelect 数组为空,我希望 EF 查询返回所有 记录,或者如果不为空,则仅返回匹配的记录。然而这: int[] office
我正在使用 ark 从 oracle 下载中下载 jdk7u51。 ark 'jdk' do url 'http://download.oracle.com/otn/java/jdk/7u51-
我正在处理一个项目(其他人的代码),其中一个方法被声明为抛出一堆它不可能抛出的已检查异常。 基本上,该方法如下所示: // Assume E1 extends Exception // Assume
所以,我想我理解级联文件系统的基本术语,但我似乎无法理解 MVC 的“层次结构”。谁能告诉我使用 HMVC 相对于 MVC 的优势以及它的基本预期功能吗? 感谢您的宝贵时间! 最佳答案 HMVC 更适
在C++ draft standard N3337节[expr.const.cast]/8 : The following rules define the process known as cast
我是一名优秀的程序员,十分优秀!