From cb137a8b89965fa38adffef19431e85d997874f1 Mon Sep 17 00:00:00 2001 From: Minoru Osuka Date: Fri, 21 Jun 2019 17:47:31 +0900 Subject: [PATCH] Add GEO search example --- README.md | 69 ++++++++++++++----- example/geo_doc1.json | 18 +++++ example/geo_doc2.json | 20 ++++++ example/geo_doc3.json | 20 ++++++ example/geo_doc4.json | 20 ++++++ example/geo_doc5.json | 20 ++++++ example/geo_doc6.json | 20 ++++++ example/geo_index_mapping.json | 36 ++++++++++ example/geo_search_request.json | 55 +++++++++++++++ ...delete_wiki.json => wiki_bulk_delete.json} | 0 ...k_index_wiki.json => wiki_bulk_index.json} | 0 ...c_arwiki_1.json => wiki_doc_arwiki_1.json} | 0 ...c_bgwiki_1.json => wiki_doc_bgwiki_1.json} | 0 ...c_cawiki_1.json => wiki_doc_cawiki_1.json} | 0 ...c_cswiki_1.json => wiki_doc_cswiki_1.json} | 0 ...c_dawiki_1.json => wiki_doc_dawiki_1.json} | 0 ...c_dewiki_1.json => wiki_doc_dewiki_1.json} | 0 ...c_elwiki_1.json => wiki_doc_elwiki_1.json} | 0 ...c_enwiki_1.json => wiki_doc_enwiki_1.json} | 0 ...c_eswiki_1.json => wiki_doc_eswiki_1.json} | 0 ...c_fawiki_1.json => wiki_doc_fawiki_1.json} | 0 ...c_fiwiki_1.json => wiki_doc_fiwiki_1.json} | 0 ...c_frwiki_1.json => wiki_doc_frwiki_1.json} | 0 ...c_gawiki_1.json => wiki_doc_gawiki_1.json} | 0 ...c_glwiki_1.json => wiki_doc_glwiki_1.json} | 0 ...c_guwiki_1.json => wiki_doc_guwiki_1.json} | 0 ...c_hiwiki_1.json => wiki_doc_hiwiki_1.json} | 0 ...c_huwiki_1.json => wiki_doc_huwiki_1.json} | 0 ...c_hywiki_1.json => wiki_doc_hywiki_1.json} | 0 ...c_idwiki_1.json => wiki_doc_idwiki_1.json} | 0 ...c_itwiki_1.json => wiki_doc_itwiki_1.json} | 0 ...c_jawiki_1.json => wiki_doc_jawiki_1.json} | 0 ...c_knwiki_1.json => wiki_doc_knwiki_1.json} | 0 ...c_kowiki_1.json => wiki_doc_kowiki_1.json} | 0 ...c_mlwiki_1.json => wiki_doc_mlwiki_1.json} | 0 ...c_nlwiki_1.json => wiki_doc_nlwiki_1.json} | 0 ...c_nowiki_1.json => wiki_doc_nowiki_1.json} | 0 ...c_pswiki_1.json => wiki_doc_pswiki_1.json} | 0 ...c_ptwiki_1.json => wiki_doc_ptwiki_1.json} | 0 ...c_rowiki_1.json => wiki_doc_rowiki_1.json} | 0 ...c_ruwiki_1.json => wiki_doc_ruwiki_1.json} | 0 ...c_svwiki_1.json => wiki_doc_svwiki_1.json} | 0 ...c_tawiki_1.json => wiki_doc_tawiki_1.json} | 0 ...c_tewiki_1.json => wiki_doc_tewiki_1.json} | 0 ...c_thwiki_1.json => wiki_doc_thwiki_1.json} | 0 ...c_trwiki_1.json => wiki_doc_trwiki_1.json} | 0 ...c_zhwiki_1.json => wiki_doc_zhwiki_1.json} | 0 ...x_mapping.json => wiki_index_mapping.json} | 0 ..._request.json => wiki_search_request.json} | 0 49 files changed, 262 insertions(+), 16 deletions(-) create mode 100644 example/geo_doc1.json create mode 100644 example/geo_doc2.json create mode 100644 example/geo_doc3.json create mode 100644 example/geo_doc4.json create mode 100644 example/geo_doc5.json create mode 100644 example/geo_doc6.json create mode 100644 example/geo_index_mapping.json create mode 100644 example/geo_search_request.json rename example/{bulk_delete_wiki.json => wiki_bulk_delete.json} (100%) rename example/{bulk_index_wiki.json => wiki_bulk_index.json} (100%) rename example/{doc_arwiki_1.json => wiki_doc_arwiki_1.json} (100%) rename example/{doc_bgwiki_1.json => wiki_doc_bgwiki_1.json} (100%) rename example/{doc_cawiki_1.json => wiki_doc_cawiki_1.json} (100%) rename example/{doc_cswiki_1.json => wiki_doc_cswiki_1.json} (100%) rename example/{doc_dawiki_1.json => wiki_doc_dawiki_1.json} (100%) rename example/{doc_dewiki_1.json => wiki_doc_dewiki_1.json} (100%) rename example/{doc_elwiki_1.json => wiki_doc_elwiki_1.json} (100%) rename example/{doc_enwiki_1.json => wiki_doc_enwiki_1.json} (100%) rename example/{doc_eswiki_1.json => wiki_doc_eswiki_1.json} (100%) rename example/{doc_fawiki_1.json => wiki_doc_fawiki_1.json} (100%) rename example/{doc_fiwiki_1.json => wiki_doc_fiwiki_1.json} (100%) rename example/{doc_frwiki_1.json => wiki_doc_frwiki_1.json} (100%) rename example/{doc_gawiki_1.json => wiki_doc_gawiki_1.json} (100%) rename example/{doc_glwiki_1.json => wiki_doc_glwiki_1.json} (100%) rename example/{doc_guwiki_1.json => wiki_doc_guwiki_1.json} (100%) rename example/{doc_hiwiki_1.json => wiki_doc_hiwiki_1.json} (100%) rename example/{doc_huwiki_1.json => wiki_doc_huwiki_1.json} (100%) rename example/{doc_hywiki_1.json => wiki_doc_hywiki_1.json} (100%) rename example/{doc_idwiki_1.json => wiki_doc_idwiki_1.json} (100%) rename example/{doc_itwiki_1.json => wiki_doc_itwiki_1.json} (100%) rename example/{doc_jawiki_1.json => wiki_doc_jawiki_1.json} (100%) rename example/{doc_knwiki_1.json => wiki_doc_knwiki_1.json} (100%) rename example/{doc_kowiki_1.json => wiki_doc_kowiki_1.json} (100%) rename example/{doc_mlwiki_1.json => wiki_doc_mlwiki_1.json} (100%) rename example/{doc_nlwiki_1.json => wiki_doc_nlwiki_1.json} (100%) rename example/{doc_nowiki_1.json => wiki_doc_nowiki_1.json} (100%) rename example/{doc_pswiki_1.json => wiki_doc_pswiki_1.json} (100%) rename example/{doc_ptwiki_1.json => wiki_doc_ptwiki_1.json} (100%) rename example/{doc_rowiki_1.json => wiki_doc_rowiki_1.json} (100%) rename example/{doc_ruwiki_1.json => wiki_doc_ruwiki_1.json} (100%) rename example/{doc_svwiki_1.json => wiki_doc_svwiki_1.json} (100%) rename example/{doc_tawiki_1.json => wiki_doc_tawiki_1.json} (100%) rename example/{doc_tewiki_1.json => wiki_doc_tewiki_1.json} (100%) rename example/{doc_thwiki_1.json => wiki_doc_thwiki_1.json} (100%) rename example/{doc_trwiki_1.json => wiki_doc_trwiki_1.json} (100%) rename example/{doc_zhwiki_1.json => wiki_doc_zhwiki_1.json} (100%) rename example/{index_mapping.json => wiki_index_mapping.json} (100%) rename example/{search_request.json => wiki_search_request.json} (100%) diff --git a/README.md b/README.md index 8f86600..5db2659 100644 --- a/README.md +++ b/README.md @@ -249,7 +249,7 @@ $ ./bin/blastd \ --grpc-addr=:5001 \ --http-addr=:5002 \ --data-dir=/tmp/blast/indexer1 \ - --index-mapping-file=./example/index_mapping.json \ + --index-mapping-file=./example/wiki_index_mapping.json \ --index-type=upside_down \ --index-storage-type=boltdb ``` @@ -268,7 +268,7 @@ You can now put, get, search and delete the documents via CLI. For document indexing, execute the following command: ```bash -$ cat ./example/doc_enwiki_1.json | xargs -0 ./bin/blast set document --grpc-addr=:5001 enwiki_1 +$ cat ./example/wiki_doc_enwiki_1.json | xargs -0 ./bin/blast set document --grpc-addr=:5001 enwiki_1 ``` You can see the result in JSON format. The result of the above command is: @@ -303,7 +303,7 @@ You can see the result in JSON format. The result of the above command is: Searching documents is as like following: ```bash -$ cat ./example/search_request.json | xargs -0 ./bin/blast search --grpc-addr=:5001 +$ cat ./example/wiki_search_request.json | xargs -0 ./bin/blast search --grpc-addr=:5001 ``` You can see the result in JSON format. The result of the above command is: @@ -483,7 +483,7 @@ You can see the result in JSON format. The result of the above command is: Indexing documents in bulk, run the following command: ```bash -$ cat ./example/bulk_index_wiki.json | xargs -0 ./bin/blast set document --grpc-addr=:5001 +$ cat ./example/wiki_bulk_index.json | xargs -0 ./bin/blast set document --grpc-addr=:5001 ``` You can see the result in JSON format. The result of the above command is: @@ -498,7 +498,7 @@ You can see the result in JSON format. The result of the above command is: Deleting documents in bulk, run the following command: ```bash -$ cat ./example/bulk_delete_wiki.json | xargs -0 ./bin/blast delete document --grpc-addr=:5001 +$ cat ./example/wiki_bulk_delete.json | xargs -0 ./bin/blast delete document --grpc-addr=:5001 ``` You can see the result in JSON format. The result of the above command is: @@ -518,7 +518,7 @@ Also you can do above commands via HTTP REST API that listened port 5002. Indexing a document via HTTP is as following: ```bash -$ curl -X PUT 'http://127.0.0.1:5002/documents/enwiki_1' -d @./example/doc_enwiki_1.json +$ curl -X PUT 'http://127.0.0.1:5002/documents/enwiki_1' -d @./example/wiki_doc_enwiki_1.json ``` @@ -536,7 +536,7 @@ $ curl -X GET 'http://127.0.0.1:5002/documents/enwiki_1' Searching documents via HTTP is as following: ```bash -$ curl -X POST 'http://127.0.0.1:5002/search' -d @./example/search_request.json +$ curl -X POST 'http://127.0.0.1:5002/search' -d @./example/wiki_search_request.json ``` @@ -554,7 +554,7 @@ $ curl -X DELETE 'http://127.0.0.1:5002/documents/enwiki_1' Indexing documents in bulk via HTTP is as following: ```bash -$ curl -X PUT 'http://127.0.0.1:5002/documents' -d @./example/bulk_index_wiki.json +$ curl -X PUT 'http://127.0.0.1:5002/documents' -d @./example/wiki_bulk_index.json ``` @@ -563,7 +563,7 @@ $ curl -X PUT 'http://127.0.0.1:5002/documents' -d @./example/bulk_index_wiki.js Deleting documents in bulk via HTTP is as following: ```bash -$ curl -X DELETE 'http://127.0.0.1:5002/documents' -d @./example/bulk_delete_wiki.json +$ curl -X DELETE 'http://127.0.0.1:5002/documents' -d @./example/wiki_bulk_delete.json ``` @@ -583,7 +583,7 @@ $ ./bin/blastd \ --grpc-addr=:5001 \ --http-addr=:5002 \ --data-dir=/tmp/blast/indexer1 \ - --index-mapping-file=./example/index_mapping.json \ + --index-mapping-file=./example/wiki_index_mapping.json \ --index-type=upside_down \ --index-storage-type=boltdb ``` @@ -659,7 +659,7 @@ Recommend 3 or more odd number of nodes in the cluster. In failure scenarios, da The following command indexes documents to any node in the cluster: ```bash -$ cat ./example/doc_enwiki_1.json | xargs -0 ./bin/blast set document --grpc-addr=:5001 enwiki_1 +$ cat ./example/wiki_doc_enwiki_1.json | xargs -0 ./bin/blast set document --grpc-addr=:5001 enwiki_1 ``` So, you can get the document from the node specified by the above command as follows: @@ -724,7 +724,7 @@ $ ./bin/blastd \ --grpc-addr=:15001 \ --http-addr=:15002 \ --data-dir=/tmp/blast/manager1 \ - --index-mapping-file=./example/index_mapping.json \ + --index-mapping-file=./example/wiki_index_mapping.json \ --index-type=upside_down \ --index-storage-type=boltdb @@ -827,15 +827,15 @@ $ ./bin/blastd \ ``` ```bash -$ cat ./example/bulk_index_wiki.json | xargs -0 ./bin/blast set document --grpc-addr=:25001 +$ cat ./example/wiki_bulk_index.json | xargs -0 ./bin/blast set document --grpc-addr=:25001 ``` ```bash -$ cat ./example/search_request.json | xargs -0 ./bin/blast search --grpc-addr=:25001 +$ cat ./example/wiki_search_request.json | xargs -0 ./bin/blast search --grpc-addr=:25001 ``` ```bash -$ cat ./example/bulk_delete_wiki.json | xargs -0 ./bin/blast delete document --grpc-addr=:25001 +$ cat ./example/wiki_bulk_delete.json | xargs -0 ./bin/blast delete document --grpc-addr=:25001 ``` @@ -886,7 +886,7 @@ $ docker run --rm --name blast-indexer1 \ --grpc-addr=:5001 \ --http-addr=:5002 \ --data-dir=/tmp/blast/indexer1 \ - --index-mapping-file=/opt/blast/example/index_mapping.json \ + --index-mapping-file=/opt/blast/example/wiki_index_mapping.json \ --index-storage-type=leveldb ``` @@ -936,3 +936,40 @@ $ for FILE in $(find ~/tmp/enwiki -type f -name '*' | sort) curl -s -X PUT -H 'Content-Type: application/json' "http://127.0.0.1:8080/documents" -d "${DOCS}" done ``` + + +## GEO example + +This section explain how to index GEO data to Blast. + +### Starting Indexer with GEO index mapping + +```bash +$ ./bin/blastd \ + indexer \ + --node-id=indexer1 \ + --bind-addr=:5000 \ + --grpc-addr=:5001 \ + --http-addr=:5002 \ + --data-dir=/tmp/blast/indexer1 \ + --index-mapping-file=./example/geo_index_mapping.json \ + --index-type=upside_down \ + --index-storage-type=boltdb +``` + +### Indexing example GEO data + +```bash +$ cat ./example/geo_doc1.json | xargs -0 ./bin/blast set document --grpc-addr=:5001 geo_doc1 +$ cat ./example/geo_doc2.json | xargs -0 ./bin/blast set document --grpc-addr=:5001 geo_doc2 +$ cat ./example/geo_doc3.json | xargs -0 ./bin/blast set document --grpc-addr=:5001 geo_doc3 +$ cat ./example/geo_doc4.json | xargs -0 ./bin/blast set document --grpc-addr=:5001 geo_doc4 +$ cat ./example/geo_doc5.json | xargs -0 ./bin/blast set document --grpc-addr=:5001 geo_doc5 +$ cat ./example/geo_doc6.json | xargs -0 ./bin/blast set document --grpc-addr=:5001 geo_doc6 +``` + +### Searching example GEO data + +```bash +$ cat ./example/geo_search_request.json | xargs -0 ./bin/blast search --grpc-addr=:5001 +``` diff --git a/example/geo_doc1.json b/example/geo_doc1.json new file mode 100644 index 0000000..e94b319 --- /dev/null +++ b/example/geo_doc1.json @@ -0,0 +1,18 @@ +{ + "name": "Brewpub-on-the-Green", + "city": "Fremont", + "state": "California", + "code": "", + "country": "United States", + "phone": "", + "website": "", + "type": "brewery", + "updated": "2010-07-22 20:00:20", + "description": "", + "address": [], + "geo": { + "accuracy": "APPROXIMATE", + "lat": 37.5483, + "lon": -121.989 + } +} diff --git a/example/geo_doc2.json b/example/geo_doc2.json new file mode 100644 index 0000000..9ba8bfd --- /dev/null +++ b/example/geo_doc2.json @@ -0,0 +1,20 @@ +{ + "name": "Capital City Brewing Company", + "city": "Washington", + "state": "District of Columbia", + "code": "20005", + "country": "United States", + "phone": "202.628.2222", + "website": "http://www.capcitybrew.com", + "type": "brewery", + "updated": "2010-07-22 20:00:20", + "description": "Washington DC's first brewpub since prohibition, Capitol City Brewing Co. opened its doors in 1992. Our first location still stands in Downtown DC, at 11th and H St., NW. Our company policy is to bring the fine craft of brewing to every person who lives and visits our region, as well as treating them to a wonderful meal and a great experience.", + "address": [ + "1100 New York Ave, NW" + ], + "geo": { + "accuracy": "ROOFTOP", + "lat": 38.8999, + "lon": -77.0272 + } +} diff --git a/example/geo_doc3.json b/example/geo_doc3.json new file mode 100644 index 0000000..008a467 --- /dev/null +++ b/example/geo_doc3.json @@ -0,0 +1,20 @@ +{ + "name": "Firehouse Grill & Brewery", + "city": "Sunnyvale", + "state": "California", + "code": "94086", + "country": "United States", + "phone": "1-408-773-9500", + "website": "", + "type": "brewery", + "updated": "2010-07-22 20:00:20", + "description": "", + "address": [ + "111 South Murphy Avenue" + ], + "geo": { + "accuracy": "RANGE_INTERPOLATED", + "lat": 37.3775, + "lon": -122.03 + } +} diff --git a/example/geo_doc4.json b/example/geo_doc4.json new file mode 100644 index 0000000..a9655d4 --- /dev/null +++ b/example/geo_doc4.json @@ -0,0 +1,20 @@ +{ + "name": "Hook & Ladder Brewing Company", + "city": "Silver Spring", + "state": "Maryland", + "code": "20910", + "country": "United States", + "phone": "301.565.4522", + "website": "http://www.hookandladderbeer.com", + "type": "brewery", + "updated": "2010-07-22 20:00:20", + "description": "At Hook & Ladder Brewing we believe in great beer in the company of good friends, so we bring you three great beers for your drinking pleasure (please drink responsibly). Each of our beers is carefully crafted with the finest quality ingredients for a distinctive taste we know you will enjoy. Try one tonight, you just might get hooked. Through our own experiences in the fire and rescue service we have chosen the Hook & Ladder as a symbol of pride and honor to pay tribute to the brave men and women who serve and protect our communities.", + "address": [ + "8113 Fenton St." + ], + "geo": { + "accuracy": "ROOFTOP", + "lat": 38.9911, + "lon": -77.0237 + } +} diff --git a/example/geo_doc5.json b/example/geo_doc5.json new file mode 100644 index 0000000..24e07b0 --- /dev/null +++ b/example/geo_doc5.json @@ -0,0 +1,20 @@ +{ + "name": "Jack's Brewing", + "city": "Fremont", + "state": "California", + "code": "94538", + "country": "United States", + "phone": "1-510-796-2036", + "website": "", + "type": "brewery", + "updated": "2010-07-22 20:00:20", + "description": "", + "address": [ + "39176 Argonaut Way" + ], + "geo": { + "accuracy": "ROOFTOP", + "lat": 37.5441, + "lon": -121.988 + } +} diff --git a/example/geo_doc6.json b/example/geo_doc6.json new file mode 100644 index 0000000..3c24f34 --- /dev/null +++ b/example/geo_doc6.json @@ -0,0 +1,20 @@ +{ + "name": "Sweet Water Tavern and Brewery", + "city": "Sterling", + "state": "Virginia", + "code": "20121", + "country": "United States", + "phone": "(703) 449-1108", + "website": "http://www.greatamericanrestaurants.com/sweetMainSter/index.htm", + "type": "brewery", + "updated": "2010-07-22 20:00:20", + "description": "", + "address": [ + "45980 Waterview Plaza" + ], + "geo": { + "accuracy": "RANGE_INTERPOLATED", + "lat": 39.0324, + "lon": -77.4097 + } +} diff --git a/example/geo_index_mapping.json b/example/geo_index_mapping.json new file mode 100644 index 0000000..f067367 --- /dev/null +++ b/example/geo_index_mapping.json @@ -0,0 +1,36 @@ +{ + "types": { + "brewery": { + "properties": { + "name": { + "fields": [ + { + "include_term_vectors": true, + "include_in_all": true, + "index": true, + "store": true, + "analyzer": "keyword", + "type": "text" + } + ], + "dynamic": true, + "enabled": true + }, + "geo": { + "fields": [ + { + "include_term_vectors": true, + "include_in_all": true, + "index": true, + "store": true, + "type": "geopoint" + } + ], + "dynamic": true, + "enabled": true + } + } + } + }, + "default_type": "brewery" +} diff --git a/example/geo_search_request.json b/example/geo_search_request.json new file mode 100644 index 0000000..f49261b --- /dev/null +++ b/example/geo_search_request.json @@ -0,0 +1,55 @@ +{ + "query": { + "location": { + "lon": -122.107799, + "lat": 37.399285 + }, + "distance": "100mi", + "field": "geo" + }, + "size": 10, + "from": 0, + "fields": [ + "*" + ], + "sort": [ + { + "by": "geo_distance", + "field": "geo", + "unit": "mi", + "location": { + "lon": -122.107799, + "lat": 37.399285 + } + } + ], + "facets": { + "State count": { + "size": 10, + "field": "state" + }, + "Updated range": { + "size": 10, + "field": "updated", + "date_ranges": [ + { + "name": "2001 - 2010", + "start": "2001-01-01T00:00:00Z", + "end": "2010-12-31T23:59:59Z" + }, + { + "name": "2011 - 2020", + "start": "2011-01-01T00:00:00Z", + "end": "2020-12-31T23:59:59Z" + } + ] + } + }, + "highlight": { + "style": "html", + "fields": [ + "title", + "text" + ] + } +} diff --git a/example/bulk_delete_wiki.json b/example/wiki_bulk_delete.json similarity index 100% rename from example/bulk_delete_wiki.json rename to example/wiki_bulk_delete.json diff --git a/example/bulk_index_wiki.json b/example/wiki_bulk_index.json similarity index 100% rename from example/bulk_index_wiki.json rename to example/wiki_bulk_index.json diff --git a/example/doc_arwiki_1.json b/example/wiki_doc_arwiki_1.json similarity index 100% rename from example/doc_arwiki_1.json rename to example/wiki_doc_arwiki_1.json diff --git a/example/doc_bgwiki_1.json b/example/wiki_doc_bgwiki_1.json similarity index 100% rename from example/doc_bgwiki_1.json rename to example/wiki_doc_bgwiki_1.json diff --git a/example/doc_cawiki_1.json b/example/wiki_doc_cawiki_1.json similarity index 100% rename from example/doc_cawiki_1.json rename to example/wiki_doc_cawiki_1.json diff --git a/example/doc_cswiki_1.json b/example/wiki_doc_cswiki_1.json similarity index 100% rename from example/doc_cswiki_1.json rename to example/wiki_doc_cswiki_1.json diff --git a/example/doc_dawiki_1.json b/example/wiki_doc_dawiki_1.json similarity index 100% rename from example/doc_dawiki_1.json rename to example/wiki_doc_dawiki_1.json diff --git a/example/doc_dewiki_1.json b/example/wiki_doc_dewiki_1.json similarity index 100% rename from example/doc_dewiki_1.json rename to example/wiki_doc_dewiki_1.json diff --git a/example/doc_elwiki_1.json b/example/wiki_doc_elwiki_1.json similarity index 100% rename from example/doc_elwiki_1.json rename to example/wiki_doc_elwiki_1.json diff --git a/example/doc_enwiki_1.json b/example/wiki_doc_enwiki_1.json similarity index 100% rename from example/doc_enwiki_1.json rename to example/wiki_doc_enwiki_1.json diff --git a/example/doc_eswiki_1.json b/example/wiki_doc_eswiki_1.json similarity index 100% rename from example/doc_eswiki_1.json rename to example/wiki_doc_eswiki_1.json diff --git a/example/doc_fawiki_1.json b/example/wiki_doc_fawiki_1.json similarity index 100% rename from example/doc_fawiki_1.json rename to example/wiki_doc_fawiki_1.json diff --git a/example/doc_fiwiki_1.json b/example/wiki_doc_fiwiki_1.json similarity index 100% rename from example/doc_fiwiki_1.json rename to example/wiki_doc_fiwiki_1.json diff --git a/example/doc_frwiki_1.json b/example/wiki_doc_frwiki_1.json similarity index 100% rename from example/doc_frwiki_1.json rename to example/wiki_doc_frwiki_1.json diff --git a/example/doc_gawiki_1.json b/example/wiki_doc_gawiki_1.json similarity index 100% rename from example/doc_gawiki_1.json rename to example/wiki_doc_gawiki_1.json diff --git a/example/doc_glwiki_1.json b/example/wiki_doc_glwiki_1.json similarity index 100% rename from example/doc_glwiki_1.json rename to example/wiki_doc_glwiki_1.json diff --git a/example/doc_guwiki_1.json b/example/wiki_doc_guwiki_1.json similarity index 100% rename from example/doc_guwiki_1.json rename to example/wiki_doc_guwiki_1.json diff --git a/example/doc_hiwiki_1.json b/example/wiki_doc_hiwiki_1.json similarity index 100% rename from example/doc_hiwiki_1.json rename to example/wiki_doc_hiwiki_1.json diff --git a/example/doc_huwiki_1.json b/example/wiki_doc_huwiki_1.json similarity index 100% rename from example/doc_huwiki_1.json rename to example/wiki_doc_huwiki_1.json diff --git a/example/doc_hywiki_1.json b/example/wiki_doc_hywiki_1.json similarity index 100% rename from example/doc_hywiki_1.json rename to example/wiki_doc_hywiki_1.json diff --git a/example/doc_idwiki_1.json b/example/wiki_doc_idwiki_1.json similarity index 100% rename from example/doc_idwiki_1.json rename to example/wiki_doc_idwiki_1.json diff --git a/example/doc_itwiki_1.json b/example/wiki_doc_itwiki_1.json similarity index 100% rename from example/doc_itwiki_1.json rename to example/wiki_doc_itwiki_1.json diff --git a/example/doc_jawiki_1.json b/example/wiki_doc_jawiki_1.json similarity index 100% rename from example/doc_jawiki_1.json rename to example/wiki_doc_jawiki_1.json diff --git a/example/doc_knwiki_1.json b/example/wiki_doc_knwiki_1.json similarity index 100% rename from example/doc_knwiki_1.json rename to example/wiki_doc_knwiki_1.json diff --git a/example/doc_kowiki_1.json b/example/wiki_doc_kowiki_1.json similarity index 100% rename from example/doc_kowiki_1.json rename to example/wiki_doc_kowiki_1.json diff --git a/example/doc_mlwiki_1.json b/example/wiki_doc_mlwiki_1.json similarity index 100% rename from example/doc_mlwiki_1.json rename to example/wiki_doc_mlwiki_1.json diff --git a/example/doc_nlwiki_1.json b/example/wiki_doc_nlwiki_1.json similarity index 100% rename from example/doc_nlwiki_1.json rename to example/wiki_doc_nlwiki_1.json diff --git a/example/doc_nowiki_1.json b/example/wiki_doc_nowiki_1.json similarity index 100% rename from example/doc_nowiki_1.json rename to example/wiki_doc_nowiki_1.json diff --git a/example/doc_pswiki_1.json b/example/wiki_doc_pswiki_1.json similarity index 100% rename from example/doc_pswiki_1.json rename to example/wiki_doc_pswiki_1.json diff --git a/example/doc_ptwiki_1.json b/example/wiki_doc_ptwiki_1.json similarity index 100% rename from example/doc_ptwiki_1.json rename to example/wiki_doc_ptwiki_1.json diff --git a/example/doc_rowiki_1.json b/example/wiki_doc_rowiki_1.json similarity index 100% rename from example/doc_rowiki_1.json rename to example/wiki_doc_rowiki_1.json diff --git a/example/doc_ruwiki_1.json b/example/wiki_doc_ruwiki_1.json similarity index 100% rename from example/doc_ruwiki_1.json rename to example/wiki_doc_ruwiki_1.json diff --git a/example/doc_svwiki_1.json b/example/wiki_doc_svwiki_1.json similarity index 100% rename from example/doc_svwiki_1.json rename to example/wiki_doc_svwiki_1.json diff --git a/example/doc_tawiki_1.json b/example/wiki_doc_tawiki_1.json similarity index 100% rename from example/doc_tawiki_1.json rename to example/wiki_doc_tawiki_1.json diff --git a/example/doc_tewiki_1.json b/example/wiki_doc_tewiki_1.json similarity index 100% rename from example/doc_tewiki_1.json rename to example/wiki_doc_tewiki_1.json diff --git a/example/doc_thwiki_1.json b/example/wiki_doc_thwiki_1.json similarity index 100% rename from example/doc_thwiki_1.json rename to example/wiki_doc_thwiki_1.json diff --git a/example/doc_trwiki_1.json b/example/wiki_doc_trwiki_1.json similarity index 100% rename from example/doc_trwiki_1.json rename to example/wiki_doc_trwiki_1.json diff --git a/example/doc_zhwiki_1.json b/example/wiki_doc_zhwiki_1.json similarity index 100% rename from example/doc_zhwiki_1.json rename to example/wiki_doc_zhwiki_1.json diff --git a/example/index_mapping.json b/example/wiki_index_mapping.json similarity index 100% rename from example/index_mapping.json rename to example/wiki_index_mapping.json diff --git a/example/search_request.json b/example/wiki_search_request.json similarity index 100% rename from example/search_request.json rename to example/wiki_search_request.json