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
Input | Terms | |
---|---|---|
Dade Murphy | da, dad, dade, mu, mur, murp, murph, murphy |
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
POST hackers/_search | |
{ | |
"query":{ | |
"term": { | |
"name": "da" | |
} | |
} | |
} |
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
Term | Doc Ids | |
---|---|---|
dade | 1 | |
murphy | 1 | |
zero | 1 | |
cool | 1 | |
crash | 1 | |
override | 1 | |
kate | 2 | |
libby | 2 | |
acid | 2 |
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
{ | |
"mappings": { | |
"_doc": { | |
"properties": { | |
"name" : { | |
"type" : "text", | |
"analyzer": "lower_case" | |
}, | |
"handles": { |
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
POST hackers/_search | |
{ | |
"query":{ | |
"term": { | |
"name": "da" | |
} | |
} | |
} |
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
Term | Doc Ids | |
---|---|---|
Dade | 1 | |
Murphy | 1 | |
Zero | 1 | |
Cool | 1 | |
Crash | 1 | |
Override | 1 | |
Kate | 2 | |
Libby | 2 | |
Acid | 2 |
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
{ | |
"mappings": { | |
"_doc": { | |
"properties": { | |
"name" : { | |
"type" : "text" | |
}, | |
"handles": { | |
"type": "text" |
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
Text Input | Terms | |
---|---|---|
Dade Murphy | dade, murphy |
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
Id | Name | Handle | |
---|---|---|---|
1 | Dade Murphy | Zero Cool, Crash Override | |
2 | Kate Libby | Acid Burn | |
3 | Ramón Sánchez | The Phantom Phreak | |
4 | Emmanuel Goldstein | Cereal Killer | |
5 | Paul Cook | Lord Nikon | |
6 | Eugene Belford | The Plague |
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
#[macro_use] | |
extern crate structopt; | |
use std::process::{Command, Stdio}; | |
use structopt::clap::AppSettings; | |
use structopt::StructOpt; | |
#[derive(StructOpt, Debug)] | |
// https://docs.rs/clap/2/clap/enum.AppSettings.html#variant.InferSubcommands | |
#[structopt(raw(setting = "AppSettings::InferSubcommands"))] |