Commit 6dc92db5 authored by Maud Marty's avatar Maud Marty
Browse files

fix: set dynamic mapping to false instead of strict + ignore xref counting

parent 4e3ca6f3
{
"dynamic": "strict",
"dynamic": false,
"properties": {
"germplasmAttributeURI": {
"type": "keyword"
......
{
"dynamic": "strict",
"dynamic": false,
"properties": {
"germplasmPedigreeURI": {
"type": "keyword"
......
{
"dynamic": "strict",
"dynamic": false,
"properties": {
"germplasmProgenyURI": {
"type": "keyword"
......
{
"dynamic": "strict",
"dynamic": false,
"properties": {
"germplasmURI": {
"type": "keyword"
......
{
"dynamic": "strict",
"dynamic": false,
"properties": {
"locationURI": {
"type": "keyword"
......
{
"dynamic": "strict",
"dynamic": false,
"properties": {
"programURI": {
"type": "keyword"
......
{
"dynamic": "strict",
"dynamic": false,
"properties": {
"studyURI": {
"type": "keyword"
......
{
"dynamic": "strict",
"dynamic": false,
"properties": {
"trialURI": {
"type": "keyword"
......
......@@ -182,7 +182,7 @@ for DOCUMENT_TYPE in ${DOCUMENT_TYPES}; do
# Check indexed data
echo -e "* Check data indexed from ${DATA_DIR} into ${INDEX_NAME}..."
# skip some documents because they contain nested objects that distort the count
if [[ "${DOCUMENT_TYPE}" != "germplasmAttribute" && "${DOCUMENT_TYPE}" != "trial" ]]; then
if [[ "${DOCUMENT_TYPE}" != "germplasmAttribute" && "${DOCUMENT_TYPE}" != "trial" && "${DOCUMENT_TYPE}" != "xref" ]]; then
COUNT_EXTRACTED_DOCS=0
for FILE in $(find ${DATA_DIR} -name "${DOCUMENT_TYPE}-*.json.gz"); do
COUNT_FILE_DOCS=$(zcat ${FILE} | grep -o "\"@id\"" | wc -l)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment