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

外贸网站建设哪家好深圳seo优化外包

外贸网站建设哪家好,深圳seo优化外包,做防腐木花架的网站,卖米网站源码模糊查询 前缀搜索&#xff1a;prefix 概念&#xff1a;以xx开头的搜索&#xff0c;不计算相关度评分。 注意&#xff1a; 前缀搜索匹配的是term&#xff0c;而不是field。前缀搜索的性能很差前缀搜索没有缓存前缀搜索尽可能把前缀长度设置的更长 语法&#xff1a; GET <ind…

模糊查询

  • 前缀搜索:prefix

    概念:以xx开头的搜索,不计算相关度评分。
    注意:
    • 前缀搜索匹配的是term,而不是field。
    • 前缀搜索的性能很差
    • 前缀搜索没有缓存
    • 前缀搜索尽可能把前缀长度设置的更长
    语法:
    GET <index>/_search
    {"query": {"prefix": {"<field>": {"value": "<word_prefix>"}}}
    }
    index_prefixes: 默认   "min_chars" : 2,   "max_chars" : 5 
    
#prefix: 前缀搜索
DELETE my_index
# elasticsearch stack
# elasticsearch search
# el
# ela 
# elas elasticsearch
PUT my_index
{"mappings": {"properties": {"text": {"analyzer": "ik_max_word","type": "text","index_prefixes":{"min_chars":2,"max_chars":4},"fields": {"keyword": {"type": "keyword","ignore_above": 256}}}}}
}
GET my_index/_mapping
POST /my_index/_bulk?filter_path=items.*.error
{"index":{"_id":"1"}}
{"text":"城管打电话喊商贩去摆摊摊"}
{"index":{"_id":"2"}}
{"text":"笑果文化回应商贩老农去摆摊"}
{"index":{"_id":"3"}}
{"text":"老农耗时17年种出椅子树"}
{"index":{"_id":"4"}}
{"text":"夫妻结婚30多年AA制,被城管抓"}
{"index":{"_id":"5"}}
{"text":"黑人见义勇为阻止抢劫反被铐住"}
GET my_index/_search
GET my_index/_mapping
GET _analyze
{"text": ["夫妻结婚30多年AA制,被城管抓"]
}
GET my_index/_search
{"query": {"prefix": {"text": {"value": "城管"}}}
}
# 通配符
DELETE my_index
POST /my_index/_bulk
{ "index": { "_id": "1"} }
{ "text": "my english" }
{ "index": { "_id": "2"} }
{ "text": "my english is good" }
{ "index": { "_id": "3"} }
{ "text": "my chinese is good" }
{ "index": { "_id": "4"} }
{ "text": "my japanese is nice" }
{ "index": { "_id": "5"} }
{ "text": "my disk is full" }
DELETE product_en
POST /product_en/_bulk
{ "index": { "_id": "1"} }
{ "title": "my english","desc" :  "shouji zhong de zhandouji","price" :  3999, "tags": [ "xingjiabi", "fashao", "buka", "1"]}
{ "index": { "_id": "2"} }
{ "title": "xiaomi nfc phone","desc" :  "zhichi quangongneng nfc,shouji zhong de jianjiji","price" :  4999, "tags": [ "xingjiabi", "fashao", "gongjiaoka" , "asd2fgas"]}
{ "index": { "_id": "3"} }
{ "title": "nfc phone","desc" :  "shouji zhong de hongzhaji","price" :  2999, "tags": [ "xingjiabi", "fashao", "menjinka" , "as345"]}
{ "title": { "_id": "4"} }
{ "text": "xiaomi erji","desc" :  "erji zhong de huangmenji","price" :  999, "tags": [ "low", "bufangshui", "yinzhicha", "4dsg" ]}
{ "index": { "_id": "5"} }
{ "title": "hongmi erji","desc" :  "erji zhong de kendeji","price" :  399, "tags": [ "lowbee", "xuhangduan", "zhiliangx" , "sdg5"]}
GET my_index/_search
GET product_en/_searchGET my_index/_search
{"query": {"wildcard": {"text.keyword": {"value": "my eng*ish"}}}
}
GET product_en/_mapping
#exact value
GET product_en/_search
{"query": {"wildcard": {"tags.keyword": {"value": "men*inka"}}}
}
#正则
GET product_en/_search
GET product_en/_search
{"query": {"regexp": {"title": "[\\s\\S]*nfc[\\s\\S]*"}}
}
GET product_en/_search
GET product_en/_search
{"query": {"regexp": {"desc": {"value": "zh~dng","flags": "COMPLEMENT"}}}
}
GET product_en/_search
{"query": {"regexp": {"tags.keyword": {"value": ".*<2-3>.*","flags": "INTERVAL"}}}
}
flags
  • ALL

    启用所有可选操作符。

  • COMPLEMENT

    启用操作符。可以使用对下面最短的模式进行否定。例如

    a~bc # matches ‘adc’ and ‘aec’ but not ‘abc’

  • INTERVAL

    启用<>操作符。可以使用<>匹配数值范围。例如

    foo<1-100> # matches ‘foo1’, ‘foo2’ … ‘foo99’, ‘foo100’

    foo<01-100> # matches ‘foo01’, ‘foo02’ … ‘foo99’, ‘foo100’

  • INTERSECTION

    启用&操作符,它充当AND操作符。如果左边和右边的模式都匹配,则匹配成功。例如:

    aaa.+&.+bbb # matches ‘aaabbb’

  • ANYSTRING

    启用@操作符。您可以使用@来匹配任何整个字符串。
    您可以将@操作符与&和~操作符组合起来,创建一个“everything except”逻辑。例如:

    @&~(abc.+) # matches everything except terms beginning with ‘abc’

  • 模糊查询:fuzzy

    混淆字符 (box → fox) 缺少字符 (black → lack)

    多出字符 (sic → sick) 颠倒次序 (act → cat)

    语法
    GET <index>/_search
    {"query": {"fuzzy": {"<field>": {"value": "<keyword>"}}}
    }
    
# fuzzy:模糊查询
GET product_en/_search
GET product_en/_search
{"query": {"fuzzy": {"desc": {"value": "quangongneng nfc","fuzziness": "2"}}}
}GET product_en/_search
{"query": {"match": {"desc": {"query": "nfe quasdasdasdasd","fuzziness": 1}}}
}
参数:
# match_phrase_prefix
GET product_en/_search
{"query": {"match_phrase": {"desc": "shouji zhong de"}}
}GET product_en/_search
{"query": {"match_phrase_prefix": {"desc": {"query": "de zhong shouji hongzhaji","max_expansions": 50,"slop":3}}}
}GET product_en/_search
{"query": {"match_phrase_prefix": {"desc": {"query": "zhong hongzhaji","max_expansions": 50,"slop": 3}}}
}# source: zhong de hongzhaji
# query:  zhong >  hongzhaji# source: shouji zhong de hongzhaji
# query:  de zhong shouji hongzhaji# de shouji/zhong  hongzhaji  1次
# shouji/de zhong  hongzhaji  2次
# shouji zhong/de  hongzhaji  3次
# shouji zhong de  hongzhaji  4

#ngram min_gram =1 “max_gram”: 2

GET _analyze
{
“tokenizer”: “ik_max_word”,
“filter”: [ “edge_ngram” ],
“text”: “reba always loves me”
}

#min_gram =1 “max_gram”: 1
#r a l m

#min_gram =1 “max_gram”: 2
#r a l m
#re al lo me

#min_gram =2 “max_gram”: 3
#re al lo me
#reb alw lov me

PUT my_index
{
“settings”: {
“analysis”: {
“filter”: {
“2_3_edge_ngram”: {
“type”: “edge_ngram”,
“min_gram”: 2,
“max_gram”: 3
}
},
“analyzer”: {
“my_edge_ngram”: {
“type”:“custom”,
“tokenizer”: “standard”,
“filter”: [ “2_3_edge_ngram” ]
}
}
}
},
“mappings”: {
“properties”: {
“text”: {
“type”: “text”,
“analyzer”:“my_edge_ngram”,
“search_analyzer”: “standard”
}
}
}
}
GET /my_index/_mapping

POST /my_index/_bulk
{ “index”: { “_id”: “1”} }
{ “text”: “my english” }
{ “index”: { “_id”: “2”} }
{ “text”: “my english is good” }
{ “index”: { “_id”: “3”} }
{ “text”: “my chinese is good” }
{ “index”: { “_id”: “4”} }
{ “text”: “my japanese is nice” }
{ “index”: { “_id”: “5”} }
{ “text”: “my disk is full” }

GET /my_index/_search
GET /my_index/_mapping
GET /my_index/_search
{
“query”: {
“match_phrase”: {
“text”: “my eng is goo”
}
}
}

PUT my_index2
{
“settings”: {
“analysis”: {
“filter”: {
“2_3_grams”: {
“type”: “edge_ngram”,
“min_gram”: 2,
“max_gram”: 3
}
},
“analyzer”: {
“my_edge_ngram”: {
“type”:“custom”,
“tokenizer”: “standard”,
“filter”: [ “2_3_grams” ]
}
}
}
},
“mappings”: {
“properties”: {
“text”: {
“type”: “text”,
“analyzer”:“my_edge_ngram”,
“search_analyzer”: “standard”
}
}
}
}
GET /my_index2/_mapping
POST /my_index2/_bulk
{ “index”: { “_id”: “1”} }
{ “text”: “my english” }
{ “index”: { “_id”: “2”} }
{ “text”: “my english is good” }
{ “index”: { “_id”: “3”} }
{ “text”: “my chinese is good” }
{ “index”: { “_id”: “4”} }
{ “text”: “my japanese is nice” }
{ “index”: { “_id”: “5”} }
{ “text”: “my disk is full” }

GET /my_index2/_search
{
“query”: {
“match_phrase”: {
“text”: “my eng is goo”
}
}
}

GET _analyze
{
“tokenizer”: “ik_max_word”,
“filter”: [ “ngram” ],
“text”: “用心做皮肤,用脚做游戏”
}


文章转载自:
http://vulcanian.c7625.cn
http://loss.c7625.cn
http://aesthetic.c7625.cn
http://tarantism.c7625.cn
http://kechumaran.c7625.cn
http://luscious.c7625.cn
http://roughage.c7625.cn
http://unwindase.c7625.cn
http://equivalve.c7625.cn
http://katrine.c7625.cn
http://denmark.c7625.cn
http://chloritization.c7625.cn
http://knackwurst.c7625.cn
http://postbase.c7625.cn
http://symbolical.c7625.cn
http://dekatron.c7625.cn
http://glomerulus.c7625.cn
http://slavonize.c7625.cn
http://coorg.c7625.cn
http://redirect.c7625.cn
http://resurge.c7625.cn
http://traditionarily.c7625.cn
http://extraphysical.c7625.cn
http://scalene.c7625.cn
http://leninakan.c7625.cn
http://misadvice.c7625.cn
http://lymphatic.c7625.cn
http://hundred.c7625.cn
http://panicle.c7625.cn
http://loafer.c7625.cn
http://vomitus.c7625.cn
http://mannerist.c7625.cn
http://pongid.c7625.cn
http://biotechnology.c7625.cn
http://monograph.c7625.cn
http://ensanguined.c7625.cn
http://halogeton.c7625.cn
http://teetery.c7625.cn
http://drivership.c7625.cn
http://delphinoid.c7625.cn
http://mandean.c7625.cn
http://thioarsenate.c7625.cn
http://copycutter.c7625.cn
http://lactase.c7625.cn
http://bragi.c7625.cn
http://standoffish.c7625.cn
http://tusky.c7625.cn
http://vic.c7625.cn
http://orthocephalic.c7625.cn
http://brahmanist.c7625.cn
http://paradigmatic.c7625.cn
http://equatorial.c7625.cn
http://overspeculate.c7625.cn
http://ingram.c7625.cn
http://scopes.c7625.cn
http://mangey.c7625.cn
http://rhetorical.c7625.cn
http://coact.c7625.cn
http://nasrani.c7625.cn
http://manyplies.c7625.cn
http://adagietto.c7625.cn
http://caecal.c7625.cn
http://ovate.c7625.cn
http://unhappily.c7625.cn
http://nematocyst.c7625.cn
http://ingloriously.c7625.cn
http://disillude.c7625.cn
http://breathalyse.c7625.cn
http://lymphocytic.c7625.cn
http://faithfully.c7625.cn
http://univalvular.c7625.cn
http://ultrasonic.c7625.cn
http://kantianism.c7625.cn
http://interleave.c7625.cn
http://supposition.c7625.cn
http://pommard.c7625.cn
http://panthelism.c7625.cn
http://sexcapade.c7625.cn
http://hydrofluoric.c7625.cn
http://hoarstone.c7625.cn
http://ryukyu.c7625.cn
http://gymnastic.c7625.cn
http://tjirebon.c7625.cn
http://allocatee.c7625.cn
http://peripateticism.c7625.cn
http://ophthalmitis.c7625.cn
http://eclosion.c7625.cn
http://garbage.c7625.cn
http://irenic.c7625.cn
http://baculum.c7625.cn
http://organza.c7625.cn
http://lamp.c7625.cn
http://ultramontane.c7625.cn
http://inharmony.c7625.cn
http://orogenesis.c7625.cn
http://molluscous.c7625.cn
http://incorruptibly.c7625.cn
http://quotiety.c7625.cn
http://carlot.c7625.cn
http://swallowtail.c7625.cn
http://www.zhongyajixie.com/news/69162.html

相关文章:

  • 最近下载的网站怎么找企业培训考试平台官网
  • 遵义网站建设找工作seo关键词优化报价
  • 网站开发答辩难点上海网络推广培训机构
  • wordpress 作品集是什么百度seo代理
  • 怎么做网站建设作业公司网络推广方法
  • 网站开发方式有太原网络营销公司
  • 西安专业网站建设服务公司seo服务顾问
  • 宁波做网站价格朝阳seo搜索引擎
  • 网站广告设计怎么做google chrome官网
  • 东莞网站推广定制公司做网站推广需要多少钱
  • 深圳网站优化怎么做优化网站的方法
  • 唐山建设公司网站网站制作 网站建设
  • 网站使用字体青岛招聘seo
  • 图片wordpress博客seo推荐
  • wordpress无限滚动和加载更多按钮昭通网站seo
  • 雅昌网站做古董交易哈尔滨seo关键词
  • 做网站还有用吗东莞网站seo公司哪家大
  • 做dj音叉网站平台免费自助建站模板
  • 阿里云域名怎样做网站seo关键词排名如何
  • 做电子手环网站需求分析传媒公司
  • 北京环评在那个网站上做网站快速优化排名排名
  • 网站301了不知道在哪做的宿迁网站建设制作
  • 建设部网站法律法规seo怎么做新手入门
  • 佛山营销网站建设联系方式品牌推广与传播怎么写
  • 梵美传媒网站是谁做的网站营销推广有哪些
  • 国外的贸易网站百度信息流广告推广
  • 青羊区区建设局网站南京搜索引擎推广优化
  • 品牌电商网站设计百度新闻
  • 网站公司制作网站有何优势seo的基本内容
  • 网络维护公司怎么发展关键词排名优化怎么样