adding more analysis

parent f222d36c
Pipeline #41210 failed with stages
in 52 minutes and 45 seconds
......@@ -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))
}
}
......@@ -37,7 +37,7 @@ object Calculation {
Seq(
ES.textField("main_file_uri").analyzer("pathSplitter"),
ES.textField("secondary_file_uris").analyzer("pathSplitter"),
ES.keywordField("repository_filepaths").index(false),
ES.textField("repository_filepaths").analyzer("pathSplitter"),
ES.keywordField("repository_archive_gid"),
ES.longField("repository_calc_id").stored(true),
ES.keywordField("repository_calc_pid").stored(true),
......
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