Skip to content

Commit

Permalink
Add search index for --money command
Browse files Browse the repository at this point in the history
  • Loading branch information
apainintheneck committed Dec 10, 2023
1 parent bc10a09 commit ede6ddc
Show file tree
Hide file tree
Showing 18 changed files with 247 additions and 182 deletions.
195 changes: 141 additions & 54 deletions cache/search_index/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,25 +9,25 @@ Sample of the first 20 pretty printed lines of the file.

```
{
"ad": "AD",
"and": "AD",
"020": "AD",
"andorra": "AD",
"the principality of andorra": "AD",
"andorre": "AD",
"アントラ": "AD",
"ጐን፦ሲ": "AD",
"اندورا": "AD",
"এণ্ডোরা": "AD",
"андора": "AD",
"অ্যান্ডোরা": "AD",
"andora": "AD",
"ཨེན་ཌོ་ར།": "AD",
"ανδορρα": "AD",
"andoro": "AD",
"એન્ડોરા": "AD",
"אנדורה": "AD",
"अण्डोरा": "AD",
"ad": "ad",
"and": "ad",
"020": "ad",
"andorra": "ad",
"the principality of andorra": "ad",
"andorre": "ad",
"アントラ": "ad",
"ጐን፦ሲ": "ad",
"اندورا": "ad",
"এণ্ডোরা": "ad",
"андора": "ad",
"অ্যান্ডোরা": "ad",
"andora": "ad",
"ཨེན་ཌོ་ར།": "ad",
"ανδορρα": "ad",
"andoro": "ad",
"એન્ડોરા": "ad",
"אנדורה": "ad",
"अण्डोरा": "ad",
...
```

Expand All @@ -39,52 +39,139 @@ Sample of the first 20 pretty printed lines of the file.
```
{
"andorra": [
"AD"
"ad"
],
"the": [
"AD",
"AE",
"AF",
"AL",
"AM",
"AO",
"AR",
"AS",
"AT",
"AU",
"AZ",
"BD",
"BE",
"BG",
"BH",
"ad",
"ae",
"af",
"al",
"am",
"ao",
"ar",
"as",
"at",
"au",
"az",
"bd",
"be",
"bg",
"bh",
...
```

## Item: search_index/direct_match_region.json
## Item: search_index/countries_by_region.json

### Content Sample
Sample of the first 20 pretty printed lines of the file.

```
{
"europe": [
"AD",
"AL",
"AT",
"AX",
"BA",
"BE",
"BG",
"BY",
"CH",
"CZ",
"DE",
"DK",
"EE",
"ES",
"FI",
"FO",
"FR",
"GB",
"ad",
"al",
"at",
"ax",
"ba",
"be",
"bg",
"by",
"ch",
"cz",
"de",
"dk",
"ee",
"es",
"fi",
"fo",
"fr",
"gb",
...
```

## Item: search_index/direct_match_currency.json

### Content Sample
Sample of the first 20 pretty printed lines of the file.

```
{
"978": "eur",
"eur": "eur",
"euro": "eur",
"784": "aed",
"aed": "aed",
"united arab emirates dirham": "aed",
"971": "afn",
"afn": "afn",
"afghan afghani": "afn",
"951": "xcd",
"xcd": "xcd",
"east caribbean dollar": "xcd",
"008": "all",
"all": "all",
"albanian lek": "all",
"051": "amd",
"amd": "amd",
"armenian dram": "amd",
"973": "aoa",
...
```

## Item: search_index/partial_match_currency.json

### Content Sample
Sample of the first 20 pretty printed lines of the file.

```
{
"euro": [
"eur"
],
"united": [
"aed",
"usd"
],
"arab": [
"aed"
],
"emirates": [
"aed"
],
"dirham": [
"aed",
"mad"
],
"afghan": [
"afn"
...
```

## Item: search_index/countries_by_currency.json

### Content Sample
Sample of the first 20 pretty printed lines of the file.

```
{
"eur": [
"ad",
"at",
"ax",
"be",
"bl",
"cy",
"de",
"ee",
"es",
"fi",
"fr",
"gf",
"gp",
"gr",
"hr",
"ie",
"it",
"lt",
...
```
1 change: 1 addition & 0 deletions cache/search_index/countries_by_currency.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"eur":["ad","at","ax","be","bl","cy","de","ee","es","fi","fr","gf","gp","gr","hr","ie","it","lt","lu","lv","mc","me","mf","mq","mt","nl","pm","pt","re","si","sk","sm","tf","va","yt"],"aed":["ae"],"afn":["af"],"xcd":["ag","ai","dm","gd","kn","lc","ms","vc"],"all":["al"],"amd":["am"],"aoa":["ao"],"usd":["aq","as","bq","ec","fm","gu","io","mh","mp","pr","pw","sv","tc","um","us","vg","vi","zw"],"ars":["ar"],"aud":["au","cc","cx","hm","ki","nf","nr","tv"],"awg":["aw"],"azn":["az"],"bam":["ba"],"bbd":["bb"],"bdt":["bd"],"xof":["bf","bj","ci","gw","ml","ne","sn","tg"],"bgn":["bg"],"bhd":["bh"],"bif":["bi"],"bmd":["bm"],"bnd":["bn"],"bob":["bo"],"brl":["br"],"bsd":["bs"],"btn":["bt"],"nok":["bv","no","sj"],"bwp":["bw"],"byn":["by"],"bzd":["bz"],"cad":["ca"],"cdf":["cd"],"xaf":["cf","cg","cm","ga","gq","td"],"chf":["ch","li"],"nzd":["ck","nu","nz","pn","tk"],"clp":["cl"],"cny":["cn"],"cop":["co"],"crc":["cr"],"cup":["cu"],"cve":["cv"],"ang":["cw","sx"],"czk":["cz"],"djf":["dj"],"dkk":["dk","fo","gl"],"dop":["do"],"dzd":["dz"],"egp":["eg"],"mad":["eh","ma"],"etb":["er","et"],"fjd":["fj"],"fkp":["fk"],"gbp":["gb","gg","gs","im","je"],"gel":["ge"],"ghs":["gh"],"gip":["gi"],"gmd":["gm"],"gnf":["gn"],"gtq":["gt"],"gyd":["gy"],"hkd":["hk"],"hnl":["hn"],"htg":["ht"],"huf":["hu"],"idr":["id","tl"],"ils":["il","ps"],"inr":["in"],"iqd":["iq"],"irr":["ir"],"isk":["is"],"jmd":["jm"],"jod":["jo"],"jpy":["jp"],"kes":["ke"],"kgs":["kg"],"khr":["kh"],"kmf":["km"],"kpw":["kp"],"krw":["kr"],"kwd":["kw"],"kyd":["ky"],"kzt":["kz"],"lak":["la"],"lbp":["lb"],"lkr":["lk"],"lrd":["lr"],"lsl":["ls"],"lyd":["ly"],"mdl":["md"],"mga":["mg"],"mkd":["mk"],"mmk":["mm"],"mnt":["mn"],"mop":["mo"],"mru":["mr"],"mur":["mu"],"mvr":["mv"],"mwk":["mw"],"mxn":["mx"],"myr":["my"],"mzn":["mz"],"nad":["na"],"xpf":["nc","pf","wf"],"ngn":["ng"],"nio":["ni"],"npr":["np"],"omr":["om"],"pab":["pa"],"pen":["pe"],"pgk":["pg"],"php":["ph"],"pkr":["pk"],"pln":["pl"],"pyg":["py"],"qar":["qa"],"ron":["ro"],"rsd":["rs"],"rub":["ru"],"rwf":["rw"],"sar":["sa"],"sbd":["sb"],"scr":["sc"],"sdg":["sd"],"sek":["se"],"sgd":["sg"],"shp":["sh"],"sll":["sl"],"sos":["so"],"srd":["sr"],"ssp":["ss"],"std":["st"],"syp":["sy"],"szl":["sz"],"thb":["th"],"tjs":["tj"],"tmt":["tm"],"tnd":["tn"],"top":["to"],"try":["tr"],"ttd":["tt"],"twd":["tw"],"tzs":["tz"],"uah":["ua"],"ugx":["ug"],"uyu":["uy"],"uzs":["uz"],"ves":["ve"],"vnd":["vn"],"vuv":["vu"],"wst":["ws"],"yer":["ye"],"zar":["za"],"zmw":["zm"]}
1 change: 1 addition & 0 deletions cache/search_index/countries_by_region.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"europe":["ad","al","at","ax","ba","be","bg","by","ch","cz","de","dk","ee","es","fi","fo","fr","gb","gg","gi","gr","hr","hu","ie","im","is","it","je","li","lt","lu","lv","mc","md","me","mk","mt","nl","no","pl","pt","ro","rs","ru","se","si","sj","sk","sm","tr","ua","va"],"southern europe":["ad","al","ba","es","gi","gr","hr","it","me","mk","mt","pt","rs","si","sm","va"],"emea":["ad","ae","al","am","ao","at","ax","az","ba","be","bf","bg","bh","bi","bj","bw","by","cd","cf","cg","ch","ci","cm","cv","cy","cz","de","dj","dk","dz","ee","eg","eh","er","es","et","fi","fo","fr","ga","gb","ge","gg","gh","gi","gl","gm","gn","gq","gr","gw","hr","hu","ie","il","im","iq","ir","is","it","je","jo","ke","kg","km","kw","kz","lb","li","lr","ls","lt","lu","lv","ly","ma","mc","md","me","mg","mk","ml","mr","ms","mt","mu","mw","mz","na","ne","ng","nl","no","om","pl","ps","pt","qa","re","ro","rs","ru","rw","sa","sc","sd","se","si","sj","sk","sl","sm","sn","so","ss","st","sy","sz","td","tf","tg","tj","tm","tn","tr","tz","ua","ug","uz","va","ye","yt","za","zm","zw"],"asia":["ae","af","am","az","bd","bh","bn","bt","cc","cn","cx","cy","ge","hk","id","il","in","io","iq","ir","jo","jp","kg","kh","kp","kr","kw","kz","la","lb","lk","mm","mn","mo","mv","my","np","om","ph","pk","ps","qa","sa","sg","sy","th","tj","tl","tm","tr","tw","uz","vn","ye"],"western asia":["ae","am","az","bh","cy","ge","il","iq","jo","kw","lb","om","ps","qa","sa","sy","tr","ye"],"southern asia":["af","bd","bt","in","ir","lk","mv","np","pk"],"apac":["af","as","au","bd","bl","bn","bq","bt","bv","cc","ck","cn","cx","fj","fm","gu","hk","hm","id","in","io","jp","kh","ki","kp","kr","la","lk","mh","mm","mn","mo","mp","mv","my","nc","nf","np","nr","nu","nz","pf","pg","ph","pk","pn","pw","sb","sg","sh","tc","th","tk","tl","to","tv","tw","vn","vu","wf","ws"],"americas":["ag","ai","ar","aw","bb","bl","bm","bo","bq","br","bs","bz","ca","cl","co","cr","cu","cw","dm","do","ec","fk","gd","gf","gl","gp","gs","gt","gy","hn","ht","jm","kn","ky","lc","mf","mq","ms","mx","ni","pa","pe","pm","pr","py","sr","sv","sx","tc","tt","um","us","uy","vc","ve","vg","vi"],"caribbean":["ag","ai","aw","bb","bl","bq","bs","cu","cw","dm","do","gd","gp","ht","jm","kn","ky","lc","mf","mq","ms","pr","sx","tc","tt","vc","vg","vi"],"north america":["ag","ai","aw","bb","bl","bm","bq","bs","bz","ca","cr","cu","cw","dm","do","gd","gl","gp","gt","hn","ht","jm","kn","ky","lc","mf","mq","ms","mx","ni","pa","pm","pr","sv","sx","tc","tt","us","vc","vg","vi"],"amer":["ag","ai","aq","ar","aw","bb","bm","bo","br","bs","bz","ca","cl","co","cr","cu","cw","dm","do","ec","fk","gd","gf","gp","gs","gt","gy","hn","ht","jm","kn","ky","lc","mf","mq","mx","ni","pa","pe","pm","pr","py","sr","sv","sx","tt","um","us","uy","vc","ve","vg","vi"],"africa":["ao","bf","bi","bj","bw","cd","cf","cg","ci","cm","cv","dj","dz","eg","eh","er","et","ga","gh","gm","gn","gq","gw","io","ke","km","lr","ls","ly","ma","mg","ml","mr","mu","mw","mz","na","ne","ng","re","rw","sc","sd","sh","sl","sn","so","ss","st","sz","td","tf","tg","tn","tz","ug","yt","za","zm","zw"],"middle africa":["ao","cd","cf","cg","cm","ga","gq","st","td"],"antarctica":["aq","bv","gs","hm"],"south america":["ar","bo","br","cl","co","ec","fk","gf","gs","gy","pe","py","sr","uy","ve"],"oceania":["as","au","cc","ck","cx","fj","fm","gu","ki","mh","mp","nc","nf","nr","nu","nz","pf","pg","pn","pw","sb","tk","to","tv","vu","wf","ws"],"polynesia":["as","ck","nu","pf","pn","tk","to","tv","wf","ws"],"australia":["as","au","ck","fj","fm","gu","ki","mh","mp","nc","nf","nr","nu","nz","pf","pg","pn","pw","sb","tk","to","tv","um","vu","wf","ws"],"western europe":["at","be","ch","de","fr","li","lu","mc","nl"],"australia and new zealand":["au","cc","cx","nf","nz"],"northern europe":["ax","dk","ee","fi","fo","gb","gg","ie","im","is","je","lt","lv","no","se","sj"],"western africa":["bf","bj","ci","cv","gh","gm","gn","gw","lr","ml","mr","ne","ng","sh","sl","sn","tg"],"eastern europe":["bg","by","cz","hu","md","pl","ro","ru","sk","ua"],"eastern africa":["bi","dj","er","et","io","ke","km","mg","mu","mw","mz","re","rw","sc","so","tf","tz","ug","yt","zm","zw"],"northern america":["bm","ca","gl","pm","um","us"],"south-eastern asia":["bn","id","kh","la","mm","my","ph","sg","th","tl","vn"],"southern africa":["bw","ls","na","sz","za"],"central america":["bz","cr","gt","hn","mx","ni","pa","sv"],"eastern asia":["cn","hk","jp","kp","kr","mn","mo","tw"],"northern africa":["dz","eg","eh","ly","ma","sd","ss","tn"],"melanesia":["fj","nc","pg","sb","vu"],"micronesia":["fm","gu","ki","mh","mp","nr","pw"],"central asia":["kg","kz","tj","tm","uz"]}
2 changes: 1 addition & 1 deletion cache/search_index/direct_match_country.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions cache/search_index/direct_match_currency.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"978":"eur","eur":"eur","euro":"eur","784":"aed","aed":"aed","united arab emirates dirham":"aed","971":"afn","afn":"afn","afghan afghani":"afn","951":"xcd","xcd":"xcd","east caribbean dollar":"xcd","008":"all","all":"all","albanian lek":"all","051":"amd","amd":"amd","armenian dram":"amd","973":"aoa","aoa":"aoa","angolan kwanza":"aoa","840":"usd","usd":"usd","united states dollar":"usd","032":"ars","ars":"ars","argentine peso":"ars","036":"aud","aud":"aud","australian dollar":"aud","533":"awg","awg":"awg","aruban florin":"awg","944":"azn","azn":"azn","azerbaijani manat":"azn","977":"bam","bam":"bam","bosnia and herzegovina convertible mark":"bam","052":"bbd","bbd":"bbd","barbadian dollar":"bbd","050":"bdt","bdt":"bdt","bangladeshi taka":"bdt","952":"xof","xof":"xof","west african cfa franc":"xof","975":"bgn","bgn":"bgn","bulgarian lev":"bgn","048":"bhd","bhd":"bhd","bahraini dinar":"bhd","108":"bif","bif":"bif","burundian franc":"bif","060":"bmd","bmd":"bmd","bermudian dollar":"bmd","096":"bnd","bnd":"bnd","brunei dollar":"bnd","068":"bob","bob":"bob","bolivian boliviano":"bob","986":"brl","brl":"brl","brazilian real":"brl","044":"bsd","bsd":"bsd","bahamian dollar":"bsd","064":"btn","btn":"btn","bhutanese ngultrum":"btn","578":"nok","nok":"nok","norwegian krone":"nok","072":"bwp","bwp":"bwp","botswana pula":"bwp","933":"byn","byn":"byn","belarusian ruble":"byn","084":"bzd","bzd":"bzd","belize dollar":"bzd","124":"cad","cad":"cad","canadian dollar":"cad","976":"cdf","cdf":"cdf","congolese franc":"cdf","950":"xaf","xaf":"xaf","central african cfa franc":"xaf","756":"chf","chf":"chf","swiss franc":"chf","554":"nzd","nzd":"nzd","new zealand dollar":"nzd","152":"clp","clp":"clp","chilean peso":"clp","156":"cny","cny":"cny","chinese renminbi yuan":"cny","170":"cop","cop":"cop","colombian peso":"cop","188":"crc","crc":"crc","costa rican colon":"crc","192":"cup","cup":"cup","cuban peso":"cup","132":"cve","cve":"cve","cape verdean escudo":"cve","532":"ang","ang":"ang","netherlands antillean gulden":"ang","203":"czk","czk":"czk","czech koruna":"czk","262":"djf","djf":"djf","djiboutian franc":"djf","208":"dkk","dkk":"dkk","danish krone":"dkk","214":"dop","dop":"dop","dominican peso":"dop","012":"dzd","dzd":"dzd","algerian dinar":"dzd","818":"egp","egp":"egp","egyptian pound":"egp","504":"mad","mad":"mad","moroccan dirham":"mad","230":"etb","etb":"etb","ethiopian birr":"etb","242":"fjd","fjd":"fjd","fijian dollar":"fjd","238":"fkp","fkp":"fkp","falkland pound":"fkp","826":"gbp","gbp":"gbp","british pound":"gbp","981":"gel","gel":"gel","georgian lari":"gel","936":"ghs","ghs":"ghs","ghanaian cedi":"ghs","292":"gip","gip":"gip","gibraltar pound":"gip","270":"gmd","gmd":"gmd","gambian dalasi":"gmd","324":"gnf","gnf":"gnf","guinean franc":"gnf","320":"gtq","gtq":"gtq","guatemalan quetzal":"gtq","328":"gyd","gyd":"gyd","guyanese dollar":"gyd","344":"hkd","hkd":"hkd","hong kong dollar":"hkd","340":"hnl","hnl":"hnl","honduran lempira":"hnl","332":"htg","htg":"htg","haitian gourde":"htg","348":"huf","huf":"huf","hungarian forint":"huf","360":"idr","idr":"idr","indonesian rupiah":"idr","376":"ils","ils":"ils","israeli new sheqel":"ils","356":"inr","inr":"inr","indian rupee":"inr","368":"iqd","iqd":"iqd","iraqi dinar":"iqd","364":"irr","irr":"irr","iranian rial":"irr","352":"isk","isk":"isk","icelandic krona":"isk","388":"jmd","jmd":"jmd","jamaican dollar":"jmd","400":"jod","jod":"jod","jordanian dinar":"jod","392":"jpy","jpy":"jpy","japanese yen":"jpy","404":"kes","kes":"kes","kenyan shilling":"kes","417":"kgs","kgs":"kgs","kyrgyzstani som":"kgs","116":"khr","khr":"khr","cambodian riel":"khr","174":"kmf","kmf":"kmf","comorian franc":"kmf","408":"kpw","kpw":"kpw","north korean won":"kpw","410":"krw","krw":"krw","south korean won":"krw","414":"kwd","kwd":"kwd","kuwaiti dinar":"kwd","136":"kyd","kyd":"kyd","cayman islands dollar":"kyd","398":"kzt","kzt":"kzt","kazakhstani tenge":"kzt","418":"lak","lak":"lak","lao kip":"lak","422":"lbp","lbp":"lbp","lebanese pound":"lbp","144":"lkr","lkr":"lkr","sri lankan rupee":"lkr","430":"lrd","lrd":"lrd","liberian dollar":"lrd","426":"lsl","lsl":"lsl","lesotho loti":"lsl","434":"lyd","lyd":"lyd","libyan dinar":"lyd","498":"mdl","mdl":"mdl","moldovan leu":"mdl","969":"mga","mga":"mga","malagasy ariary":"mga","807":"mkd","mkd":"mkd","macedonian denar":"mkd","104":"mmk","mmk":"mmk","myanmar kyat":"mmk","496":"mnt","mnt":"mnt","mongolian togrog":"mnt","446":"mop","mop":"mop","macanese pataca":"mop","929":"mru","mru":"mru","mauritanian ouguiya":"mru","480":"mur","mur":"mur","mauritian rupee":"mur","462":"mvr","mvr":"mvr","maldivian rufiyaa":"mvr","454":"mwk","mwk":"mwk","malawian kwacha":"mwk","484":"mxn","mxn":"mxn","mexican peso":"mxn","458":"myr","myr":"myr","malaysian ringgit":"myr","943":"mzn","mzn":"mzn","mozambican metical":"mzn","516":"nad","nad":"nad","namibian dollar":"nad","953":"xpf","xpf":"xpf","cfp franc":"xpf","566":"ngn","ngn":"ngn","nigerian naira":"ngn","558":"nio","nio":"nio","nicaraguan cordoba":"nio","524":"npr","npr":"npr","nepalese rupee":"npr","512":"omr","omr":"omr","omani rial":"omr","590":"pab","pab":"pab","panamanian balboa":"pab","604":"pen","pen":"pen","peruvian sol":"pen","598":"pgk","pgk":"pgk","papua new guinean kina":"pgk","608":"php","php":"php","philippine peso":"php","586":"pkr","pkr":"pkr","pakistani rupee":"pkr","985":"pln","pln":"pln","polish zloty":"pln","600":"pyg","pyg":"pyg","paraguayan guarani":"pyg","634":"qar","qar":"qar","qatari riyal":"qar","946":"ron","ron":"ron","romanian leu":"ron","941":"rsd","rsd":"rsd","serbian dinar":"rsd","643":"rub","rub":"rub","russian ruble":"rub","646":"rwf","rwf":"rwf","rwandan franc":"rwf","682":"sar","sar":"sar","saudi riyal":"sar","090":"sbd","sbd":"sbd","solomon islands dollar":"sbd","690":"scr","scr":"scr","seychellois rupee":"scr","938":"sdg","sdg":"sdg","sudanese pound":"sdg","752":"sek","sek":"sek","swedish krona":"sek","702":"sgd","sgd":"sgd","singapore dollar":"sgd","654":"shp","shp":"shp","saint helenian pound":"shp","694":"sll","sll":"sll","sierra leonean leone":"sll","706":"sos","sos":"sos","somali shilling":"sos","968":"srd","srd":"srd","surinamese dollar":"srd","728":"ssp","ssp":"ssp","south sudanese pound":"ssp","678":"std","std":"std","sao tome and principe dobra":"std","760":"syp","syp":"syp","syrian pound":"syp","748":"szl","szl":"szl","swazi lilangeni":"szl","764":"thb","thb":"thb","thai baht":"thb","972":"tjs","tjs":"tjs","tajikistani somoni":"tjs","934":"tmt","tmt":"tmt","turkmenistani manat":"tmt","788":"tnd","tnd":"tnd","tunisian dinar":"tnd","776":"top","top":"top","tongan paʻanga":"top","949":"try","try":"try","turkish lira":"try","780":"ttd","ttd":"ttd","trinidad and tobago dollar":"ttd","901":"twd","twd":"twd","new taiwan dollar":"twd","834":"tzs","tzs":"tzs","tanzanian shilling":"tzs","980":"uah","uah":"uah","ukrainian hryvnia":"uah","800":"ugx","ugx":"ugx","ugandan shilling":"ugx","858":"uyu","uyu":"uyu","uruguayan peso":"uyu","860":"uzs","uzs":"uzs","uzbekistan som":"uzs","928":"ves","ves":"ves","venezuelan bolivar soberano":"ves","704":"vnd","vnd":"vnd","vietnamese dong":"vnd","548":"vuv","vuv":"vuv","vanuatu vatu":"vuv","882":"wst","wst":"wst","samoan tala":"wst","886":"yer","yer":"yer","yemeni rial":"yer","710":"zar","zar":"zar","south african rand":"zar","967":"zmw","zmw":"zmw","zambian kwacha":"zmw"}
Loading

0 comments on commit ede6ddc

Please sign in to comment.