This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| DELETE main | |
| PUT main/_doc/1 | |
| { | |
| "timestamp": "2025-10-12T00:00:00", | |
| "symbol": "ESTC", | |
| "price": 10.5 | |
| } | |
| PUT main/_doc/2 | |
| { | |
| "timestamp": "2025-10-13T00:00:00", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| GET / | |
| GET _analyze | |
| { | |
| "text": "These are <em>not</em> the droids you are looking for." | |
| } | |
| PUT starwars | |
| { | |
| "settings": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| DELETE my-index | |
| PUT my-index | |
| { | |
| "mappings": { | |
| "properties": { | |
| "title": { | |
| "type": "text" | |
| }, | |
| "title_vector": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| GET / | |
| PUT starwars | |
| { | |
| "settings": { | |
| "analysis": { | |
| "analyzer": { | |
| "my_analyzer": { | |
| "char_filter": [ | |
| "html_strip" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ollama run llama3.2:1b | |
| curl http://localhost:11434/v1/models --silent | jq | |
| curl http://localhost:11434/v1/embeddings --silent --json '{ "model": "llama3.2:1b", "input": ["You Know, for Search"] }' | jq | |
| curl -fsSL https://elastic.co/start-local | sh |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| PUT audio | |
| { | |
| "mappings": { | |
| "properties": { | |
| "my_long_content": { | |
| "type": "nested", //because there can be multiple vectors per doc | |
| "properties": { | |
| "vector": { | |
| "type": "dense_vector" //the vector used for ranking | |
| }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| GET / | |
| DELETE starwars | |
| DELETE semantic-starwars | |
| PUT starwars | |
| { | |
| "settings": { | |
| "analysis": { | |
| "analyzer": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| DELETE my-long-text-index | |
| PUT my-long-text-index | |
| { | |
| "mappings": { | |
| "properties": { | |
| "my_long_text_field": { | |
| "type": "nested", //because there can be multiple vectors per doc | |
| "properties": { | |
| "vector": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| See https://xeraa.net/talks/elasticsearch-piped-query-language-esql/ for an updated version :) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| GET bytes-discuss-dense-search/_search | |
| { | |
| "query": { | |
| "multi_match": { | |
| "fields": [ "title" ], | |
| "query": "I don't know how to use ingest pipelines" | |
| } | |
| }, | |
| "size": 6, | |
| "fields": [ "title" ], |
NewerOlder