To finalize this practical exercise, here are some links that could be useful:
In this lab, we will set up a backup system for our index.
Add the following configuration to the elasticsearch.yml configuration file:
To finalize this practical exercise, here are some links that could be useful:
In this lab, we will set up a backup system for our index.
Add the following configuration to the elasticsearch.yml configuration file:
| GET / | |
| DELETE movies-v2 | |
| DELETE movies_semantic | |
| # Get all movies | |
| POST /movies/_search?size=100 | |
| # Full-text search | |
| POST /movies/_search |
| import { resolve } from "node:path"; | |
| import { readAllFiles } from "./readAllFiles.ts"; | |
| /** | |
| * Glob - ExperimentalWarning --disable-warning=ExperimentalWarning NODE_OPTIONS= | |
| * Typescript --experimental-transform-types --no-experimental-strip-types. import type | |
| * Test | |
| */ | |
| export const folder = resolve(import.meta.dirname, process.env.ROOT_FOLDER!); |
| { | |
| "name1": "file1" | |
| } |
| package com.example.demo; | |
| import eu.rekawek.toxiproxy.Proxy; | |
| import eu.rekawek.toxiproxy.ToxiproxyClient; | |
| import eu.rekawek.toxiproxy.model.ToxicDirection; | |
| import org.junit.jupiter.api.*; | |
| import org.springframework.beans.factory.annotation.Autowired; | |
| import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc; | |
| import org.springframework.boot.test.context.SpringBootTest; | |
| import org.springframework.http.MediaType; |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <link rel="stylesheet" href="style.css" /> | |
| </head> | |
| <body> | |
| <div id="body"> | |
| <header>Header</header> | |
| <nav>Menu</nav> | |
| <main>Main</main> |
| import d, { Document, EnvelopeDefinition, Recipients, SignHere, Signer, Tabs } from "docusign-esign"; | |
| import fs from "fs"; | |
| import path from "path"; | |
| import { getContractInformationFromRequest } from "../contract/getContractInformation"; | |
| import { generateContractWithoutEOF } from "../contract/generateContractPdf"; | |
| import { API_ACCOUNT_ID, PROD_API, INTEGRATION_KEY, USER_ID } from "./config"; | |
| import { convertContractToBast64 } from "../utils/pdf"; | |
| import { generateContractDocumentFileName } from "../contract/generateContractDocumentFileName"; | |
| import { generateCarbonCopies } from "./generateCarbonCopies"; |
| POST person-manu-v3/_search | |
| { | |
| "size": 0, | |
| "aggs": { | |
| "group_by_year": { | |
| "date_histogram": { | |
| "field": "registered", | |
| "calendar_interval": "1y" | |
| }, |
| [ | |
| "{{repeat(3, 3)}}", | |
| { | |
| "isActive": "{{bool()}}", | |
| "balance": "{{floating(1000, 4000, 2, \"$0,0.00\")}}", | |
| "picture": "http://placehold.it/32x32", | |
| "age": "{{integer(20, 40)}}", | |
| "eyeColor": "{{random(\"blue\", \"brown\", \"green\")}}", | |
| "name": "{{firstName()}} {{surname()}}", | |
| "gender": "{{gender()}}", |
| import { Client } from "@elastic/elasticsearch" | |
| import { readFileSync } from "fs" | |
| (async function(){ | |
| const pipeLineName = "asn-demo-node-js"; | |
| const documents: any = [{ | |
| path: "./dummy.pdf", | |
| name: "Manu" |