08 2022 档案
摘要:vs2022需要安装python,c++ python环境:3.7 需要安装的包:cmake,boost,opencv-python,按顺序安装 代码 import cv2import dlibimport osimport sysimport random#存储位置output_dir = 'D:
阅读全文
摘要:1,添加类型为keyword和text的字段需注意: keyword:查询的时候已有的值不会被分词; term查询keyword字段, term不会分词。而keyword字段也不分词,需要完全匹配才可。 match查询keyword字段,match会被分词,而keyword不会被分词,match的需
阅读全文
摘要:windows系统下执行curl: 注意:windows下不能用单引号,必须用双引号,英文双引号,双引号!!! 查看es状态curl http://localhost:9200/_cat/health 查看特定索引curl "http://localhost:9200/_cat/indices/te
阅读全文
摘要:public void ConfigureServices(IServiceCollection services) { services.AddControllersWithViews() .Services .AddHealthChecks(Configuration); } public vo
阅读全文
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Threading.Tasks;using Microsoft.AspNetCore.Http;using Microsoft.AspNetCor
阅读全文
摘要:注意:嵌套类型字段必须是创建索引的时候映射才有效 一,创建索引testindex 二,新增数据 三,排序查询
阅读全文
摘要:private Expression<T> Compose<T>(Expression<T> first, Expression<T> second, Func<Expression, Expression, Expression> merge) { // build parameter map (
阅读全文