下面是一些最近在做搜索引擎时,写的dsl语句,备忘!
GET tjecommodity-20220118/_search
{
"from": 0,
"size": 16,
"query": {
"match": {
"names": "水"
}
},
"_source": {
"includes": [],
"excludes": [
"introduces",
"imagelist",
"tFilteritems",
"creationtime",
"tFilteritems"
]
}
}
#根据条件批量删除
POST /tjecommodity-20220118/_delete_by_query
{
"query": {
"term": {
"supplierid": {
"value": "23"
}
}
}
}
#根据供应商id查询
GET tjecommodity-20220118/_search
{
"query": {
"term": {
"supplierid": {
"value": "23"
}
}
}
}
#根据绝对条件批量删除
POST /recommended-20220117/_delete_by_query
{
"query": {
"term": {
"recommended": {
"value": "污水泵"
}
}
},"size": 20
}
#推荐词聚合查询
GET /recommended-20220117/_search
{
"query": {
"term": {
"recommended": "净水器"
}
},
"size": 50
}
#删除指定索引下的指定id文档
DELETE recommended-20220117/_doc/jCYRUn4B7e8zdJt45-34
#更新搜索范文大小
PUT recommended-20220117/_settings
{
"index.max_result_window":10000000
}
#更新分词
POST tjecommodity-*/_update_by_query
{
"conflicts":"proceed"
}
#添加搜索关键词
POST /recommended-20220117/_doc
{
"recommended": "鸡蛋面"
}
#最大细度分词
GET _analyze
{
"analyzer": "ik_max_word",
"text": "鸡蛋面"
}
#推荐词聚合查询
GET /recommended-20220117/_search
{
"query": {
"match": {
"recommended": "面"
}
},
"size": 200,
"aggs": {
"NAME": {
"terms": {
"field": "recommended.keyword",
"size": 50
}
}
}
}
#搜索关键字
GET /recommended-20220112/_search
{
"query": {
"match": {
"recommended": "方便面"
}
}
}
#根据商品id搜索
GET /tjecommodity-20220118/_search
{
"_source": {
"excludes": ["imagelist","introduces"]
},
"query": {
"term": {
"id": {
"value": 4704546776
}
}
}
}
#获取指定索引的指定文档
GET recommended-20220112/_doc/ZRxQTH4B7e8zdJt4OqC3
#获取指定所以的mapping
GET /recommended-20220112/_mapping
#多条件并列搜索
GET tjecommodity/_search
{
"from": 0,
"size": 20,
"query": {
"bool": {
"should": [
{
"match": {
"brandname": {
"query": "口罩",
"operator": "AND",
"prefix_length": 0,
"max_expansions": 50,
"fuzzy_transpositions": true,
"lenient": false,
"zero_terms_query": "NONE",
"auto_generate_synonyms_phrase_query": true,
"boost": 1
}
}
},
{
"match": {
"names": {
"query": "口罩",
"operator": "AND",
"prefix_length": 0,
"max_expansions": 50,
"fuzzy_transpositions": true,
"lenient": false,
"zero_terms_query": "NONE",
"auto_generate_synonyms_phrase_query": true,
"boost": 3
}
}
}
],
"adjust_pure_negative": true,
"boost": 1
}
},
"_source": {
"includes": [],
"excludes": [
"introduces",
"imagelist",
"tFilteritems",
"creationtime",
"tFilteritems"
]
}
}
#分词测试
GET _analyze
{
"analyzer": "ik_max_word",
"text": "方便面"
}
#删除指定索引
DELETE recommended-20220117
#设置搜索推荐关键词的mapping
PUT /recommended-20220117/?pretty
{
"settings": {
"number_of_shards": 5,
"number_of_replicas": 2
},"mappings": {
"properties" : {
"recommended" : {
"type" : "text",
"fields" : {
"keyword" : {
"type" : "keyword",
"ignore_above" : 256
}
},"analyzer": "ik_max_word"
}
}
}
}
GET tjecommodity/_search
{
"from": 0,
"size": 20,
"query": {
"bool": {
"must": [
{
"match": {
"extension_field": {
"query": "防疫物资",
"operator": "OR",
"prefix_length": 0,
"max_expansions": 50,
"fuzzy_transpositions": true,
"lenient": false,
"zero_terms_query": "NONE",
"auto_generate_synonyms_phrase_query": true,
"boost": 1
}
}
}
],
"adjust_pure_negative": true,
"boost": 1
}
},
"_source": {
"includes": [],
"excludes": [
"introduces",
"imagelist",
"tFilteritems",
"creationtime"
]
}
}
#通过供应商id进行搜索后进入店铺页面
GET commodity/_search
{
"from": 0,
"size": 16,
"query": {
"bool": {
"must": [
{
"term": {
"supplierid": {
"value": 34,
"boost": 1
}
}
}
],
"adjust_pure_negative": true,
"boost": 1
}
},
"_source": {
"includes": [],
"excludes": [
"introduces",
"imagelist",
"tFilteritems",
"creationtime",
"tFilteritems"
]
}
}
POST _analyze
{
"text": "齐心 11孔文件保护套 A4 透明色 100个装 EH303A-1 13W8740『固安捷』",
"analyzer": "ngram_analyzer"
}
POST _analyze
{
"tokenizer": "ngram",
"text": "齐心 11孔文件保护套 A4 透明色 100个装 EH303A-1 13W8740『固安捷』"
}
GET /tjecommodity-20220110/_search
{
"_source": {
"includes": ["names"]
},
"suggest": {
"YOUR_SUGGESTION": {
"text": "齐心",
"phrase": {
"field": "names",
"size": 10
}
}
}
}
GET /tjecommodity/_search
{
"query": {
"term": {
"status": {
"value": 1
}
}
}
}
#更新分词
POST commodity/_update_by_query
{
"conflicts":"proceed"
}
GET /tjecommodity/_search
{"from":0,"size":10,"query":{"bool":{"must":[{"term":{"top":{"value":0,"boost":1.0}}},{"match":{"extension_field":{"query":"年货","operator":"OR","prefix_length":0,"max_expansions":50,"fuzzy_transpositions":true,"lenient":false,"zero_terms_query":"NONE","auto_generate_synonyms_phrase_query":true,"boost":1.0}}}],"adjust_pure_negative":true,"boost":1.0}},"_source":{"includes":[],"excludes":["introduces","imagelist","tFilteritems","creationtime","tFilteritems"]}}
#过滤并不展示指定字段后进行搜索查询
GET tjecommodity/_search
{
"_source": {
"includes": [],
"excludes": [
"introduces",
"imagelist",
"tFilteritems",
"creationtime",
"tFilteritems"
]
},
"query": {
"bool": {
"must": [
{
"term": {
"oneid": {
"value": 14468
}
}
}
]
}
},
"size": 20
}
#多条件 多字段排序搜索
GET tjecommodity/_search
{
"from": 0,
"size": 16,
"query": {
"bool": {
"should": [
{
"match": {
"names": {
"query": "TM2490",
"operator": "AND",
"prefix_length": 0,
"max_expansions": 50,
"fuzzy_transpositions": true,
"lenient": false,
"zero_terms_query": "NONE",
"auto_generate_synonyms_phrase_query": true,
"boost": 3
}
}
},
{
"match": {
"brandname": {
"query": "TM2490",
"operator": "AND",
"prefix_length": 0,
"max_expansions": 50,
"fuzzy_transpositions": true,
"lenient": false,
"zero_terms_query": "NONE",
"auto_generate_synonyms_phrase_query": true,
"boost": 2
}
}
},
{
"match": {
"number": {
"query": "TM2490",
"operator": "AND",
"prefix_length": 0,
"max_expansions": 50,
"fuzzy_transpositions": true,
"lenient": false,
"zero_terms_query": "NONE",
"auto_generate_synonyms_phrase_query": true,
"boost": 2
}
}
}
],
"adjust_pure_negative": true,
"boost": 1
}
},
"_source": {
"includes": [],
"excludes": [
"introduces",
"imagelist",
"tFilteritems",
"creationtime"
]
},
"sort": [
{
"tSpecifications.discount": {
"order": "desc"
}
},
{
"personSort": {
"order": "asc"
}
}
],
"track_total_hits": 2147483647,
"highlight": {
"pre_tags": [
"<font color='red'>"
],
"post_tags": [
"</font>"
]
}
}
GET commodity/_search
{
"query": {
"multi_match": {
"query": "齐心",
"type": "best_fields",
"fields": ["brandname","names"]
}
}
}
GET /house-*/_search
{
"query": {
"multi_match": {
"query": "天齐",
"fields": ["brandname","names","supplieridname"]
}
}
}
GET /test20220104/_search
{ "_source" : {
"excludes": [ "introduces","imagelist","tFilteritems","creationtime","tSpecifications.creationtime" ]
},
"query": {
"term": {
"brandname.keyword": "悦才智连"
}
}
}
POST /tjecommodity/_doc
{
"properties":{
"extension_field":{
"type":"text",
"fielddata":true
}
}
}
GET /commodity/_doc/10-AA5666360
GET /commodity/_search/
{
"_source": {
"includes": [],
"excludes": [
"introduces",
"imagelist",
"tFilteritems",
"creationtime",
"tSpecifications",
"filteritem",
"tFilteritems"
]
},
"aggregations": {
"hot": {
"sum": {
"field": "extension_field.keyword"
}
}
}
}
GET /commodity/_search/
{"_source" : {
"excludes": [ "introduces","imagelist","tFilteritems","creationtime","tSpecifications.creationtime" ]
},
"aggs": {
"NsssAME": {
"terms": {
"field": "properties.extension_field.fielddata"
}
}
}
}
GET /commodity/_search/
{
"_source" : {
"excludes": [ "introduces","imagelist","tFilteritems","creationtime","tSpecifications.creationtime" ]
},
"aggs": {
"street_values": {
"terms": {
"field": "extension_field.keyword",
"size": 10
}
}
}
}
GET /tjecommodity/_search/
{"_source" : {
"excludes": [ "introduces","imagelist","tFilteritems","creationtime","tSpecifications.creationtime" ]
},
"query": {
"match": {
"extension_field": "年货"
}
}
}
GET /commodity/_search
{
"from": 10,
"size": 0,
"query": {
"bool": {
"should": [{
"bool": {
"must": [{
"match": {
"names": "齐心"
}
}, {
"match": {
"brandname.":
"齐心"
}
}],
"adjust_pure_negative": true,
"boost": 1.0
}
}],
"adjust_pure_negative": true,
"boost": 1.0
}
}
}
GET /tjecommodity/_search
DELETE tjecommodity
GET /tjecommodity/_search
{
"_source": {
"excludes": [
"introduces",
"imagelist",
"tFilteritems",
"creationtime",
"tSpecifications.creationtime"
]
},
"query": {
"term": {
"brandname": "齐心"
}
}
}
GET /test20220104/_search
{
"query": {
"term": {
"brandname": {
"value": "悦才智连"
}
}
}
}
GET /commodity/_search/
{"from":0,"size":10,"query":{"bool":{"must":[{"term":{"top":{"value":0,"boost":1.0}}}],"adjust_pure_negative":true,"boost":1.0}}}
GET /_cluster/health
GET /_cat/health
GET /test20220104/_search/
GET /test20220104/_search?q=悦才智连
##获取索引
GET /_cat/indices
##获取索引mapping
GET /commodity/_mapping
GET tjecommodity/_search
{
"from": 0,
"size": 16,
"query": {
"bool": {
"should": [
{
"match": {
"names": {
"query": "桶装水",
"operator": "AND",
"prefix_length": 0,
"max_expansions": 50,
"fuzzy_transpositions": true,
"lenient": false,
"zero_terms_query": "NONE",
"auto_generate_synonyms_phrase_query": true,
"boost": 10
}
}
},
{
"match": {
"extension_field": {
"query": "桶装水",
"operator": "AND",
"prefix_length": 0,
"max_expansions": 50,
"fuzzy_transpositions": true,
"lenient": false,
"zero_terms_query": "NONE",
"auto_generate_synonyms_phrase_query": true,
"boost": 20
}
}
},
{
"match": {
"brandname": {
"query": "桶装水",
"operator": "AND",
"prefix_length": 0,
"max_expansions": 50,
"fuzzy_transpositions": true,
"lenient": false,
"zero_terms_query": "NONE",
"auto_generate_synonyms_phrase_query": true,
"boost": 5
}
}
},
{
"match": {
"oneName": {
"query": "桶装水",
"operator": "AND",
"prefix_length": 0,
"max_expansions": 50,
"fuzzy_transpositions": true,
"lenient": false,
"zero_terms_query": "NONE",
"auto_generate_synonyms_phrase_query": true,
"boost": 2
}
}
},
{
"match": {
"twoName": {
"query": "桶装水",
"operator": "AND",
"prefix_length": 0,
"max_expansions": 50,
"fuzzy_transpositions": true,
"lenient": false,
"zero_terms_query": "NONE",
"auto_generate_synonyms_phrase_query": true,
"boost": 2
}
}
},
{
"match": {
"threeName": {
"query": "桶装水",
"operator": "AND",
"prefix_length": 0,
"max_expansions": 50,
"fuzzy_transpositions": true,
"lenient": false,
"zero_terms_query": "NONE",
"auto_generate_synonyms_phrase_query": true,
"boost": 2
}
}
}
],
"adjust_pure_negative": true,
"boost": 1
}
},
"_source": {
"includes": [],
"excludes": [
"introduces",
"imagelist",
"tFilteritems",
"creationtime"
]
},
"sort": [
{
"personSort": {
"order": "asc"
}
}
],
"track_total_hits": 2147483647,
"highlight": {
"pre_tags": [
"<font color='red'>"
],
"post_tags": [
"</font>"
]
}
}
##获取索引mapping
GET /test20220104/_mapping
DELETE /slorsearch/
#最大细度分词
GET _analyze
{
"analyzer": "ik_max_word",
"text": "[186400,186393,335723]"
}
#最大细度分词
GET _analyze
{
"analyzer": "ik_smart",
"text": "祺宝 QIBAO 优质压花水牛皮安全凉鞋(防砸,防刺穿)-42 78029防砸,防刺穿-42 4F1280"
}
#最小细度分词
GET _analyze
{
"analyzer": "ik_smart",
"text": "惠普(HP)M104w黑白激光打印机 无线 手机打印 家用 小型办公 P11081106升级wifi版"
}
#最小细度分词
GET _analyze
{
"analyzer": "ik_max_word",
"text": "矿泉水都元人合 至尊"
}
GET _analyze
{
"analyzer": "ik_smart",
"text": "huawei华为"
}
DELETE tjecommodity-20220119
#设置索引mapping
PUT /tjecommodity-20220119/?pretty
{
"settings": {
"number_of_shards": 5,
"number_of_replicas": 2
},
"mappings" : {
"properties" : {
"balancetime" : {
"type" : "long"
},
"brandid" : {
"type" : "long"
},
"brandname" : {
"type" : "text",
"fields" : {
"keyword" : {
"type" : "keyword",
"ignore_above" : 256
}
},
"analyzer" : "ik_smart"
},
"commentNum" : {
"type" : "keyword"
},
"companytext" : {
"type" : "text",
"fields" : {
"keyword" : {
"type" : "keyword",
"ignore_above" : 256
}
}
},
"creationtime" : {
"type" : "date",
"format" : "yyyy-MM-dd HH:mm:ss"
},
"deposit" : {
"type" : "long"
},
"discount" : {
"type" : "long"
},
"enterpriseSort" : {
"type" : "long"
},
"extension_field" : {
"type" : "text",
"fields" : {
"keyword" : {
"type" : "keyword",
"ignore_above" : 256
}
}
},
"filteritem" : {
"type" : "text",
"fields" : {
"keyword" : {
"type" : "keyword",
"ignore_above" : 256
}
},
"analyzer" : "ik_max_word"
},
"futuresnum" : {
"type" : "text",
"fields" : {
"keyword" : {
"type" : "keyword",
"ignore_above" : 256
}
}
},
"hot" : {
"type" : "long"
},
"id" : {
"type" : "long"
},
"image" : {
"type" : "text",
"index": false,
"fields" : {
"keyword" : {
"type" : "keyword",
"ignore_above" : 256
}
}
},
"imagelist" : {
"type" : "text",
"index": false,
"fields" : {
"keyword" : {
"type" : "keyword",
"ignore_above" : 256
}
}
},
"introduces" : {
"type" : "text",
"index": false,
"fields" : {
"keyword" : {
"type" : "keyword",
"ignore_above" : 256
}
}
},
"minimum" : {
"type" : "long"
},
"names" : {
"type" : "text",
"fields" : {
"keyword" : {
"type" : "keyword",
"ignore_above" : 256
}
},
"analyzer" : "ik_smart"
},
"num" : {
"type" : "long"
},
"number" : {
"type" : "text",
"fields" : {
"keyword" : {
"type" : "keyword",
"ignore_above" : 256
}
}
},
"nums" : {
"type" : "long"
},
"oneName" : {
"type" : "text",
"analyzer": "ik_max_word",
"fields" : {
"keyword" : {
"type" : "keyword",
"ignore_above" : 256
}
}
},
"oneid" : {
"type" : "long"
},
"personSort" : {
"type" : "long"
},
"prices" : {
"type" : "long"
},
"recommend" : {
"type" : "long"
},
"specifications" : {
"type" : "text",
"fields" : {
"keyword" : {
"type" : "keyword",
"ignore_above" : 256
}
}
},
"status" : {
"type" : "long"
},
"supplierid" : {
"type" : "long"
},
"supplieridname" : {
"type" : "text",
"fields" : {
"keyword" : {
"type" : "keyword",
"ignore_above" : 256
}
},
"analyzer" : "ik_smart"
},
"tFilteritems" : {
"properties" : {
"id" : {
"type" : "long"
},
"names" : {
"type" : "text",
"fields" : {
"keyword" : {
"type" : "keyword",
"ignore_above" : 256
}
},
"analyzer" : "ik_smart"
},
"nums" : {
"type" : "long"
},
"params" : {
"type" : "object"
},
"pid" : {
"type" : "long"
},
"status" : {
"type" : "integer"
},
"tKeywordList" : {
"properties" : {
"id" : {
"type" : "long"
},
"names" : {
"type" : "text",
"fields" : {
"keyword" : {
"type" : "keyword",
"ignore_above" : 256
}
},
"analyzer" : "ik_smart"
},
"number" : {
"type" : "long"
},
"params" : {
"type" : "object"
},
"pid" : {
"type" : "long"
}
}
}
}
},
"tSpecifications" : {
"properties" : {
"creationtime" : {
"type" : "date",
"format" : "yyyy-MM-dd HH:mm:ss"
},
"discount" : {
"type" : "float"
},
"id" : {
"type" : "long"
},
"names" : {
"type" : "text",
"fields" : {
"keyword" : {
"type" : "keyword",
"ignore_above" : 256
}
},
"analyzer" : "ik_smart"
},
"number" : {
"type" : "long"
},
"prices" : {
"type" : "double"
},
"scribingprice" : {
"type" : "double"
},
"stocknum" : {
"type" : "long"
},
"tCommodityPriceSets" : {
"properties" : {
"commodityId" : {
"type" : "long"
},
"id" : {
"type" : "long"
},
"salePrice" : {
"type" : "float"
},
"scribePrice" : {
"type" : "float"
},
"sourceId" : {
"type" : "long"
},
"spec" : {
"type" : "long"
},
"type" : {
"type" : "long"
}
}
}
}
},
"threeName" : {
"type" : "text",
"analyzer": "ik_max_word",
"fields" : {
"keyword" : {
"type" : "keyword",
"ignore_above" : 256
}
}
},
"threeid" : {
"type" : "long"
},
"top" : {
"type" : "long"
},
"transactionnum" : {
"type" : "long"
},
"twoName" : {
"type" : "text",
"analyzer": "ik_max_word",
"fields" : {
"keyword" : {
"type" : "keyword",
"ignore_above" : 256
}
}
},
"twoid" : {
"type" : "long"
},
"types" : {
"type" : "integer"
}
}
}
}
GET tjecommodity-20220118/_search
{
"from": 0,
"size": 16,
"query": {
"bool": {
"should": [
{
"match": {
"extension_field": {
"query": "水",
"operator": "AND",
"prefix_length": 0,
"max_expansions": 50,
"fuzzy_transpositions": true,
"lenient": false,
"zero_terms_query": "NONE",
"auto_generate_synonyms_phrase_query": true,
"boost": 20
}
}
},
{
"match": {
"names": {
"query": "水",
"operator": "AND",
"prefix_length": 0,
"max_expansions": 50,
"fuzzy_transpositions": true,
"lenient": false,
"zero_terms_query": "NONE",
"auto_generate_synonyms_phrase_query": true,
"boost": 15
}
}
},
{
"match": {
"brandname": {
"query": "水",
"operator": "AND",
"prefix_length": 0,
"max_expansions": 50,
"fuzzy_transpositions": true,
"lenient": false,
"zero_terms_query": "NONE",
"auto_generate_synonyms_phrase_query": true,
"boost": 8
}
}
},
{
"match": {
"oneName": {
"query": "水",
"operator": "AND",
"prefix_length": 0,
"max_expansions": 50,
"fuzzy_transpositions": true,
"lenient": false,
"zero_terms_query": "NONE",
"auto_generate_synonyms_phrase_query": true,
"boost": 2
}
}
},
{
"match": {
"twoName": {
"query": "水",
"operator": "AND",
"prefix_length": 0,
"max_expansions": 50,
"fuzzy_transpositions": true,
"lenient": false,
"zero_terms_query": "NONE",
"auto_generate_synonyms_phrase_query": true,
"boost": 2
}
}
},
{
"match": {
"threeName": {
"query": "水",
"operator": "AND",
"prefix_length": 0,
"max_expansions": 50,
"fuzzy_transpositions": true,
"lenient": false,
"zero_terms_query": "NONE",
"auto_generate_synonyms_phrase_query": true,
"boost": 2
}
}
}
],
"adjust_pure_negative": true,
"boost": 1
}
},
"_source": {
"includes": [],
"excludes": [
"introduces",
"imagelist",
"tFilteritems",
"creationtime"
]
},
"sort": [
{
"personSort": {
"order": "asc"
}
},
{
"_score": {
"order": "desc"
}
}
],
"track_total_hits": 2147483647,
"highlight": {
"pre_tags": [
"<font color='red'>"
],
"post_tags": [
"</font>"
]
}
}
#es 数据索引对拷
POST _reindex
{
"source": {
"index": "tjecommodity20220117"
},
"dest": {
"index":"tjecommodity-20220118",
"version_type": "internal"
}
}
#设置索引mapping 旧
PUT /tjecommodity20220118/?pretty
{
"settings": {
"number_of_shards": 5,
"number_of_replicas": 2
},
"mappings": {
"properties": {
"brandName" : {
"type" : "text",
"analyzer": "ik_smart",
"fields" : {
"keyword" : {
"type" : "keyword",
"ignore_above" : 256
}
}
},
"brandid" : {
"type" : "long"
},
"commentNum" : {
"type" : "long"
},
"companytext" : {
"type" : "text",
"index": false,
"fields" : {
"keyword" : {
"type" : "keyword",
"ignore_above" : 256
}
}
},
"creationtime" : {
"type" : "date"
, "format": "YYYY-MM-dd HH:mm:ss"
},
"discount" : {
"type" : "long"
},
"filteritem" : {
"type" : "text",
"fields" : {
"keyword" : {
"type" : "keyword",
"ignore_above" : 256
}
}
},
"futuresnum" : {
"type" : "text",
"fields" : {
"keyword" : {
"type" : "keyword",
"ignore_above" : 256
}
}
},
"id" : {
"type" : "long"
},
"image" : {
"type" : "keyword"
},
"imagelist" : {
"type" : "keyword"
},
"introduces" : {
"type" : "text",
"index": false
},
"isSelf" : {
"type" : "integer"
},
"minimum" : {
"type" : "long"
},
"names" : {
"type" : "text",
"analyzer": "ik_smart",
"fields" : {
"keyword" : {
"type" : "keyword",
"ignore_above" : 256
}
}
},
"number" : {
"type" : "keyword",
"fields" : {
"keyword" : {
"type" : "keyword",
"ignore_above" : 256
}
}
},
"nums" : {
"type" : "long"
},
"oneid" : {
"type" : "long"
},
"prices" : {
"type" : "double"
},
"recommend" : {
"type" : "long"
},
"shopName" : {
"type" : "text",
"analyzer": "ik_max_word",
"fields" : {
"keyword" : {
"type" : "keyword",
"ignore_above" : 256
}
}
},
"showPrice" : {
"type" : "float"
},
"showScribingPrice" : {
"type" : "float"
},
"specifications" : {
"type" : "text",
"fields" : {
"keyword" : {
"type" : "keyword",
"ignore_above" : 256
}
}
},
"status" : {
"type" : "integer"
},
"supplierid" : {
"type" : "long"
},
"threeid" : {
"type" : "long"
},
"transactionnum" : {
"type" : "long"
},
"twoid" : {
"type" : "long"
},
"types" : {
"type" : "long"
},
"yesCollection" : {
"type" : "boolean"
}
}
}
}
GET /commodity/_search/
POST /commodity/_doc
{
"brandid": 12596,
"brandname": "COMIX/齐心",
"commentNum": 0,
"deposit": 0,
"discount": 1,
"enterpriseSort": 3,
"hot": 0,
"id": 187,
"image": "http://res.officebox.cn/Content/Upload/Image/Product_Cover/55224cea58834a6a87c931e32250720a/42dcf49fe6d45a66.jpg",
"minimum": 0,
"names": "齐心(Comix)小美工刀片(B2851) ",
"num": 0,
"number": "2038363",
"nums": 100,
"oneid": 14533,
"personSort": 6,
"prices": 2.42,
"recommend": 1,
"specifications": "218",
"status": 1,
"supplierid": 26,
"supplieridname": "广东今日合作办公用品有限公司",
"tFilteritems": [
{
"id": 36973,
"names": "分类:",
"nums": 0,
"params": { },
"pid": 14845,
"status": 1,
"tKeywordList": [
{
"id": 273370,
"names": "手动工具",
"number": 0,
"params": { },
"pid": 36973
}
,
{
"id": 273371,
"names": "办公文具",
"number": 0,
"params": { },
"pid": 36973
}
,
{
"id": 273396,
"names": "园艺工具",
"number": 0,
"params": { },
"pid": 36973
}
]
}
,
{
"id": 36974,
"names": "材质:",
"nums": 0,
"params": { },
"pid": 14845,
"status": 1,
"tKeywordList": [
{
"id": 273374,
"names": "钛钢",
"number": 0,
"params": { },
"pid": 36974
}
,
{
"id": 273375,
"names": "铬钒合金钢",
"number": 0,
"params": { },
"pid": 36974
}
,
{
"id": 273376,
"names": "合金",
"number": 0,
"params": { },
"pid": 36974
}
,
{
"id": 273379,
"names": "铸钢",
"number": 0,
"params": { },
"pid": 36974
}
,
{
"id": 273380,
"names": "其他",
"number": 0,
"params": { },
"pid": 36974
}
,
{
"id": 273381,
"names": "高碳钢",
"number": 0,
"params": { },
"pid": 36974
}
,
{
"id": 273382,
"names": "陶瓷",
"number": 0,
"params": { },
"pid": 36974
}
,
{
"id": 273384,
"names": "玻璃",
"number": 0,
"params": { },
"pid": 36974
}
,
{
"id": 273385,
"names": "镍铬合金钢",
"number": 0,
"params": { },
"pid": 36974
}
,
{
"id": 273387,
"names": "铝合金",
"number": 0,
"params": { },
"pid": 36974
}
,
{
"id": 273388,
"names": "碳钢",
"number": 0,
"params": { },
"pid": 36974
}
,
{
"id": 273391,
"names": "铬钼合金钢",
"number": 0,
"params": { },
"pid": 36974
}
,
{
"id": 273392,
"names": "不锈钢",
"number": 0,
"params": { },
"pid": 36974
}
,
{
"id": 273397,
"names": "塑料",
"number": 0,
"params": { },
"pid": 36974
}
,
{
"id": 273400,
"names": "铁镍合金钢",
"number": 0,
"params": { },
"pid": 36974
}
,
{
"id": 273401,
"names": "棉",
"number": 0,
"params": { },
"pid": 36974
}
,
{
"id": 273407,
"names": "铜合金",
"number": 0,
"params": { },
"pid": 36974
}
,
{
"id": 273409,
"names": "木",
"number": 0,
"params": { },
"pid": 36974
}
]
}
,
{
"id": 36975,
"names": "类型:",
"nums": 0,
"params": { },
"pid": 14845,
"status": 1,
"tKeywordList": [
{
"id": 273377,
"names": "办公摆件",
"number": 0,
"params": { },
"pid": 36975
}
,
{
"id": 273378,
"names": "切纸刀",
"number": 0,
"params": { },
"pid": 36975
}
,
{
"id": 273383,
"names": "绘图测量",
"number": 0,
"params": { },
"pid": 36975
}
,
{
"id": 273386,
"names": "剪刀/美工刀",
"number": 0,
"params": { },
"pid": 36975
}
,
{
"id": 273389,
"names": "其他",
"number": 0,
"params": { },
"pid": 36975
}
,
{
"id": 273390,
"names": "笔筒/收纳",
"number": 0,
"params": { },
"pid": 36975
}
,
{
"id": 273393,
"names": "胶带/封装器",
"number": 0,
"params": { },
"pid": 36975
}
,
{
"id": 273395,
"names": "办公套装",
"number": 0,
"params": { },
"pid": 36975
}
,
{
"id": 273398,
"names": "切割雕刻垫板",
"number": 0,
"params": { },
"pid": 36975
}
,
{
"id": 273402,
"names": "办公生活",
"number": 0,
"params": { },
"pid": 36975
}
,
{
"id": 273404,
"names": "雕刻刀",
"number": 0,
"params": { },
"pid": 36975
}
,
{
"id": 273405,
"names": "刀片",
"number": 0,
"params": { },
"pid": 36975
}
,
{
"id": 273408,
"names": "胶棒/胶水",
"number": 0,
"params": { },
"pid": 36975
}
]
}
,
{
"id": 36976,
"names": "剪切类:",
"nums": 0,
"params": { },
"pid": 14845,
"status": 1,
"tKeywordList": [
{
"id": 273372,
"names": "锉刀",
"number": 0,
"params": { },
"pid": 36976
}
,
{
"id": 273373,
"names": "美工刀",
"number": 0,
"params": { },
"pid": 36976
}
,
{
"id": 273394,
"names": "割刀",
"number": 0,
"params": { },
"pid": 36976
}
,
{
"id": 273399,
"names": "雕刻刀",
"number": 0,
"params": { },
"pid": 36976
}
,
{
"id": 273403,
"names": "壁纸刀",
"number": 0,
"params": { },
"pid": 36976
}
,
{
"id": 273406,
"names": "园林剪",
"number": 0,
"params": { },
"pid": 36976
}
]
}
],
"tSpecifications": [
{
"discount": 0.6,
"id": 218,
"names": "2038363",
"number": 187,
"prices": 2.42,
"scribingprice": 4,
"stocknum": 100,
"tCommodityPriceSets": [ ]
}
],
"threeid": 14845,
"top": 0,
"transactionnum": 0,
"twoid": 14822,
"types": 1
}