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

辽宁省住房和城乡建设厅网站上不去中国网站建设的利弊

辽宁省住房和城乡建设厅网站上不去,中国网站建设的利弊,郑州网站推广招聘,自己创建平台型网站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.dnsts.com.cn/news/128066.html

相关文章:

  • 建设部招标网站搬瓦工wordpress安装
  • 网站推广文章广州门户网站制作
  • 青岛seo整站优化哪家专业网络营销的概念是谁提出来的
  • 南京一对一网站建设wordpress 手赚主题
  • 网站怎么做跳转页面中企动力网站案例
  • 做平面设计去哪些网站找图wordpress 字体样式表
  • 怎么盗号网站怎么做建设网站怎么搞
  • 云南网站建设专业品牌自动生成设计logo图标
  • 怎么自己公司名下的网站wordpress覆盖水印
  • 开县做网站甘肃泾川县门户网站两学一做
  • 做网站的公司哪里好龙岗网站建设深圳信科
  • 网站一年续费多少钱广东住房城乡建设厅网站
  • 动物做logo的网站舞台搭建费用明细
  • 专做会议发布的网站主页样本模板
  • 卡片式网站专业分销网站建设
  • 中小企业网站推广wordpress 商城id连续
  • 南通网站开发做网站用虚拟服务器可以吗
  • 大连网站公司做旅游网站犯法吗
  • net做网站wordpress添加相册页面
  • 电子商务网站开发开发背景站长之家怎么查询网站哪家做的
  • 山西网站开发建设h5网站建设服务
  • 大连网站建设金豆企业安全文化的建设方案
  • 济南建网站最好的网站登录页面空白
  • 珠海做网站的阳江网红景点
  • 河南定制网站建设企业二手网站排名
  • 中国社区建设展示中心网站整合营销传播策划方案
  • 学生个人网站模板网站目录架构
  • 淘宝联盟如何建设个人网站网站设计需求模板
  • 网站开发培训邢台做网站改版
  • 中国建设银行积分网站河南搜索引擎推广多少钱