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
nomad-lab
nomad-lab-base
Commits
ca4514b8
Commit
ca4514b8
authored
Dec 21, 2018
by
Mohamed, Fawzi Roberto (fawzi)
Browse files
adding more analysis
parent
f222d36c
Pipeline
#41210
failed with stages
in 52 minutes and 45 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
repo/repo-base/src/main/scala/eu/nomad_lab/repo/CalculationElasticInserter.scala
View file @
ca4514b8
...
...
@@ -131,6 +131,6 @@ class CalculationElasticInserter(
* creates an index for the calculation data
*/
def
createIndex
(
index
:
String
)
:
Future
[
CreateIndexResponse
]
=
{
client
.
execute
(
dsl
.
createIndex
(
index
).
mappings
(
Calculation
.
mapping
))
client
.
execute
(
dsl
.
createIndex
(
index
).
mappings
(
Calculation
.
mapping
)
.
analysis
(
Calculation
.
analysis
)
)
}
}
repo/repo-base/src/main/scala/eu/nomad_lab/repo/objects/Calculation.scala
View file @
ca4514b8
...
...
@@ -37,7 +37,7 @@ object Calculation {
Seq
(
ES
.
textField
(
"main_file_uri"
).
analyzer
(
"pathSplitter"
),
ES
.
textField
(
"secondary_file_uris"
).
analyzer
(
"pathSplitter"
),
ES
.
keyword
Field
(
"repository_filepaths"
).
index
(
false
),
ES
.
text
Field
(
"repository_filepaths"
).
analyzer
(
"pathSplitter"
),
ES
.
keywordField
(
"repository_archive_gid"
),
ES
.
longField
(
"repository_calc_id"
).
stored
(
true
),
ES
.
keywordField
(
"repository_calc_pid"
).
stored
(
true
),
...
...
Write
Preview
Supports
Markdown
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