-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove use of old Law/Policy labels in search (#165)
- Loading branch information
Joel Wright
authored
Sep 18, 2023
1 parent
44c6cf3
commit 87def48
Showing
11 changed files
with
889 additions
and
354 deletions.
There are no files selected for viewing
This file contains 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
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,109 @@ | ||
{"navigator_test_core":{"mappings":{"properties":{"document_category":{"type":"keyword"},"document_cdn_object":{"type":"keyword"},"document_content_type":{"type":"keyword"},"document_date":{"type":"date","format":"dd/MM/yyyy"},"document_description":{"type":"keyword","normalizer":"folding"},"document_description_embedding":{"type":"knn_vector","dimension":768,"method":{"engine":"nmslib","space_type":"innerproduct","name":"hnsw","parameters":{"ef_construction":512,"m":16}}},"document_geography":{"type":"keyword"},"document_id":{"type":"keyword","normalizer":"folding"},"document_md5_sum":{"type":"keyword"},"document_name":{"type":"keyword","normalizer":"folding"},"document_name_and_slug":{"type":"keyword","eager_global_ordinals":true,"normalizer":"folding"},"document_sectors":{"type":"keyword"},"document_slug":{"type":"keyword"},"document_source":{"type":"keyword"},"document_source_url":{"type":"keyword"},"document_type":{"type":"keyword"},"for_search_document_description":{"type":"text","analyzer":"folding"},"for_search_document_name":{"type":"text","analyzer":"folding"},"text":{"type":"text","analyzer":"folding"},"text_block_coords":{"type":"keyword"},"text_block_id":{"type":"keyword"},"text_block_page":{"type":"integer"},"text_embedding":{"type":"knn_vector","dimension":768,"method":{"engine":"nmslib","space_type":"innerproduct","name":"hnsw","parameters":{"ef_construction":512,"m":16}}},"translated":{"type":"boolean"}}}}} | ||
{ | ||
"navigator_test_core": { | ||
"mappings": { | ||
"properties": { | ||
"document_category": { | ||
"type": "keyword" | ||
}, | ||
"document_cdn_object": { | ||
"type": "keyword" | ||
}, | ||
"document_content_type": { | ||
"type": "keyword" | ||
}, | ||
"document_date": { | ||
"type": "date", | ||
"format": "dd/MM/yyyy" | ||
}, | ||
"document_description": { | ||
"type": "keyword", | ||
"normalizer": "folding" | ||
}, | ||
"document_description_embedding": { | ||
"type": "knn_vector", | ||
"dimension": 768, | ||
"method": { | ||
"engine": "nmslib", | ||
"space_type": "innerproduct", | ||
"name": "hnsw", | ||
"parameters": { | ||
"ef_construction": 512, | ||
"m": 16 | ||
} | ||
} | ||
}, | ||
"document_geography": { | ||
"type": "keyword" | ||
}, | ||
"document_id": { | ||
"type": "keyword", | ||
"normalizer": "folding" | ||
}, | ||
"document_md5_sum": { | ||
"type": "keyword" | ||
}, | ||
"document_name": { | ||
"type": "keyword", | ||
"normalizer": "folding" | ||
}, | ||
"document_name_and_slug": { | ||
"type": "keyword", | ||
"eager_global_ordinals": true, | ||
"normalizer": "folding" | ||
}, | ||
"document_sectors": { | ||
"type": "keyword" | ||
}, | ||
"document_slug": { | ||
"type": "keyword" | ||
}, | ||
"document_source": { | ||
"type": "keyword" | ||
}, | ||
"document_source_url": { | ||
"type": "keyword" | ||
}, | ||
"document_type": { | ||
"type": "keyword" | ||
}, | ||
"for_search_document_description": { | ||
"type": "text", | ||
"analyzer": "folding" | ||
}, | ||
"for_search_document_name": { | ||
"type": "text", | ||
"analyzer": "folding" | ||
}, | ||
"text": { | ||
"type": "text", | ||
"analyzer": "folding" | ||
}, | ||
"text_block_coords": { | ||
"type": "keyword" | ||
}, | ||
"text_block_id": { | ||
"type": "keyword" | ||
}, | ||
"text_block_page": { | ||
"type": "integer" | ||
}, | ||
"text_embedding": { | ||
"type": "knn_vector", | ||
"dimension": 768, | ||
"method": { | ||
"engine": "nmslib", | ||
"space_type": "innerproduct", | ||
"name": "hnsw", | ||
"parameters": { | ||
"ef_construction": 512, | ||
"m": 16 | ||
} | ||
} | ||
}, | ||
"translated": { | ||
"type": "boolean" | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
"{\"navigator_test_core\":{\"settings\":{\"index\":{\"refresh_interval\":\"1s\",\"number_of_shards\":\"1\",\"knn.algo_param\":{\"ef_search\":\"100\"},\"knn\":\"true\",\"analysis\":{\"filter\":{\"ascii_folding_preserve_original\":{\"type\":\"asciifolding\",\"preserve_original\":\"true\"}},\"normalizer\":{\"folding\":{\"filter\":[\"lowercase\",\"asciifolding\"],\"type\":\"custom\",\"char_filter\":[]}},\"analyzer\":{\"folding\":{\"filter\":[\"lowercase\",\"ascii_folding_preserve_original\"],\"tokenizer\":\"standard\"}}},\"number_of_replicas\":\"2\"}}}}" | ||
"{\"navigator_test_core\":{\"settings\":{\"index\":{\"refresh_interval\":\"1s\",\"number_of_shards\":\"1\",\"knn.algo_param\":{\"ef_search\":\"100\"},\"knn\":\"true\",\"analysis\":{\"filter\":{\"ascii_folding_preserve_original\":{\"type\":\"asciifolding\",\"preserve_original\":\"true\"}},\"normalizer\":{\"folding\":{\"filter\":[\"lowercase\",\"asciifolding\"],\"type\":\"custom\",\"char_filter\":[]}},\"analyzer\":{\"folding\":{\"filter\":[\"lowercase\",\"ascii_folding_preserve_original\"],\"tokenizer\":\"standard\"}}},\"number_of_replicas\":\"2\"}}}}" |
Large diffs are not rendered by default.
Oops, something went wrong.
110 changes: 109 additions & 1 deletion
110
tests/data/navigator_test_htmls_non_translated.mapping.json
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,109 @@ | ||
{"navigator_test_htmls_non_translated":{"mappings":{"properties":{"document_category":{"type":"keyword"},"document_cdn_object":{"type":"keyword"},"document_content_type":{"type":"keyword"},"document_date":{"type":"date","format":"dd/MM/yyyy"},"document_description":{"type":"keyword","normalizer":"folding"},"document_description_embedding":{"type":"knn_vector","dimension":768,"method":{"engine":"nmslib","space_type":"innerproduct","name":"hnsw","parameters":{"ef_construction":512,"m":16}}},"document_geography":{"type":"keyword"},"document_id":{"type":"keyword","normalizer":"folding"},"document_md5_sum":{"type":"keyword"},"document_name":{"type":"keyword","normalizer":"folding"},"document_name_and_slug":{"type":"keyword","eager_global_ordinals":true,"normalizer":"folding"},"document_sectors":{"type":"keyword"},"document_slug":{"type":"keyword"},"document_source":{"type":"keyword"},"document_source_url":{"type":"keyword"},"document_type":{"type":"keyword"},"for_search_document_description":{"type":"text","analyzer":"folding"},"for_search_document_name":{"type":"text","analyzer":"folding"},"text":{"type":"text","analyzer":"folding"},"text_block_coords":{"type":"keyword"},"text_block_id":{"type":"keyword"},"text_block_page":{"type":"integer"},"text_embedding":{"type":"knn_vector","dimension":768,"method":{"engine":"nmslib","space_type":"innerproduct","name":"hnsw","parameters":{"ef_construction":512,"m":16}}},"translated":{"type":"boolean"}}}}} | ||
{ | ||
"navigator_test_htmls_non_translated": { | ||
"mappings": { | ||
"properties": { | ||
"document_category": { | ||
"type": "keyword" | ||
}, | ||
"document_cdn_object": { | ||
"type": "keyword" | ||
}, | ||
"document_content_type": { | ||
"type": "keyword" | ||
}, | ||
"document_date": { | ||
"type": "date", | ||
"format": "dd/MM/yyyy" | ||
}, | ||
"document_description": { | ||
"type": "keyword", | ||
"normalizer": "folding" | ||
}, | ||
"document_description_embedding": { | ||
"type": "knn_vector", | ||
"dimension": 768, | ||
"method": { | ||
"engine": "nmslib", | ||
"space_type": "innerproduct", | ||
"name": "hnsw", | ||
"parameters": { | ||
"ef_construction": 512, | ||
"m": 16 | ||
} | ||
} | ||
}, | ||
"document_geography": { | ||
"type": "keyword" | ||
}, | ||
"document_id": { | ||
"type": "keyword", | ||
"normalizer": "folding" | ||
}, | ||
"document_md5_sum": { | ||
"type": "keyword" | ||
}, | ||
"document_name": { | ||
"type": "keyword", | ||
"normalizer": "folding" | ||
}, | ||
"document_name_and_slug": { | ||
"type": "keyword", | ||
"eager_global_ordinals": true, | ||
"normalizer": "folding" | ||
}, | ||
"document_sectors": { | ||
"type": "keyword" | ||
}, | ||
"document_slug": { | ||
"type": "keyword" | ||
}, | ||
"document_source": { | ||
"type": "keyword" | ||
}, | ||
"document_source_url": { | ||
"type": "keyword" | ||
}, | ||
"document_type": { | ||
"type": "keyword" | ||
}, | ||
"for_search_document_description": { | ||
"type": "text", | ||
"analyzer": "folding" | ||
}, | ||
"for_search_document_name": { | ||
"type": "text", | ||
"analyzer": "folding" | ||
}, | ||
"text": { | ||
"type": "text", | ||
"analyzer": "folding" | ||
}, | ||
"text_block_coords": { | ||
"type": "keyword" | ||
}, | ||
"text_block_id": { | ||
"type": "keyword" | ||
}, | ||
"text_block_page": { | ||
"type": "integer" | ||
}, | ||
"text_embedding": { | ||
"type": "knn_vector", | ||
"dimension": 768, | ||
"method": { | ||
"engine": "nmslib", | ||
"space_type": "innerproduct", | ||
"name": "hnsw", | ||
"parameters": { | ||
"ef_construction": 512, | ||
"m": 16 | ||
} | ||
} | ||
}, | ||
"translated": { | ||
"type": "boolean" | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,109 @@ | ||
{"navigator_test_htmls_translated":{"mappings":{"properties":{"document_category":{"type":"keyword"},"document_cdn_object":{"type":"keyword"},"document_content_type":{"type":"keyword"},"document_date":{"type":"date","format":"dd/MM/yyyy"},"document_description":{"type":"keyword","normalizer":"folding"},"document_description_embedding":{"type":"knn_vector","dimension":768,"method":{"engine":"nmslib","space_type":"innerproduct","name":"hnsw","parameters":{"ef_construction":512,"m":16}}},"document_geography":{"type":"keyword"},"document_id":{"type":"keyword","normalizer":"folding"},"document_md5_sum":{"type":"keyword"},"document_name":{"type":"keyword","normalizer":"folding"},"document_name_and_slug":{"type":"keyword","eager_global_ordinals":true,"normalizer":"folding"},"document_sectors":{"type":"keyword"},"document_slug":{"type":"keyword"},"document_source":{"type":"keyword"},"document_source_url":{"type":"keyword"},"document_type":{"type":"keyword"},"for_search_document_description":{"type":"text","analyzer":"folding"},"for_search_document_name":{"type":"text","analyzer":"folding"},"text":{"type":"text","analyzer":"folding"},"text_block_coords":{"type":"keyword"},"text_block_id":{"type":"keyword"},"text_block_page":{"type":"integer"},"text_embedding":{"type":"knn_vector","dimension":768,"method":{"engine":"nmslib","space_type":"innerproduct","name":"hnsw","parameters":{"ef_construction":512,"m":16}}},"translated":{"type":"boolean"}}}}} | ||
{ | ||
"navigator_test_htmls_translated": { | ||
"mappings": { | ||
"properties": { | ||
"document_category": { | ||
"type": "keyword" | ||
}, | ||
"document_cdn_object": { | ||
"type": "keyword" | ||
}, | ||
"document_content_type": { | ||
"type": "keyword" | ||
}, | ||
"document_date": { | ||
"type": "date", | ||
"format": "dd/MM/yyyy" | ||
}, | ||
"document_description": { | ||
"type": "keyword", | ||
"normalizer": "folding" | ||
}, | ||
"document_description_embedding": { | ||
"type": "knn_vector", | ||
"dimension": 768, | ||
"method": { | ||
"engine": "nmslib", | ||
"space_type": "innerproduct", | ||
"name": "hnsw", | ||
"parameters": { | ||
"ef_construction": 512, | ||
"m": 16 | ||
} | ||
} | ||
}, | ||
"document_geography": { | ||
"type": "keyword" | ||
}, | ||
"document_id": { | ||
"type": "keyword", | ||
"normalizer": "folding" | ||
}, | ||
"document_md5_sum": { | ||
"type": "keyword" | ||
}, | ||
"document_name": { | ||
"type": "keyword", | ||
"normalizer": "folding" | ||
}, | ||
"document_name_and_slug": { | ||
"type": "keyword", | ||
"eager_global_ordinals": true, | ||
"normalizer": "folding" | ||
}, | ||
"document_sectors": { | ||
"type": "keyword" | ||
}, | ||
"document_slug": { | ||
"type": "keyword" | ||
}, | ||
"document_source": { | ||
"type": "keyword" | ||
}, | ||
"document_source_url": { | ||
"type": "keyword" | ||
}, | ||
"document_type": { | ||
"type": "keyword" | ||
}, | ||
"for_search_document_description": { | ||
"type": "text", | ||
"analyzer": "folding" | ||
}, | ||
"for_search_document_name": { | ||
"type": "text", | ||
"analyzer": "folding" | ||
}, | ||
"text": { | ||
"type": "text", | ||
"analyzer": "folding" | ||
}, | ||
"text_block_coords": { | ||
"type": "keyword" | ||
}, | ||
"text_block_id": { | ||
"type": "keyword" | ||
}, | ||
"text_block_page": { | ||
"type": "integer" | ||
}, | ||
"text_embedding": { | ||
"type": "knn_vector", | ||
"dimension": 768, | ||
"method": { | ||
"engine": "nmslib", | ||
"space_type": "innerproduct", | ||
"name": "hnsw", | ||
"parameters": { | ||
"ef_construction": 512, | ||
"m": 16 | ||
} | ||
} | ||
}, | ||
"translated": { | ||
"type": "boolean" | ||
} | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.