当前位置: 首页 > news >正文

山东信达建设有限公司网站快速搭建房屋

山东信达建设有限公司网站,快速搭建房屋,seo需要掌握哪些技术,宿州品牌网站建设公司term 查询执行精确值匹配#xff0c;要求文档中的字段值与指定的词项完全相等。对于日期字段等精确值字段#xff0c;通常使用 term 查询可以快速有效地匹配文档。match 查询执行全文搜索#xff0c;会对输入的文本进行分析#xff0c;生成查询词项#xff0c;并试图找到与…term 查询执行精确值匹配要求文档中的字段值与指定的词项完全相等。对于日期字段等精确值字段通常使用 term 查询可以快速有效地匹配文档。match 查询执行全文搜索会对输入的文本进行分析生成查询词项并试图找到与这些词项匹配的文档constant_score查询是一种特殊的查询它会为每个匹配的文档分配一个固定的分数默认为 1.0 DELETE productsPOST /products/_bulk { index: { _id: 1 }} { price : 10,avaliable:true,date:2023-01-01, productID : XHDK-A-1293-#fJ3 } { index: { _id: 2 }} { price : 20,avaliable:true,date:2023-01-01, productID : KDKE-B-9947-#kL5 } { index: { _id: 3 }} { price : 30,avaliable:true, productID : JODL-X-1937-#pV7 } { index: { _id: 4 }} { price : 30,avaliable:false, productID : QQPX-R-3956-#aD8 }GET products/_mapping# 对布尔值 match 查询有算分 POST products/_search {profile: true,explain: true,query: {term: {avaliable: true}} }# 对布尔值通过constant score 转成 filtering没有算分 POST products/_search {profile: true,explain: true,query: {constant_score: {filter: {term: {avaliable: true}}}} }# 数字类型 Term POST products/_search {profile: true,explain: true,query: {term: {price: 30}} }# 数字类型 terms POST products/_search {query: {constant_score: {filter: {terms: {price: [20,30]}}}} }# 数字 Range 查询 GET products/_search {query : {constant_score : {filter : {range : {price : {gte : 20,lte : 30}}}}} }# 日期 range POST products/_search {query : {constant_score : {filter : {range : {date : {gte : now-1y}}}}} }# exists查询 POST products/_search {query: {constant_score: {filter: {exists: {field: date}}}} }# 处理多值字段 POST /movies/_bulk { index: { _id: 1 }} { title : Father of the Bridge Part II,year:1995, genre:Comedy} { index: { _id: 2 }} { title : Dave,year:1993,genre:[Comedy,Romance] }# 处理多值字段term 查询是包含而不是等于 POST movies/_search {query: {constant_score: {filter: {term: {genre.keyword: Comedy}}}} }# 字符类型 terms POST products/_search {query: {constant_score: {filter: {terms: {productID.keyword: [QQPX-R-3956-#aD8,JODL-X-1937-#pV7]}}}} }POST products/_search {profile: true,explain: true,query: {match: {price: 30}} }POST products/_search {profile: true,explain: true,query: {term: {date: 2019-01-01}} }POST products/_search {profile: true,explain: true,query: {match: {date: 2019-01-01}} }POST products/_search {profile: true,explain: true,query: {constant_score: {filter: {term: {productID.keyword: XHDK-A-1293-#fJ3}}}} }POST products/_search {profile: true,explain: true,query: {term: {productID.keyword: XHDK-A-1293-#fJ3}} }# 对布尔数值 POST products/_search {query: {constant_score: {filter: {term: {avaliable: false}}}} }POST products/_search {query: {term: {avaliable: {value: false}}} }POST products/_search {profile: true,explain: true,query: {term: {price: {value: 20}}} }POST products/_search {profile: true,explain: true,query: {match: {price: 20}} }POST products/_search {query: {constant_score: {filter: {bool: {must_not: {exists: {field: date}}}}}} }DELETE products# boosting 查询包含以下关键元素 # positive: 正面条件定义了一个条件这里是 content: elasticsearch 当文档匹配这个条件时会增加文档的相关性得分。 # negative: 负面条件定义了另一个条件这里是 content: like 当文档匹配这个条件时会减少文档的相关性得分。 # negative_boost: 这个参数指定了负面条件对得分的影响程度。在这个示例中 DELETE testscorePUT testscore {settings: {number_of_shards: 1},mappings: {properties: {content: {type: text}}} }PUT testscore/_bulk { index: { _id: 1 }} { content:we use Elasticsearch to power the search } { index: { _id: 2 }} { content:we like elasticsearch } { index: { _id: 3 }} { content:The scoring of documents is caculated by the scoring formula } { index: { _id: 4 }} { content:you know, for search }# the elasticsearch会查出123条数据 # the会查出13数据 POST /testscore/_search {//explain: true,query: {match: {//content:youcontent: elasticsearch//content:the//content: the elasticsearch}} }# boosting 查询包含以下关键元素 # positive: 正面条件定义了一个条件这里是 content: elasticsearch # 当文档匹配这个条件时会增加文档的相关性得分。 # negative: 负面条件定义了另一个条件这里是 content: like # 当文档匹配这个条件时会减少文档的相关性得分。 # negative_boost: 这个参数指定了负面条件对得分的影响程度。在这个示例中 # 设置为 0.2表示负面条件的匹配与正面条件相比对相关性得分的影响降低了 80%。 POST testscore/_search {query: {boosting : {positive : {term : {content : elasticsearch}},negative : {term : {content : like}},negative_boost : 0.2}} }DELETE testscorePOST tmdb/_search {_source: [title,overview],query: {more_like_this: {fields: [title^10,overview],like: [{_id:14191}],min_term_freq: 1,max_query_terms: 12}} }
http://www.yingshimen.cn/news/19454/

相关文章:

  • 徐州网站建设方案数字经济发展情况报告
  • 物流运输做网站的素材郑州网站建设君捷
  • 淮北市建设局网站如何用模板做网站视频
  • 网站推广销售腾讯会员被告怎么办网站重新制作多久google重新收录
  • 德州哪里有学做网站的桦甸市城乡建设局网站
  • 网站系统建设架构南通网站设计制作公司
  • 如何做单网页网站wordpress批量修改内容
  • 太原网站开发工程师上海优化网站方法
  • 线上怎么做推广和宣传seo的中文意思
  • 为什么很多网站用php做国外网络销售平台有哪些
  • 云南省建设工程造价管理协会网站wordpress 网易
  • 网络公司 网站源码o2o商城网站建设
  • 废旧网站那个做的最好招商网站建设服务商
  • wordpress更改内容百度网站优化推广
  • 有那个网站可以做食品台账wordpress 网页 登录
  • 做网站时默认字体是微软雅黑从用户角度网站应该具备的条件
  • 中山手机网站建设wordpress调用导航栏
  • 如何做专题网站wordpress 友链页面
  • 如何制作门户网站金溪那里可以做网站
  • 大连地区做网站高端访问
  • 免费做ppt的网站中国新闻
  • 什么叫营销型网站建设长沙推广公司
  • 哪些网站用echarts做的滁州网站开发czesou
  • 做房产网站接不到电话学校网站建设公司
  • 中国做的手机系统下载网站如何在网站做电子报
  • 淘宝客网站建设公司网站备案成功后该怎么做
  • 开源网站模板企业所得税25%怎么计算
  • 商场商城网站建设方案热点网站建设
  • 站长分析工具深圳淘宝运营培训
  • 利用vs做网站做网站需要什么认证