Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
urgi-is
FAIDARE
Commits
6dc92db5
Commit
6dc92db5
authored
Apr 20, 2022
by
Maud Marty
Browse files
fix: set dynamic mapping to false instead of strict + ignore xref counting
parent
4e3ca6f3
Changes
9
Hide whitespace changes
Inline
Side-by-side
backend/src/test/resources/fr/inra/urgi/faidare/repository/es/setup/index/germplasmAttribute_mapping.json
View file @
6dc92db5
{
"dynamic"
:
"strict"
,
"dynamic"
:
false
,
"properties"
:
{
"germplasmAttributeURI"
:
{
"type"
:
"keyword"
...
...
backend/src/test/resources/fr/inra/urgi/faidare/repository/es/setup/index/germplasmPedigree_mapping.json
View file @
6dc92db5
{
"dynamic"
:
"strict"
,
"dynamic"
:
false
,
"properties"
:
{
"germplasmPedigreeURI"
:
{
"type"
:
"keyword"
...
...
backend/src/test/resources/fr/inra/urgi/faidare/repository/es/setup/index/germplasmProgeny_mapping.json
View file @
6dc92db5
{
"dynamic"
:
"strict"
,
"dynamic"
:
false
,
"properties"
:
{
"germplasmProgenyURI"
:
{
"type"
:
"keyword"
...
...
backend/src/test/resources/fr/inra/urgi/faidare/repository/es/setup/index/germplasm_mapping.json
View file @
6dc92db5
{
"dynamic"
:
"strict"
,
"dynamic"
:
false
,
"properties"
:
{
"germplasmURI"
:
{
"type"
:
"keyword"
...
...
backend/src/test/resources/fr/inra/urgi/faidare/repository/es/setup/index/location_mapping.json
View file @
6dc92db5
{
"dynamic"
:
"strict"
,
"dynamic"
:
false
,
"properties"
:
{
"locationURI"
:
{
"type"
:
"keyword"
...
...
backend/src/test/resources/fr/inra/urgi/faidare/repository/es/setup/index/program_mapping.json
View file @
6dc92db5
{
"dynamic"
:
"strict"
,
"dynamic"
:
false
,
"properties"
:
{
"programURI"
:
{
"type"
:
"keyword"
...
...
backend/src/test/resources/fr/inra/urgi/faidare/repository/es/setup/index/study_mapping.json
View file @
6dc92db5
{
"dynamic"
:
"strict"
,
"dynamic"
:
false
,
"properties"
:
{
"studyURI"
:
{
"type"
:
"keyword"
...
...
backend/src/test/resources/fr/inra/urgi/faidare/repository/es/setup/index/trial_mapping.json
View file @
6dc92db5
{
"dynamic"
:
"strict"
,
"dynamic"
:
false
,
"properties"
:
{
"trialURI"
:
{
"type"
:
"keyword"
...
...
scripts/harvest.sh
View file @
6dc92db5
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment