diff --git a/.github/workflows/server-cicd.yml b/.github/workflows/server-cicd.yml index d3b02dd24..ed8b46c73 100644 --- a/.github/workflows/server-cicd.yml +++ b/.github/workflows/server-cicd.yml @@ -29,7 +29,9 @@ jobs: run: | git config --global user.email "github-actions[bot]@users.noreply.github.com" git config --global user.name "github-actions[bot]" - - run: cargo test --workspace + - name: Setup | install insta + run: curl -LsSf https://insta.rs/install.sh | sh + - run: cargo insta test --workspace working-directory: server linting: runs-on: ubuntu-latest diff --git a/.prettierignore b/.prettierignore index 8f9f9f03b..708e4293c 100644 --- a/.prettierignore +++ b/.prettierignore @@ -6,5 +6,4 @@ data/sources/15_patches-rooms_tumonline.yaml data/sources/45_custom-maps.yaml data/sources/46_overlay-maps.yaml data/sources/img/img-sources.yaml -server/main-api/test/test-queries.yaml deployment/k3s diff --git a/server/Cargo.lock b/server/Cargo.lock index 4a5b9532e..6aac75dd2 100644 --- a/server/Cargo.lock +++ b/server/Cargo.lock @@ -746,6 +746,18 @@ version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e763eef8846b13b380f37dfecda401770b0ca4e56e95170237bd7c25c7db3582" +[[package]] +name = "console" +version = "0.15.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0e1f83fc076bd6dd27517eacdf25fef6c4dfe5f1d7448bafaaf3a26f13b5e4eb" +dependencies = [ + "encode_unicode", + "lazy_static", + "libc", + "windows-sys 0.52.0", +] + [[package]] name = "const-oid" version = "0.9.6" @@ -1049,6 +1061,12 @@ dependencies = [ "serde", ] +[[package]] +name = "encode_unicode" +version = "0.3.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a357d28ed41a50f9c765dbfe56cbc04a64e53e5fc58ba79fbc34c10ef3df831f" + [[package]] name = "encoding_rs" version = "0.8.34" @@ -1937,6 +1955,21 @@ dependencies = [ "serde", ] +[[package]] +name = "insta" +version = "1.39.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "810ae6042d48e2c9e9215043563a58a80b877bc863228a74cf10c49d4620a6f5" +dependencies = [ + "console", + "lazy_static", + "linked-hash-map", + "pest", + "pest_derive", + "serde", + "similar", +] + [[package]] name = "instant" version = "0.1.13" @@ -2386,6 +2419,7 @@ dependencies = [ "futures", "image", "imageproc", + "insta", "jsonwebtoken", "lazy_static", "logos", @@ -2829,6 +2863,51 @@ version = "2.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e3148f5046208a5d56bcfc03053e3ca6334e51da8dfb19b6cdc8b306fae3283e" +[[package]] +name = "pest" +version = "2.7.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cd53dff83f26735fdc1ca837098ccf133605d794cdae66acfc2bfac3ec809d95" +dependencies = [ + "memchr", + "thiserror", + "ucd-trie", +] + +[[package]] +name = "pest_derive" +version = "2.7.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2a548d2beca6773b1c244554d36fcf8548a8a58e74156968211567250e48e49a" +dependencies = [ + "pest", + "pest_generator", +] + +[[package]] +name = "pest_generator" +version = "2.7.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3c93a82e8d145725dcbaf44e5ea887c8a869efdcc28706df2d08c69e17077183" +dependencies = [ + "pest", + "pest_meta", + "proc-macro2", + "quote", + "syn 2.0.68", +] + +[[package]] +name = "pest_meta" +version = "2.7.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a941429fea7e08bedec25e4f6785b6ffaacc6b755da98df5ef3e7dcf4a124c4f" +dependencies = [ + "once_cell", + "pest", + "sha2", +] + [[package]] name = "pin-project" version = "1.1.5" @@ -3984,6 +4063,12 @@ dependencies = [ "quote", ] +[[package]] +name = "similar" +version = "2.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fa42c91313f1d05da9b26f267f931cf178d4aba455b4c4622dd7355eb80c6640" + [[package]] name = "simple_asn1" version = "0.6.2" @@ -4867,6 +4952,12 @@ version = "1.17.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "42ff0bf0c66b8238c6f3b578df37d0b7848e55df8577b3f74f92a69acceeb825" +[[package]] +name = "ucd-trie" +version = "0.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ed646292ffc8188ef8ea4d1e0e0150fb15a5c2e12ad9b8fc191ae7a8a7f3c4b9" + [[package]] name = "uname" version = "0.1.1" diff --git a/server/Cargo.toml b/server/Cargo.toml index 1b3f8b413..6b4001269 100644 --- a/server/Cargo.toml +++ b/server/Cargo.toml @@ -20,3 +20,8 @@ opt-level = 3 # https://github.com/launchbadge/sqlx?tab=readme-ov-file#compile-time-verification [profile.dev.package.sqlx-macros] opt-level = 3 + +# https://insta.rs/docs/quickstart/ +[profile.dev.package] +insta.opt-level = 3 +similar.opt-level = 3 diff --git a/server/main-api/Cargo.toml b/server/main-api/Cargo.toml index e7031fe07..a0ecdd5e4 100644 --- a/server/main-api/Cargo.toml +++ b/server/main-api/Cargo.toml @@ -73,6 +73,7 @@ base64 = "0.22.1" time = "0.3.36" [dev-dependencies] +insta = { version = "1.39.0", features = ["yaml", "json", "redactions"] } pretty_assertions = "1.4.0" testcontainers = { version = "0.20.0", features = ["watchdog"] } testcontainers-modules = { version = "0.8.0", features = ["postgres", "meilisearch"] } diff --git a/server/main-api/README.md b/server/main-api/README.md index 9529b964d..160e6551e 100644 --- a/server/main-api/README.md +++ b/server/main-api/README.md @@ -121,6 +121,15 @@ some fuzzing-goals are automatically tested in our CI. You can exchange `--base-url=http://localhost:3003` to `--base-url=https://nav.tum.de` for the full public API, or restrict your scope using an option like `--endpoint=/api/search`. +### Approval tests + +Some of our tests are approval tests. +Please install [insta](https://insta.rs/docs/quickstart/) to have a working environment. + +You can then run `cargo insta test` instead of `cargo test` to review the needed changes. +If you don't want to do this, using the version we provide via CI is fine, but the DX is way better with the correct +tooling. + ## License This program is free software: you can redistribute it and/or modify diff --git a/server/main-api/src/calendar/mod.rs b/server/main-api/src/calendar/mod.rs index 53ebadaa6..448a7cd9a 100644 --- a/server/main-api/src/calendar/mod.rs +++ b/server/main-api/src/calendar/mod.rs @@ -294,12 +294,10 @@ mod tests { .insert_header(ContentType::json()) .to_request(); let (_, resp) = test::call_service(&app, req).await.into_parts(); - run_testcase( - resp, - 400, - "Json deserialize error: EOF while parsing a value at line 1 column 0", - ) - .await; + + let (status, actual) = run_testcase(resp).await; + assert_eq!(status, 400); + insta::assert_snapshot!(actual, @r###""Json deserialize error: EOF while parsing a value at line 1 column 0""###); } { // missing required query parameters @@ -314,7 +312,10 @@ mod tests { .insert_header(ContentType::json()) .to_request(); let (_, resp) = test::call_service(&app, req).await.into_parts(); - run_testcase(resp, 400, "No id requested").await; + + let (status, actual) = run_testcase(resp).await; + assert_eq!(status, 400); + insta::assert_snapshot!(actual, @r###""No id requested""###); } { // way too many parameters @@ -329,7 +330,10 @@ mod tests { .insert_header(ContentType::json()) .to_request(); let (_, resp) = test::call_service(&app, req).await.into_parts(); - run_testcase(resp, 400, "Too many ids to query. We suspect that users don't need this. If you need this limit increased, please send us a message").await; + + let (status, actual) = run_testcase(resp).await; + assert_eq!(status, 400); + insta::assert_snapshot!(actual, @r###""Too many ids to query. We suspect that users don't need this. If you need this limit increased, please send us a message""###); } { // room without a calendar @@ -344,7 +348,10 @@ mod tests { .insert_header(ContentType::json()) .to_request(); let (_, resp) = test::call_service(&app, req).await.into_parts(); - run_testcase(resp, 404, "Room 5121.EG.002/None does not have a calendar").await; + + let (status, actual) = run_testcase(resp).await; + assert_eq!(status, 404); + insta::assert_snapshot!(actual, @r###""Room 5121.EG.002/None does not have a calendar""###); } { // show all entries of 5121.EG.003 @@ -359,43 +366,10 @@ mod tests { .insert_header(ContentType::json()) .to_request(); let (_, resp) = test::call_service(&app, req).await.into_parts(); - let expected = serde_json::json!({ - "5121.EG.003": { - "events": [ - { - "id": 1, - "room_code": "5121.EG.003", - "start_at": "2012-01-01T01:00:00Z", - "end_at": "2014-01-01T01:00:00Z", - "stp_title_de": "Quantenteleportation", - "stp_title_en": "Quantum teleportation", - "stp_type": "Vorlesung mit Zentralübung", - "entry_type": "lecture", - "detailed_entry_type": "Abhaltung" - }, - { - "id": 2, - "room_code": "5121.EG.003", - "start_at": "2014-01-01T01:00:00Z", - "end_at": "2016-01-01T01:00:00Z", - "stp_title_de": "Quantenteleportation 2", - "stp_title_en": "Quantum teleportation 2", - "stp_type": "Vorlesung mit Zentralübung", - "entry_type": "lecture", - "detailed_entry_type": "Abhaltung" - } - ], - "location": { - "key": "5121.EG.003", - "name": "5121.EG.003 (Computerraum)", - "last_calendar_scrape_at": now, - "calendar_url": "https://campus.tum.de/3", - "type_common_name": "Serverraum", - "type": "room" - } - } - }); - run_testcase(resp, 200, &expected.to_string()).await; + + let (status, actual) = run_testcase(resp).await; + assert_eq!(status, 200); + insta::assert_yaml_snapshot!(actual, {".**.last_calendar_scrape_at" => "[last_calendar_scrape_at]"}); } { // show both rooms, but a limited timeframe @@ -410,46 +384,24 @@ mod tests { .insert_header(ContentType::json()) .to_request(); let (_, resp) = test::call_service(&app, req).await.into_parts(); - let expected = serde_json::json!({ - "5121.EG.001": { - "events": [], - "location": { - "calendar_url": "https://campus.tum.de/1", - "key": "5121.EG.001", - "last_calendar_scrape_at": now, - "name": "5121.EG.001 (Montage- und Versuchshalle)", - "type": "room", - "type_common_name": "Versuchshalle", - }, - }, - "5121.EG.003": { - "events": [], - "location": { - "calendar_url": "https://campus.tum.de/3", - "key": "5121.EG.003", - "last_calendar_scrape_at": now, - "name": "5121.EG.003 (Computerraum)", - "type": "room", - "type_common_name": "Serverraum", - }, - }, - }); - run_testcase(resp, 200, &expected.to_string()).await; + + let (status, actual) = run_testcase(resp).await; + assert_eq!(status, 200); + insta::assert_yaml_snapshot!(actual, {".**.last_calendar_scrape_at" => "[last_calendar_scrape_at]"}); } } - async fn run_testcase(resp: HttpResponse, expected_status: u16, expected_body: &str) { + async fn run_testcase(resp: HttpResponse) -> (u16, Value) { let actual_status = resp.status().as_u16(); let body_box = resp.into_body(); let body_bytes = actix_web::body::to_bytes(body_box).await.unwrap(); let body_text = String::from_utf8(body_bytes.into_iter().collect()).unwrap(); // if the expected value cleanly deserializes into json, we should compare using this - if let Ok(expected_value) = serde_json::from_str::(expected_body) { - let actual_value = serde_json::from_str::(&body_text).unwrap(); - assert_eq!(actual_value, expected_value); + let body = if let Ok(actual) = serde_json::from_str::(&body_text) { + actual } else { - assert_eq!(body_text, expected_body); - } - assert_eq!(actual_status, expected_status); + Value::String(body_text) + }; + (actual_status, body) } } diff --git a/server/main-api/src/calendar/snapshots/navigatum_main_api__calendar__tests__index_get-5.snap b/server/main-api/src/calendar/snapshots/navigatum_main_api__calendar__tests__index_get-5.snap new file mode 100644 index 000000000..ec55ce02d --- /dev/null +++ b/server/main-api/src/calendar/snapshots/navigatum_main_api__calendar__tests__index_get-5.snap @@ -0,0 +1,31 @@ +--- +source: main-api/src/calendar/mod.rs +expression: actual +--- +5121.EG.003: + events: + - detailed_entry_type: Abhaltung + end_at: "2014-01-01T01:00:00Z" + entry_type: lecture + id: 1 + room_code: 5121.EG.003 + start_at: "2012-01-01T01:00:00Z" + stp_title_de: Quantenteleportation + stp_title_en: Quantum teleportation + stp_type: Vorlesung mit Zentralübung + - detailed_entry_type: Abhaltung + end_at: "2016-01-01T01:00:00Z" + entry_type: lecture + id: 2 + room_code: 5121.EG.003 + start_at: "2014-01-01T01:00:00Z" + stp_title_de: Quantenteleportation 2 + stp_title_en: Quantum teleportation 2 + stp_type: Vorlesung mit Zentralübung + location: + calendar_url: "https://campus.tum.de/3" + key: 5121.EG.003 + last_calendar_scrape_at: "[last_calendar_scrape_at]" + name: 5121.EG.003 (Computerraum) + type: room + type_common_name: Serverraum diff --git a/server/main-api/src/calendar/snapshots/navigatum_main_api__calendar__tests__index_get-6.snap b/server/main-api/src/calendar/snapshots/navigatum_main_api__calendar__tests__index_get-6.snap new file mode 100644 index 000000000..fde86b0ed --- /dev/null +++ b/server/main-api/src/calendar/snapshots/navigatum_main_api__calendar__tests__index_get-6.snap @@ -0,0 +1,22 @@ +--- +source: main-api/src/calendar/mod.rs +expression: actual +--- +5121.EG.001: + events: [] + location: + calendar_url: "https://campus.tum.de/1" + key: 5121.EG.001 + last_calendar_scrape_at: "[last_calendar_scrape_at]" + name: 5121.EG.001 (Montage- und Versuchshalle) + type: room + type_common_name: Versuchshalle +5121.EG.003: + events: [] + location: + calendar_url: "https://campus.tum.de/3" + key: 5121.EG.003 + last_calendar_scrape_at: "[last_calendar_scrape_at]" + name: 5121.EG.003 (Computerraum) + type: room + type_common_name: Serverraum diff --git a/server/main-api/src/search/mod.rs b/server/main-api/src/search/mod.rs index d655ea570..b7bf2d475 100644 --- a/server/main-api/src/search/mod.rs +++ b/server/main-api/src/search/mod.rs @@ -1,8 +1,10 @@ +use std::fmt::{Debug, Formatter}; use std::time::Instant; use crate::AppData; use actix_web::{get, web, HttpResponse}; use cached::proc_macro::cached; +use meilisearch_sdk::client::Client; use serde::{Deserialize, Serialize}; use tracing::{debug, error}; use unicode_truncate::UnicodeTruncateStr; @@ -33,6 +35,15 @@ pub struct Limits { pub rooms_count: usize, pub total_count: usize, } +impl Default for Limits { + fn default() -> Self { + Self { + total_count: 10, + buildings_count: 5, + rooms_count: 10, + } + } +} impl From<&SearchQueryArgs> for Limits { fn from(args: &SearchQueryArgs) -> Self { @@ -53,12 +64,27 @@ impl From<&SearchQueryArgs> for Limits { } } -#[derive(Debug, Default, Clone, Eq, PartialEq, Hash)] +#[derive(Clone, Eq, PartialEq, Hash)] pub struct Highlighting { pub pre: String, pub post: String, } +impl Debug for Highlighting { + fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result { + let pre = &self.pre; + let post = &self.post; + write!(f, "{pre}..{post}") + } +} +impl Default for Highlighting { + fn default() -> Self { + Self { + pre: "\u{0019}".to_string(), + post: "\u{0017}".to_string(), + } + } +} impl From<&SearchQueryArgs> for Highlighting { fn from(args: &SearchQueryArgs) -> Self { let (pre, post) = ( @@ -114,9 +140,19 @@ async fn cached_geoentry_search( highlighting: Highlighting, limits: Limits, ) -> Vec { - search_executor::do_geoentry_search(q, highlighting, limits) - .await - .0 + let ms_url = std::env::var("MIELI_URL").unwrap_or_else(|_| "http://localhost:7700".to_string()); + let client = Client::new(ms_url, std::env::var("MEILI_MASTER_KEY").ok()); + match client { + Ok(client) => { + search_executor::do_geoentry_search(&client, q, highlighting, limits) + .await + .0 + } + Err(e) => { + error!("Cannot connect to meilisearch because {e:?}"); + vec![] + } + } } #[cfg(test)] diff --git a/server/main-api/src/search/search_executor/mod.rs b/server/main-api/src/search/search_executor/mod.rs index 47f6762ea..021b9d74a 100644 --- a/server/main-api/src/search/search_executor/mod.rs +++ b/server/main-api/src/search/search_executor/mod.rs @@ -1,3 +1,4 @@ +use meilisearch_sdk::client::Client; use serde::Serialize; use tracing::error; @@ -35,15 +36,16 @@ struct ResultEntry { #[serde(skip_serializing_if = "Option::is_none")] parsed_id: Option, } -#[tracing::instrument] +#[tracing::instrument(skip(client))] pub async fn do_geoentry_search( + client: &Client, q: String, highlighting: Highlighting, limits: Limits, ) -> LimitedVec { let parsed_input = ParsedQuery::from(q.as_str()); - match query::GeoEntryQuery::from((&parsed_input, &limits, &highlighting)) + match query::GeoEntryQuery::from((client, &parsed_input, &limits, &highlighting)) .execute() .await { @@ -72,3 +74,104 @@ pub async fn do_geoentry_search( } } } + +#[cfg(test)] +mod test { + use super::*; + use crate::setup::tests::MeiliSearchTestContainer; + use std::fmt::{Display, Formatter}; + + #[derive(serde::Deserialize)] + struct TestQuery { + target: String, + query: String, + among: Option, + comment: Option, + } + + impl TestQuery { + fn load_good() -> Vec { + serde_yaml::from_str(include_str!("test-queries.good.yaml")).unwrap() + } + fn load_bad() -> Vec { + serde_yaml::from_str(include_str!("test-queries.bad.yaml")).unwrap() + } + fn actual_matches_among(&self, actual: &[ResultsSection]) -> bool { + let among = self.among.unwrap_or(1); + let mut acceptable_range = actual.iter().flat_map(|r| r.entries.clone()).take(among); + acceptable_range.any(|r| r.id == self.target) + } + async fn search(&self, client: &Client) -> Vec { + do_geoentry_search( + client, + self.query.clone(), + Highlighting::default(), + Limits::default(), + ) + .await + .0 + } + } + impl Display for TestQuery { + fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result { + write!( + f, + "'{query}' should get '{target}' in {among} results", + query = self.query, + target = self.target, + among = self.among.unwrap_or(1), + )?; + if let Some(comment) = &self.comment { + write!(f, " # {comment}")?; + } + Ok(()) + } + } + #[tokio::test] + #[tracing_test::traced_test] + async fn test_good_queries() { + let ms = MeiliSearchTestContainer::new().await; + crate::setup::meilisearch::load_data(&ms.client) + .await + .unwrap(); + for query in TestQuery::load_good() { + let actual = query.search(&ms.client).await; + assert!( + query.actual_matches_among(&actual), + "{query}\n\ + Since it can't, please move it to .bad list" + ); + + insta::with_settings!({ + info => &format!("{query}"), + description => query.comment.unwrap_or_default(), + }, { + insta::assert_yaml_snapshot!(actual); + }); + } + } + + #[tokio::test] + #[tracing_test::traced_test] + async fn test_bad_queries() { + let ms = MeiliSearchTestContainer::new().await; + crate::setup::meilisearch::load_data(&ms.client) + .await + .unwrap(); + for query in TestQuery::load_bad() { + let actual = query.search(&ms.client).await; + assert!( + !query.actual_matches_among(&actual), + "{query}\n\ + Since it can, please move it to .good list" + ); + + insta::with_settings!({ + info => &format!("{query}"), + description => query.comment.unwrap_or_default(), + }, { + insta::assert_yaml_snapshot!(actual); + }); + } + } +} diff --git a/server/main-api/src/search/search_executor/query.rs b/server/main-api/src/search/search_executor/query.rs index 6c1b16c47..67efe2785 100644 --- a/server/main-api/src/search/search_executor/query.rs +++ b/server/main-api/src/search/search_executor/query.rs @@ -3,6 +3,7 @@ use meilisearch_sdk::errors::Error; use meilisearch_sdk::indexes::Index; use meilisearch_sdk::search::{MultiSearchResponse, SearchQuery, Selectors}; use serde::Deserialize; +use std::fmt::{Debug, Formatter}; use crate::search::search_executor::parser::{Filter, ParsedQuery, TextToken}; use crate::search::{Highlighting, Limits}; @@ -24,12 +25,26 @@ pub(super) struct MSHit { rank: i32, } -#[derive(Debug)] struct GeoEntryFilters { default: String, rooms: String, buildings: String, } +impl Debug for GeoEntryFilters { + fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result { + let mut base = f.debug_struct("GeoEntryFilters"); + if !self.default.is_empty() { + base.field("default", &self.default); + } + if !self.rooms.is_empty() { + base.field("rooms", &self.rooms); + } + if !self.buildings.is_empty() { + base.field("buildings", &self.buildings); + } + base.finish() + } +} impl From<&Filter> for GeoEntryFilters { fn from(filters: &Filter) -> Self { @@ -43,8 +58,8 @@ impl From<&Filter> for GeoEntryFilters { } } -#[derive(Debug)] pub(super) struct GeoEntryQuery { + client: Client, parsed_input: ParsedQuery, limits: Limits, highlighting: Highlighting, @@ -52,9 +67,29 @@ pub(super) struct GeoEntryQuery { sorting: Vec, } -impl From<(&ParsedQuery, &Limits, &Highlighting)> for GeoEntryQuery { - fn from((parsed_input, limits, highlighting): (&ParsedQuery, &Limits, &Highlighting)) -> Self { +impl Debug for GeoEntryQuery { + fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result { + f.debug_struct("GeoEntryQuery") + .field("parsed_input", &self.parsed_input) + .field("limits", &self.limits) + .field("highlighting", &self.highlighting) + .field("filters", &self.filters) + .field("sorting", &self.sorting) + .finish() + } +} + +impl From<(&Client, &ParsedQuery, &Limits, &Highlighting)> for GeoEntryQuery { + fn from( + (client, parsed_input, limits, highlighting): ( + &Client, + &ParsedQuery, + &Limits, + &Highlighting, + ), + ) -> Self { Self { + client: client.clone(), parsed_input: parsed_input.clone(), limits: *limits, highlighting: highlighting.clone(), @@ -68,10 +103,7 @@ impl GeoEntryQuery { #[tracing::instrument(ret(level = tracing::Level::TRACE))] pub async fn execute(self) -> Result, Error> { let q_default = self.prompt_for_querying(); - let ms_url = - std::env::var("MIELI_URL").unwrap_or_else(|_| "http://localhost:7700".to_string()); - let client = Client::new(ms_url, std::env::var("MEILI_MASTER_KEY").ok())?; - let entries = client.index("entries"); + let entries = self.client.index("entries"); // due to lifetime shenanigans this is added here (I can't make it move down to the other statements) // If you can make it, please propose a PR, I know that this is really hacky ^^ @@ -86,7 +118,7 @@ impl GeoEntryQuery { // for all entries and only rooms, search matching (and relevant) buildings can be // expected to be at the top of the merged search. However sometimes a lot of // buildings will be hidden (e.g. building parts), so the extra room search .... - client + self.client .multi_search() .with_search_query( self.merged_query(&entries, &q_default) diff --git a/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__bad_queries-10.snap b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__bad_queries-10.snap new file mode 100644 index 000000000..59501ff65 --- /dev/null +++ b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__bad_queries-10.snap @@ -0,0 +1,62 @@ +--- +source: main-api/src/search/search_executor/mod.rs +description: typo with short word and at first letter +expression: actual +info: "'f abuer' should get '5602.EG.001' in 1 results # typo with short word and at first letter" +--- +- facet: rooms + entries: + - id: 2805.EG.005 + type: room + name: 2805.EG.005 ( Büro) + subtext: "Dachau, Karl-Benz-Straße" + subtext_bold: 1.F.1@2805 + - id: 2805.EG.011 + type: room + name: 2805.EG.011 ( Technik/fensterlos) + subtext: "Dachau, Karl-Benz-Straße" + subtext_bold: 2.F.2@2805 + - id: 2805.EG.030 + type: room + name: 2805.EG.030 ( Flur-Nord) + subtext: "Dachau, Karl-Benz-Straße" + subtext_bold: F-NORD@2805 + - id: 0508.EG.806 + type: room + name: "0508.EG.806 ( Gruppenraum \u0019f\u0017. Praktika)" + subtext: "stammgelände, Heizkraftwerk (Z8)" + subtext_bold: 0806@0508 + - id: 2913.01.110 + type: room + name: 2913.01.110 ( Seminarraum) + subtext: "stammgelände, Brienner Forum Haus F (AM)" + subtext_bold: F.1.10@2913 + - id: 2913.01.111 + type: room + name: 2913.01.111 ( Seminarraum) + subtext: "stammgelände, Brienner Forum Haus F (AM)" + subtext_bold: F.1.11@2913 + - id: 2913.01.112 + type: room + name: 2913.01.112 ( Seminarraum) + subtext: "stammgelände, Brienner Forum Haus F (AM)" + subtext_bold: F.1.12@2913 + - id: 5407.EG.651E + type: room + name: "5407.EG.651E ( Phys.Messr.\u0019f\u0017.instr.Analytik)" + subtext: "garching, Chemie" + subtext_bold: 16515@5407 + n_visible: 8 + estimatedTotalHits: 130 +- facet: sites_buildings + entries: + - id: "2913" + type: building + name: "Brienner Forum Haus \u0019F\u0017 (AM)" + subtext: Gebäude + - id: "2607" + type: building + name: "Fahrzeughalle (BL. \u0019F\u0017)" + subtext: Gebäude + n_visible: 0 + estimatedTotalHits: 2 diff --git a/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__bad_queries-11.snap b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__bad_queries-11.snap new file mode 100644 index 000000000..2868f4d90 --- /dev/null +++ b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__bad_queries-11.snap @@ -0,0 +1,64 @@ +--- +source: main-api/src/search/search_executor/mod.rs +description: "main room called 'service desk', only all 114abc.. subrooms have 'ssz' in the name" +expression: actual +info: "'ssz' should get '0501.EG.144' in 1 results # main room called 'service desk', only all 114abc.. subrooms have 'ssz' in the name" +--- +- facet: rooms + entries: + - id: 0501.EG.144A + type: room + name: "0501.EG.144A ( \u0019SSZ\u0017 Info)" + subtext: "stammgelände, Hauptgebäude (Z1)" + subtext_bold: 0144A@0501 + - id: 0501.EG.144B + type: room + name: "0501.EG.144B ( \u0019SSZ\u0017 Info)" + subtext: "stammgelände, Hauptgebäude (Z1)" + subtext_bold: 0144B@0501 + - id: 0501.EG.144C + type: room + name: "0501.EG.144C ( \u0019SSZ\u0017 Info)" + subtext: "stammgelände, Hauptgebäude (Z1)" + subtext_bold: 0144C@0501 + - id: 0501.EG.144D + type: room + name: "0501.EG.144D ( \u0019SSZ\u0017 Info)" + subtext: "stammgelände, Hauptgebäude (Z1)" + subtext_bold: 0144D@0501 + - id: 0501.EG.144E + type: room + name: "0501.EG.144E ( \u0019SSZ\u0017 Info)" + subtext: "stammgelände, Hauptgebäude (Z1)" + subtext_bold: 0144E@0501 + - id: 0501.EG.144F + type: room + name: "0501.EG.144F ( \u0019SSZ\u0017 Info)" + subtext: "stammgelände, Hauptgebäude (Z1)" + subtext_bold: 0144F@0501 + - id: 0501.EG.144G + type: room + name: "0501.EG.144G ( \u0019SSZ\u0017 Info)" + subtext: "stammgelände, Hauptgebäude (Z1)" + subtext_bold: 0144G@0501 + - id: 0501.EG.144H + type: room + name: "0501.EG.144H ( \u0019SSZ\u0017 Info)" + subtext: "stammgelände, Hauptgebäude (Z1)" + subtext_bold: 0144H@0501 + - id: 0501.EG.148 + type: room + name: "0501.EG.148 ( Teeküche \u0019SSZ\u0017)" + subtext: "stammgelände, Hauptgebäude (Z1)" + subtext_bold: 0148@0501 + - id: 0505.EG.561 + type: room + name: "0505.EG.561 ( Sekretariat \u0019SSZ\u0017/HR S+L / Recht)" + subtext: "stammgelände, Wirtschaftswissenschaften (Z5)" + subtext_bold: 0561@0505 + n_visible: 10 + estimatedTotalHits: 11 +- facet: sites_buildings + entries: [] + n_visible: 0 + estimatedTotalHits: 0 diff --git a/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__bad_queries-12.snap b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__bad_queries-12.snap new file mode 100644 index 000000000..a52a01b4a --- /dev/null +++ b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__bad_queries-12.snap @@ -0,0 +1,29 @@ +--- +source: main-api/src/search/search_executor/mod.rs +description: "" +expression: actual +info: "'Immathalle' should get '0501.EG.136' in 1 results" +--- +- facet: rooms + entries: + - id: 0501.EG.130C + type: room + name: "0501.EG.130C ( Küche \u0019Immatrikulationshalle\u0017)" + subtext: "stammgelände, Hauptgebäude (Z1)" + subtext_bold: 0130C@0501 + - id: 0501.EG.136 + type: room + name: "0501.EG.136 ( \u0019Immatrikulationshalle\u0017)" + subtext: "stammgelände, Hauptgebäude (Z1)" + subtext_bold: 0136@0501 + - id: 0501.EG.140 + type: room + name: "0501.EG.140 ( Durchgangshalle zur \u0019Immathalle\u0017)" + subtext: "stammgelände, Hauptgebäude (Z1)" + subtext_bold: 0140@0501 + n_visible: 3 + estimatedTotalHits: 3 +- facet: sites_buildings + entries: [] + n_visible: 0 + estimatedTotalHits: 0 diff --git a/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__bad_queries-13.snap b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__bad_queries-13.snap new file mode 100644 index 000000000..00db6cdd8 --- /dev/null +++ b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__bad_queries-13.snap @@ -0,0 +1,14 @@ +--- +source: main-api/src/search/search_executor/mod.rs +description: Copy/paste from real search +expression: actual +info: "'Augustenstraße 44; Raum 209; 2.OG' should get '2903.02.209' in 1 results # Copy/paste from real search" +--- +- facet: rooms + entries: [] + n_visible: 0 + estimatedTotalHits: 0 +- facet: sites_buildings + entries: [] + n_visible: 0 + estimatedTotalHits: 0 diff --git a/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__bad_queries-14.snap b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__bad_queries-14.snap new file mode 100644 index 000000000..a41846fb4 --- /dev/null +++ b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__bad_queries-14.snap @@ -0,0 +1,64 @@ +--- +source: main-api/src/search/search_executor/mod.rs +description: "there are two basic lab course rooms, this is one of them" +expression: actual +info: "'praktikumsraum mi' should get '5604.EG.038' in 2 results # there are two basic lab course rooms, this is one of them" +--- +- facet: rooms + entries: + - id: 5605.01.012 + type: room + name: "5605.01.012 ( \u0019Praktikumsraum\u0017)" + subtext: "garching, Mathe/Info (MI)" + subtext_bold: 01.05.012@5605 + - id: 5605.01.013 + type: room + name: "5605.01.013 ( \u0019Praktikumsraum\u0017)" + subtext: "garching, Mathe/Info (MI)" + subtext_bold: 01.05.013@5605 + - id: 5605.02.014 + type: room + name: "5605.02.014 ( \u0019Praktikumsraum\u0017)" + subtext: "garching, Mathe/Info (MI)" + subtext_bold: 02.05.014@5605 + - id: 5605.02.033 + type: room + name: "5605.02.033 ( \u0019Praktikumsraum\u0017)" + subtext: "garching, Mathe/Info (MI)" + subtext_bold: 02.05.033@5605 + - id: 5605.03.012 + type: room + name: "5605.03.012 ( \u0019Praktikumsraum\u0017)" + subtext: "garching, Mathe/Info (MI)" + subtext_bold: 03.05.012@5605 + - id: 5605.03.014 + type: room + name: "5605.03.014 ( \u0019Praktikumsraum\u0017)" + subtext: "garching, Mathe/Info (MI)" + subtext_bold: 03.05.014@5605 + - id: 5605.03.057 + type: room + name: "5605.03.057 ( \u0019Praktikumsraum\u0017)" + subtext: "garching, Mathe/Info (MI)" + subtext_bold: 03.05.057@5605 + - id: 5607.01.012 + type: room + name: "5607.01.012 ( \u0019Praktikumsraum\u0017)" + subtext: "garching, Mathe/Info (MI)" + subtext_bold: 01.07.012@5607 + - id: 5608.01.011 + type: room + name: "5608.01.011 ( \u0019Praktikumsraum\u0017)" + subtext: "garching, Mathe/Info (MI)" + subtext_bold: 01.08.011@5608 + - id: 5608.01.020 + type: room + name: "5608.01.020 ( \u0019Praktikumsraum\u0017)" + subtext: "garching, Mathe/Info (MI)" + subtext_bold: 01.08.020@5608 + n_visible: 10 + estimatedTotalHits: 209 +- facet: sites_buildings + entries: [] + n_visible: 0 + estimatedTotalHits: 0 diff --git a/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__bad_queries-15.snap b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__bad_queries-15.snap new file mode 100644 index 000000000..9dee1bbc5 --- /dev/null +++ b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__bad_queries-15.snap @@ -0,0 +1,64 @@ +--- +source: main-api/src/search/search_executor/mod.rs +description: "'5604.02.033' is a valid result before the two lab course rooms" +expression: actual +info: "'physik labor mi' should get '5604.EG.036' in 3 results # '5604.02.033' is a valid result before the two lab course rooms" +--- +- facet: rooms + entries: + - id: 0104.U1.404 + type: room + name: "0104.U1.404 ( \u0019Mi\u0017krostr. Bauele.-\u0019Labor\u0017)" + subtext: "stammgelände, E-Technik Elektrophysik (N4)" + subtext_bold: N-1404@0104 + - id: 0104.EG.426 + type: room + name: "0104.EG.426 ( \u0019Physiklabor\u0017 \u0019mi\u0017t elektromagnetischer Abschir)" + subtext: "stammgelände, E-Technik Elektrophysik (N4)" + subtext_bold: N0426@0104 + - id: 5501.01.108 + type: room + name: "5501.01.108 ( \u0019Mi\u0017krotechniklabor)" + subtext: "garching, Maschinenwesen (MW)" + subtext_bold: 1108@5501 + - id: 2806.03.302 + type: room + name: "2806.03.302 ( \u0019Mi\u0017kroskopie)" + subtext: Werkstattgebäude National Museum (Nutzung) + subtext_bold: 3.302@2806 + - id: 4224.01.136 + type: room + name: "4224.01.136 ( \u0019Mi\u0017kroskopie)" + subtext: "weihenstephan, ZIEL IV - Biowissenschaften" + subtext_bold: 1.36@4224 + - id: 4224.01.156 + type: room + name: "4224.01.156 ( \u0019Mi\u0017kroskopierraum S1-Genlabor)" + subtext: "weihenstephan, ZIEL IV - Biowissenschaften" + subtext_bold: 1.56@4224 + - id: 4317.01.121 + type: room + name: "4317.01.121 ( \u0019Mi\u0017kroskopierraum)" + subtext: "weihenstephan, Tierwissenschaften" + subtext_bold: 1.21@4317 + - id: 4404.EG.003 + type: room + name: "4404.EG.003 ( \u0019Mi\u0017kroskopie)" + subtext: "limnologische-station-iffeldorf, Seminargebäude" + subtext_bold: 003@4404 + - id: 0103.U1.301 + type: room + name: "0103.U1.301 ( FIB-\u0019Mi\u0017kroskopierraum)" + subtext: "stammgelände, E-Technik El. Maschinen / Geräte (N3)" + subtext_bold: "-1301@0103" + - id: 4124.EG.320 + type: room + name: "4124.EG.320 ( L1 \u0019Mi\u0017kroorganismen)" + subtext: "weihenstephan, ZIEL II – Molekulare Biowissenschaften" + subtext_bold: E/3.20@4124 + n_visible: 10 + estimatedTotalHits: 1000 +- facet: sites_buildings + entries: [] + n_visible: 0 + estimatedTotalHits: 28 diff --git a/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__bad_queries-16.snap b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__bad_queries-16.snap new file mode 100644 index 000000000..582635569 --- /dev/null +++ b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__bad_queries-16.snap @@ -0,0 +1,64 @@ +--- +source: main-api/src/search/search_executor/mod.rs +description: "This is 'N-1403@0104', but 'N1403@0104' can be before this" +expression: actual +info: "'n1403' should get '0104.U1.403' in 2 results # This is 'N-1403@0104', but 'N1403@0104' can be before this" +--- +- facet: rooms + entries: + - id: 0104.01.403 + type: room + name: 0104.01.403 ( Büro) + subtext: "stammgelände, E-Technik Elektrophysik (N4)" + subtext_bold: N1403@0104 + - id: 0102.01.203 + type: room + name: 0102.01.203 ( Hörsaal-eben m.exp.-Bühne) + subtext: "stammgelände, Hochvolthaus (N2)" + subtext_bold: N1203@0102 + - id: 0101.Z1.003 + type: room + name: 0101.Z1.003 ( Studentenarbeitsraum) + subtext: "stammgelände, U-Trakt (N1)" + subtext_bold: N1003ZG@0101 + - id: 0101.Z1.039 + type: room + name: 0101.Z1.039 ( Seminarraum) + subtext: "stammgelände, U-Trakt (N1)" + subtext_bold: N1039ZG@0101 + - id: 0104.01.406 + type: room + name: 0104.01.406 ( Studentenarb. m. DV) + subtext: "stammgelände, E-Technik Elektrophysik (N4)" + subtext_bold: N1406@0104 + - id: 0108.01.803 + type: room + name: 0108.01.803 ( Gruppenraum) + subtext: "stammgelände, E-Technik Verfügungsgebäude (N8)" + subtext_bold: N1803@0108 + - id: 0101.Z1.031 + type: room + name: 0101.Z1.031 ( Bibliotheksraum einf.) + subtext: "stammgelände, U-Trakt (N1)" + subtext_bold: N1031ZG@0101 + - id: 5112.EG.103N + type: room + name: 5112.EG.103N ( Labor) + subtext: "garching, Walter-Schottky-Institut (WSI)" + subtext_bold: N103@5112 + - id: 0101.Z1.030 + type: room + name: 0101.Z1.030 ( Besprechungsraum) + subtext: "stammgelände, U-Trakt (N1)" + subtext_bold: N1030ZG@0101 + - id: 0101.Z1.032 + type: room + name: 0101.Z1.032 ( Büro) + subtext: "stammgelände, U-Trakt (N1)" + subtext_bold: N1032ZG@0101 + n_visible: 10 + estimatedTotalHits: 552 +- facet: sites_buildings + entries: [] + n_visible: 0 + estimatedTotalHits: 0 diff --git a/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__bad_queries-17.snap b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__bad_queries-17.snap new file mode 100644 index 000000000..89b802faa --- /dev/null +++ b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__bad_queries-17.snap @@ -0,0 +1,64 @@ +--- +source: main-api/src/search/search_executor/mod.rs +description: "typo + it's 'Fachschaftsbüro' in the data" +expression: actual +info: "'fachschaft pyhsik' should get '5101.EG.257' in 1 results # typo + it's 'Fachschaftsbüro' in the data" +--- +- facet: rooms + entries: + - id: 0104.EG.413 + type: room + name: "0104.EG.413 ( Elektroniklabor \u0019Fachschaft\u0017 EI)" + subtext: "stammgelände, E-Technik Elektrophysik (N4)" + subtext_bold: N0413@0104 + - id: 5101.EG.257 + type: room + name: "5101.EG.257 (Büro \u0019Fachschaft\u0017 Mathe \u0019Physik\u0017 Informatik Chemie / MPIC)" + subtext: "garching, Physik I" + subtext_bold: 2257@5101 + - id: 5606.EG.036 + type: room + name: "5606.EG.036 (Büro \u0019Fachschaft\u0017 Mathe \u0019Physik\u0017 Informatik Chemie / MPIC)" + subtext: "garching, Mathe/Info (MI)" + subtext_bold: 00.06.036@5606 + - id: 5606.EG.037 + type: room + name: "5606.EG.037 (Besprechungsraum \u0019Fachschaft\u0017 Mathe \u0019Physik\u0017 Informatik Chemie / MPIC)" + subtext: "garching, Mathe/Info (MI)" + subtext_bold: 00.06.037@5606 + - id: 5406.01.650C + type: room + name: "5406.01.650C (Büro \u0019Fachschaft\u0017 Mathe \u0019Physik\u0017 Informatik Chemie / MPIC)" + subtext: "garching, Chemie" + subtext_bold: 26503@5406 + - id: 5606.EG.038 + type: room + name: "5606.EG.038 (Lager \u0019Fachschaft\u0017 Mathe \u0019Physik\u0017 Informatik Chemie / MPIC)" + subtext: "garching, Mathe/Info (MI)" + subtext_bold: 00.06.038@5606 + - id: 5606.EG.039 + type: room + name: "5606.EG.039 (Skriptenverkauf \u0019Fachschaft\u0017 Mathe \u0019Physik\u0017 Informatik Chemie / MPIC)" + subtext: "garching, Mathe/Info (MI)" + subtext_bold: 00.06.039@5606 + - id: 2333.01.103 + type: room + name: "2333.01.103 ( \u0019Fachschaft\u0017 Sport)" + subtext: "campus-im-olympiapark-sz, CiO/SG Hallen Ost" + subtext_bold: 01.2333.103@2333 + - id: 9377.01.130 + type: room + name: "9377.01.130 ( Projektraum \u0019Fachschaft\u0017)" + subtext: "taufkirchen-ottobr., Lise-Meitner-Straße 9-11" + subtext_bold: 01.130@9377 + - id: 0504.EG.424 + type: room + name: "0504.EG.424 ( Arbeitsraum/Studenten/\u0019Fachschaft\u0017)" + subtext: "stammgelände, Landwirtschaftsbau (Z4)" + subtext_bold: 0424@0504 + n_visible: 10 + estimatedTotalHits: 37 +- facet: sites_buildings + entries: [] + n_visible: 0 + estimatedTotalHits: 0 diff --git a/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__bad_queries-18.snap b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__bad_queries-18.snap new file mode 100644 index 000000000..8fe553f70 --- /dev/null +++ b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__bad_queries-18.snap @@ -0,0 +1,63 @@ +--- +source: main-api/src/search/search_executor/mod.rs +description: "H.003 is the correct room, but people have problems remembering how many zeroes are in the room number" +expression: actual +info: "'H.0003' should get '2910.EG.003' in 1 results # H.003 is the correct room, but people have problems remembering how many zeroes are in the room number" +--- +- facet: sites_buildings + entries: + - id: "2910" + type: building + name: "Richard-Wagner-Str. 1 / Haus B + Haus \u0019H\u0017, Hochschule für Politik (HfP)/ Department of Governance (GOV)" + subtext: Gebäude + n_visible: 1 + estimatedTotalHits: 1 +- facet: rooms + entries: + - id: 2910.01.101 + type: room + name: 2910.01.101 ( Gruppenarbeitsraum) + subtext: "stammgelände, RiWa 1 (HfP/GOV)" + subtext_bold: H.101@2910 + - id: 2910.01.102 + type: room + name: 2910.01.102 ( Gruppenarbeitsraum) + subtext: "stammgelände, RiWa 1 (HfP/GOV)" + subtext_bold: H.102@2910 + - id: 2910.02.202 + type: room + name: 2910.02.202 ( Seminarraum) + subtext: "stammgelände, RiWa 1 (HfP/GOV)" + subtext_bold: H.202@2910 + - id: 2910.02.204 + type: room + name: 2910.02.204 ( Seminarraum) + subtext: "stammgelände, RiWa 1 (HfP/GOV)" + subtext_bold: H.204@2910 + - id: 2910.02.206 + type: room + name: 2910.02.206 ( Seminarraum) + subtext: "stammgelände, RiWa 1 (HfP/GOV)" + subtext_bold: H.206@2910 + - id: 2910.EG.001 + type: room + name: 2910.EG.001 ( Seminarraum) + subtext: "stammgelände, RiWa 1 (HfP/GOV)" + subtext_bold: H.001@2910 + - id: 2910.EG.002 + type: room + name: 2910.EG.002 ( Seminarraum) + subtext: "stammgelände, RiWa 1 (HfP/GOV)" + subtext_bold: H.002@2910 + - id: 2910.EG.003 + type: room + name: 2910.EG.003 ( Seminarraum) + subtext: "stammgelände, RiWa 1 (HfP/GOV)" + subtext_bold: H.003@2910 + - id: 5212.01.028 + type: room + name: 5212.01.028 ( Gemeinschaftsraum) + subtext: "garching, RCM Radiochemie München" + subtext_bold: H.1.028@5212 + n_visible: 9 + estimatedTotalHits: 412 diff --git a/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__bad_queries-19.snap b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__bad_queries-19.snap new file mode 100644 index 000000000..5b7d24206 --- /dev/null +++ b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__bad_queries-19.snap @@ -0,0 +1,66 @@ +--- +source: main-api/src/search/search_executor/mod.rs +description: "H.003 is the correct room, but people have problems remembering how many zeroes are in the room number" +expression: actual +info: "'H.03' should get '2910.EG.003' in 1 results # H.003 is the correct room, but people have problems remembering how many zeroes are in the room number" +--- +- facet: rooms + entries: + - id: 5212.01.030 + type: room + name: "5212.01.\u001903\u00170 ( Gemeinschaftsraum)" + subtext: "garching, RCM Radiochemie München" + subtext_bold: H.1.030@5212 + - id: 5212.02.030 + type: room + name: "5212.02.\u001903\u00170 ( Gemeinschaftsraum)" + subtext: "garching, RCM Radiochemie München" + subtext_bold: H.2.030@5212 + - id: 2910.EG.031 + type: room + name: "2910.EG.\u001903\u00171 ( WC-Herren)" + subtext: "stammgelände, RiWa 1 (HfP/GOV)" + subtext_bold: H.031@2910 + parsed_id: "\u0019H.03\u00171 RiWa 1 (HfP/GOV)" + - id: 2910.EG.032 + type: room + name: "2910.EG.\u001903\u00172 ( Beh.-WC)" + subtext: "stammgelände, RiWa 1 (HfP/GOV)" + subtext_bold: H.032@2910 + parsed_id: "\u0019H.03\u00172 RiWa 1 (HfP/GOV)" + - id: 0504.03.430 + type: room + name: "0504.\u001903\u0017.430 ( WC-\u0019H\u0017)" + subtext: "stammgelände, Landwirtschaftsbau (Z4)" + subtext_bold: 3430@0504 + - id: 0505.03.522 + type: room + name: "0505.\u001903\u0017.522 ( WC-\u0019H\u0017)" + subtext: "stammgelände, Wirtschaftswissenschaften (Z5)" + subtext_bold: 3522@0505 + - id: 0505.03.526A + type: room + name: "0505.\u001903\u0017.526A ( WC-\u0019H\u0017)" + subtext: "stammgelände, Wirtschaftswissenschaften (Z5)" + subtext_bold: 3526@0505 + - id: 0501.03.135 + type: room + name: "0501.\u001903\u0017.135 ( Vorraum WC-\u0019H\u0017)" + subtext: "stammgelände, Hauptgebäude (Z1)" + subtext_bold: 3135@0501 + - id: 0501.03.135B + type: room + name: "0501.\u001903\u0017.135B ( Toilette WC-\u0019H\u0017)" + subtext: "stammgelände, Hauptgebäude (Z1)" + subtext_bold: 3135B@0501 + - id: 0501.03.153A + type: room + name: "0501.\u001903\u0017.153A ( Vorraum WC-\u0019H\u0017)" + subtext: "stammgelände, Hauptgebäude (Z1)" + subtext_bold: 3153A@0501 + n_visible: 10 + estimatedTotalHits: 412 +- facet: sites_buildings + entries: [] + n_visible: 0 + estimatedTotalHits: 1 diff --git a/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__bad_queries-2.snap b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__bad_queries-2.snap new file mode 100644 index 000000000..52fd4678a --- /dev/null +++ b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__bad_queries-2.snap @@ -0,0 +1,62 @@ +--- +source: main-api/src/search/search_executor/mod.rs +description: target is hallucinated as it currently does not exist +expression: actual +info: "tb innenstadt should get tb-arcisstraße in 1 # target is hallucinated as it currently does not exist" +--- +- facet: sites_buildings + entries: + - id: "4220" + type: building + name: "\u0019Teilbibliothek\u0017 Weihenstephan, Pressestelle Datenverarbeitung" + subtext: Gebäude + - id: "5401" + type: building + name: "\u0019Teilbibliothek\u0017 Chemie, Hörsaal (CH1, dunkelgrün)" + subtext: Gebäudeteil + n_visible: 2 + estimatedTotalHits: 2 +- facet: rooms + entries: + - id: 5401.01.101K + type: room + name: 5401.01.101K (Hans-Fischer-Hörsaal) + subtext: "garching, Chemie" + subtext_bold: 21010@5401 + - id: 4220.01.001 + type: room + name: 4220.01.001 ( Einzelarbeitsraum) + subtext: "weihenstephan, Teilbibliothek Weihenstephan, Pressestelle Datenverarbeitung" + subtext_bold: OG R 01@4220 + - id: 4220.01.002 + type: room + name: 4220.01.002 ( Einzelarbeitsraum) + subtext: "weihenstephan, Teilbibliothek Weihenstephan, Pressestelle Datenverarbeitung" + subtext_bold: OG R 02@4220 + - id: 4220.01.003 + type: room + name: 4220.01.003 ( Einzelarbeitsraum) + subtext: "weihenstephan, Teilbibliothek Weihenstephan, Pressestelle Datenverarbeitung" + subtext_bold: OG R 03@4220 + - id: 4220.01.004 + type: room + name: 4220.01.004 ( Einzelarbeitsraum) + subtext: "weihenstephan, Teilbibliothek Weihenstephan, Pressestelle Datenverarbeitung" + subtext_bold: OG R 04@4220 + - id: 4220.01.005 + type: room + name: 4220.01.005 ( Einzelarbeitsraum) + subtext: "weihenstephan, Teilbibliothek Weihenstephan, Pressestelle Datenverarbeitung" + subtext_bold: OG R 05@4220 + - id: 4220.01.006 + type: room + name: 4220.01.006 ( Einzelarbeitsraum) + subtext: "weihenstephan, Teilbibliothek Weihenstephan, Pressestelle Datenverarbeitung" + subtext_bold: OG R 06@4220 + - id: 4220.01.007 + type: room + name: 4220.01.007 ( Einzelarbeitsraum) + subtext: "weihenstephan, Teilbibliothek Weihenstephan, Pressestelle Datenverarbeitung" + subtext_bold: OG R 07@4220 + n_visible: 8 + estimatedTotalHits: 392 diff --git a/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__bad_queries-20.snap b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__bad_queries-20.snap new file mode 100644 index 000000000..24b8a8c76 --- /dev/null +++ b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__bad_queries-20.snap @@ -0,0 +1,66 @@ +--- +source: main-api/src/search/search_executor/mod.rs +description: "H.003 is the correct room, but people have problems remembering how many zeroes are in the room number" +expression: actual +info: "'H.3' should get '2910.EG.003' in 1 results # H.003 is the correct room, but people have problems remembering how many zeroes are in the room number" +--- +- facet: rooms + entries: + - id: 5212.01.028 + type: room + name: 5212.01.028 ( Gemeinschaftsraum) + subtext: "garching, RCM Radiochemie München" + subtext_bold: H.1.028@5212 + - id: 5212.01.030 + type: room + name: 5212.01.030 ( Gemeinschaftsraum) + subtext: "garching, RCM Radiochemie München" + subtext_bold: H.1.030@5212 + - id: 5212.02.028 + type: room + name: 5212.02.028 ( Gemeinschaftsraum) + subtext: "garching, RCM Radiochemie München" + subtext_bold: H.2.028@5212 + - id: 5212.02.030 + type: room + name: 5212.02.030 ( Gemeinschaftsraum) + subtext: "garching, RCM Radiochemie München" + subtext_bold: H.2.030@5212 + - id: 5212.EG.006 + type: room + name: 5212.EG.006 ( Seminar 1) + subtext: "garching, RCM Radiochemie München" + subtext_bold: H.0.006@5212 + - id: 4124.U1.001A + type: room + name: 4124.U1.001A ( Praktikum (Hinterer Raumteil)) + subtext: "weihenstephan, ZIEL II – Molekulare Biowissenschaften" + subtext_bold: P/1.01 H@4124 + - id: 5212.EG.007 + type: room + name: "5212.EG.007 ( Wischtest, freig.)" + subtext: "garching, RCM Radiochemie München" + subtext_bold: H.0.007@5212 + - id: 5212.EG.603 + type: room + name: 5212.EG.603 ( Pers. Dekont./Dusche) + subtext: "garching, RCM Radiochemie München" + subtext_bold: H.0.603@5212 + - id: 2910.03.301 + type: room + name: "2910.03.\u00193\u001701 ( Büro)" + subtext: "stammgelände, RiWa 1 (HfP/GOV)" + subtext_bold: H.301@2910 + parsed_id: "\u0019H.3\u001701 RiWa 1 (HfP/GOV)" + - id: 2910.03.302 + type: room + name: "2910.03.\u00193\u001702 ( Büro)" + subtext: "stammgelände, RiWa 1 (HfP/GOV)" + subtext_bold: H.302@2910 + parsed_id: "\u0019H.3\u001702 RiWa 1 (HfP/GOV)" + n_visible: 10 + estimatedTotalHits: 413 +- facet: sites_buildings + entries: [] + n_visible: 0 + estimatedTotalHits: 1 diff --git a/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__bad_queries-21.snap b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__bad_queries-21.snap new file mode 100644 index 000000000..77f2fca61 --- /dev/null +++ b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__bad_queries-21.snap @@ -0,0 +1,26 @@ +--- +source: main-api/src/search/search_executor/mod.rs +description: "The architects name is a N2119. There are other rooms which are actually named '2119', which means 4 is the best case." +expression: actual +info: "'2119' should get '0101.02.119' in 4 results # The architects name is a N2119. There are other rooms which are actually named '2119', which means 4 is the best case." +--- +- facet: rooms + entries: + - id: 5101.EG.119 + type: room + name: 5101.EG.119 ( Physiklabor (einfach)) + subtext: "garching, Physik I" + subtext_bold: 2119@5101 + parsed_id: "PH \u00192119\u0017" + - id: 5413.01.119 + type: room + name: 5413.01.119 ( Kopierer) + subtext: "garching, BNMRZ Bayerisches NMR-Zentrum" + subtext_bold: 2119@5413 + parsed_id: "\u00192119\u0017 BNMRZ B…MR-Zentrum" + n_visible: 2 + estimatedTotalHits: 2 +- facet: sites_buildings + entries: [] + n_visible: 0 + estimatedTotalHits: 0 diff --git a/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__bad_queries-22.snap b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__bad_queries-22.snap new file mode 100644 index 000000000..22f79c305 --- /dev/null +++ b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__bad_queries-22.snap @@ -0,0 +1,59 @@ +--- +source: main-api/src/search/search_executor/mod.rs +description: "This should match this Lecture hall and not the HS 1, just because both are in the Bolzmanstr. *3* 4 is the best case." +expression: actual +info: "'MI HS3' should get '5606.EG.011' in 1 results # This should match this Lecture hall and not the HS 1, just because both are in the Bolzmanstr. *3* 4 is the best case." +--- +- facet: sites_buildings + entries: + - id: mi + type: joined_building + name: "Fakultät Mathematik & Informatik (FMI oder \u0019MI\u0017)" + subtext: Gebäudekomplex + - id: "5605" + type: building + name: Finger 05 (BT05) + subtext: Gebäudeteil + - id: "5606" + type: building + name: Finger 06 (BT06) + subtext: Gebäudeteil + - id: "5607" + type: building + name: Finger 07 (BT07) + subtext: Gebäudeteil + - id: "5609" + type: building + name: Finger 09 (BT09) + subtext: Gebäudeteil + n_visible: 5 + estimatedTotalHits: 14 +- facet: rooms + entries: + - id: 5606.EG.011 + type: room + name: "5606.EG.011 ( \u0019MI\u0017 \u0019Hörsaal\u0017 \u00193\u0017)" + subtext: "garching, Mathe/Info (MI)" + subtext_bold: 00.06.011@5606 + - id: 5602.EG.001 + type: room + name: "5602.EG.001 ( \u0019MI\u0017 \u0019HS\u0017 1, Friedrich L. Bauer \u0019Hörsaal\u0017)" + subtext: "garching, Mathe/Info (MI)" + subtext_bold: 00.02.001@5602 + - id: 5604.EG.011 + type: room + name: "5604.EG.011 ( \u0019MI\u0017 \u0019Hörsaal\u0017 2)" + subtext: "garching, Mathe/Info (MI)" + subtext_bold: 00.04.011@5604 + - id: 5602.EG.002 + type: room + name: "5602.EG.002 ( \u0019MI\u0017 \u0019Hörsaal\u0017 Regieraum)" + subtext: "garching, Mathe/Info (MI)" + subtext_bold: 00.02.002@5602 + - id: 5602.U1.001 + type: room + name: 5602.U1.001 ( Technikraum) + subtext: "garching, Mathe/Info (MI)" + subtext_bold: "-1.02.001@5602" + n_visible: 5 + estimatedTotalHits: 1000 diff --git a/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__bad_queries-3.snap b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__bad_queries-3.snap new file mode 100644 index 000000000..5cd7785fd --- /dev/null +++ b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__bad_queries-3.snap @@ -0,0 +1,60 @@ +--- +source: main-api/src/search/search_executor/mod.rs +description: "" +expression: actual +info: "'interims I' should get '5620' in 1 results" +--- +- facet: sites_buildings + entries: + - id: garching-interims + type: area + name: "\u0019Interimshörsäle\u0017" + subtext: Gebiet / Gruppe von Gebäuden + - id: "5620" + type: building + name: "\u0019Interimshörsäle\u0017 \u0019I\u0017" + subtext: Gebäude + - id: "5416" + type: building + name: "\u0019Interimshörsäle\u0017 \u0019I\u0017I, Jürgen Manchot-Hörsaalgebäude" + subtext: Gebäude + - id: "5539" + type: building + name: "\u0019Interims\u0017-Tentomax MW" + subtext: Gebäude + n_visible: 4 + estimatedTotalHits: 4 +- facet: rooms + entries: + - id: 5620.01.101 + type: room + name: "5620.01.101 ( Hörsaal 1, \"\u0019Interims\u0017 \u0019I\u0017\")" + subtext: "garching, Interims I" + subtext_bold: 101@5620 + - id: 5620.01.102 + type: room + name: "5620.01.102 ( Hörsaal 2, \"\u0019Interims\u0017 \u0019I\u0017\")" + subtext: "garching, Interims I" + subtext_bold: 102@5620 + - id: 5416.01.003 + type: room + name: "5416.01.003 ( Hörsaal 2, \"\u0019Interims\u0017 \u0019I\u0017I\")" + subtext: "garching, Interims II" + subtext_bold: 003@5416 + - id: 5416.01.004 + type: room + name: "5416.01.004 ( Hörsaal 1, Jürgen-Manchot-Hörsaal)" + subtext: "garching, Interims II" + subtext_bold: 004@5416 + - id: 5539.EG.001A + type: room + name: "5539.EG.001A ( Hörsaal 1A, \"Zelt\")" + subtext: "garching, Interims III" + subtext_bold: 0.001A@5539 + - id: 5539.EG.001B + type: room + name: "5539.EG.001B ( Hörsaal 1B, \"Zelt\")" + subtext: "garching, Interims III" + subtext_bold: 0.001B@5539 + n_visible: 6 + estimatedTotalHits: 47 diff --git a/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__bad_queries-4.snap b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__bad_queries-4.snap new file mode 100644 index 000000000..c5a8cb64f --- /dev/null +++ b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__bad_queries-4.snap @@ -0,0 +1,61 @@ +--- +source: main-api/src/search/search_executor/mod.rs +description: "Note: It is not really in Arcisstr., just close" +expression: actual +info: "'Studitum Arcisstr' should get '0201' in 1 results # Note: It is not really in Arcisstr., just close" +--- +- facet: sites_buildings + entries: + - id: "5532" + type: building + name: "\u0019StudiTUM\u0017 Garching" + subtext: Gebäude + - id: "0201" + type: building + name: "\u0019StudiTUM\u0017 Innenstadt (S1)" + subtext: Gebäude + - id: "4113" + type: building + name: "\u0019StudiTUM\u0017 Weihenstephan" + subtext: Gebäude + n_visible: 3 + estimatedTotalHits: 3 +- facet: rooms + entries: + - id: 4113.01.105 + type: room + name: 4113.01.105 ( Hörsaal 4 (WZWH04)) + subtext: "weihenstephan, StudiTUM" + subtext_bold: O1 5@4113 + - id: 0201.01.001 + type: room + name: 0201.01.001 ( Stillarbeitsraum) + subtext: "stammgelände, StudiTUM" + subtext_bold: 1.01@0201 + - id: 0201.01.002 + type: room + name: 0201.01.002 ( Einzelarbeitsraum) + subtext: "stammgelände, StudiTUM" + subtext_bold: 1.02@0201 + - id: 0201.01.003 + type: room + name: 0201.01.003 ( Einzelarbeitsraum) + subtext: "stammgelände, StudiTUM" + subtext_bold: 1.03@0201 + - id: 0201.01.007 + type: room + name: 0201.01.007 ( Gruppenarbeitsraum) + subtext: "stammgelände, StudiTUM" + subtext_bold: 1.07@0201 + - id: 0201.01.008 + type: room + name: 0201.01.008 ( Einzelarbeitsraum) + subtext: "stammgelände, StudiTUM" + subtext_bold: 1.08@0201 + - id: 0201.02.001 + type: room + name: 0201.02.001 ( Stillarbeitsraum) + subtext: "stammgelände, StudiTUM" + subtext_bold: 2.01@0201 + n_visible: 7 + estimatedTotalHits: 229 diff --git a/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__bad_queries-5.snap b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__bad_queries-5.snap new file mode 100644 index 000000000..878505d9c --- /dev/null +++ b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__bad_queries-5.snap @@ -0,0 +1,64 @@ +--- +source: main-api/src/search/search_executor/mod.rs +description: "uses 'str.' instead of 'straße'" +expression: actual +info: "'Karlsstr. 47' should get '2906' in 1 results # uses 'str.' instead of 'straße'" +--- +- facet: rooms + entries: + - id: 2906.01.025 + type: room + name: 2906.01.025 ( Karlstraße-Seminarraum) + subtext: Karlstraße 45/47 + subtext_bold: 1025@2906 + - id: 2906.02.026 + type: room + name: 2906.02.026 ( Karlstraße-Seminarraum) + subtext: Karlstraße 45/47 + subtext_bold: 2026@2906 + - id: 2906.03.001 + type: room + name: 2906.03.001 ( Seminarraum) + subtext: Karlstraße 45/47 + subtext_bold: 3001@2906 + - id: 2906.05.001 + type: room + name: 2906.05.001 ( Unterrichtsraum) + subtext: Karlstraße 45/47 + subtext_bold: 5001@2906 + - id: 2906.DG.009 + type: room + name: 2906.DG.009 ( Seminarraum) + subtext: Karlstraße 45/47 + subtext_bold: 6009@2906 + - id: 2906.02.001 + type: room + name: 2906.02.001 ( Bibliothek) + subtext: Karlstraße 45/47 + subtext_bold: 2001@2906 + - id: 2906.01.001 + type: room + name: 2906.01.001 ( Büro/EDV-Raum) + subtext: Karlstraße 45/47 + subtext_bold: 1001@2906 + - id: 2906.01.002 + type: room + name: 2906.01.002 ( Büro) + subtext: Karlstraße 45/47 + subtext_bold: 1002@2906 + - id: 2906.01.003 + type: room + name: 2906.01.003 ( Büro) + subtext: Karlstraße 45/47 + subtext_bold: 1003@2906 + - id: 2906.01.004 + type: room + name: 2906.01.004 ( Büro) + subtext: Karlstraße 45/47 + subtext_bold: 1004@2906 + n_visible: 10 + estimatedTotalHits: 204 +- facet: sites_buildings + entries: [] + n_visible: 0 + estimatedTotalHits: 0 diff --git a/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__bad_queries-6.snap b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__bad_queries-6.snap new file mode 100644 index 000000000..fdfecd9cf --- /dev/null +++ b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__bad_queries-6.snap @@ -0,0 +1,75 @@ +--- +source: main-api/src/search/search_executor/mod.rs +description: "" +expression: actual +info: "'mi hs 1' should get '5602.EG.001' in 1 results" +--- +- facet: sites_buildings + entries: + - id: "5602" + type: building + name: "\u0019Hörsaal\u0017 \u00191\u0017 (BT02)" + subtext: Gebäudeteil + - id: mi + type: joined_building + name: "Fakultät Mathematik & Informatik (FMI oder \u0019MI\u0017)" + subtext: Gebäudekomplex + - id: "5605" + type: building + name: Finger 05 (BT05) + subtext: Gebäudeteil + - id: "5606" + type: building + name: Finger 06 (BT06) + subtext: Gebäudeteil + n_visible: 1 + estimatedTotalHits: 14 +- facet: rooms + entries: + - id: 5602.EG.001 + type: room + name: "5602.EG.001 ( \u0019MI\u0017 \u0019HS\u0017 \u00191\u0017, Friedrich L. Bauer \u0019Hörsaal\u0017)" + subtext: "garching, Mathe/Info (MI)" + subtext_bold: 00.02.001@5602 + - id: 5602.EG.002 + type: room + name: "5602.EG.002 ( \u0019MI\u0017 \u0019Hörsaal\u0017 Regieraum)" + subtext: "garching, Mathe/Info (MI)" + subtext_bold: 00.02.002@5602 + - id: 5602.U1.001 + type: room + name: 5602.U1.001 ( Technikraum) + subtext: "garching, Mathe/Info (MI)" + subtext_bold: "-1.02.001@5602" + - id: 5602.U1.004 + type: room + name: 5602.U1.004 ( Treppe im Freien) + subtext: "garching, Mathe/Info (MI)" + subtext_bold: "-1.02.004@5602" + - id: 5604.EG.011 + type: room + name: "5604.EG.011 ( \u0019MI\u0017 \u0019Hörsaal\u0017 2)" + subtext: "garching, Mathe/Info (MI)" + subtext_bold: 00.04.011@5604 + - id: 5606.EG.011 + type: room + name: "5606.EG.011 ( \u0019MI\u0017 \u0019Hörsaal\u0017 3)" + subtext: "garching, Mathe/Info (MI)" + subtext_bold: 00.06.011@5606 + - id: 5601.EG.001 + type: room + name: 5601.EG.001 ( Magistrale) + subtext: "garching, Mathe/Info (MI)" + subtext_bold: 00.01.001@5601 + - id: 5603.01.011 + type: room + name: 5603.01.011 ( Gruppenarbeitsraum) + subtext: "garching, Mathe/Info (MI)" + subtext_bold: 01.03.011@5603 + - id: 5603.01.031B + type: room + name: 5603.01.031B ( Einzelarbeitsraum) + subtext: "garching, Mathe/Info (MI)" + subtext_bold: 01.03.031B@5603 + n_visible: 9 + estimatedTotalHits: 1000 diff --git a/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__bad_queries-7.snap b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__bad_queries-7.snap new file mode 100644 index 000000000..f7b3dd04f --- /dev/null +++ b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__bad_queries-7.snap @@ -0,0 +1,14 @@ +--- +source: main-api/src/search/search_executor/mod.rs +description: "old name before the NS renamings was 'MW 0001, Gustav-Niemann-Hörsaal', changed in Q1 24" +expression: actual +info: "'niemann' should get '5510.EG.001' in 1 results # old name before the NS renamings was 'MW 0001, Gustav-Niemann-Hörsaal', changed in Q1 24" +--- +- facet: rooms + entries: [] + n_visible: 0 + estimatedTotalHits: 0 +- facet: sites_buildings + entries: [] + n_visible: 0 + estimatedTotalHits: 0 diff --git a/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__bad_queries-8.snap b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__bad_queries-8.snap new file mode 100644 index 000000000..23db60139 --- /dev/null +++ b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__bad_queries-8.snap @@ -0,0 +1,59 @@ +--- +source: main-api/src/search/search_executor/mod.rs +description: "old name before the NS renamings was 'MW 0001, Gustav-Niemann-Hörsaal', changed in Q1 24" +expression: actual +info: "'mw g niemann' should get '5510.EG.001' in 1 results # old name before the NS renamings was 'MW 0001, Gustav-Niemann-Hörsaal', changed in Q1 24" +--- +- facet: sites_buildings + entries: + - id: mw + type: joined_building + name: "Maschinenwesen (\u0019MW\u0017)" + subtext: Gebäudekomplex + - id: "5506" + type: building + name: "Gebäudeteil 6, Institut für Luft- und Raumfahrt" + subtext: Gebäudeteil + - id: "5501" + type: building + name: "Gebäudeteil 1, Institut für Mechatronik" + subtext: Gebäudeteil + - id: "5502" + type: building + name: "Gebäudeteil 2, Institut für Werkstoffe und Verarbeitung" + subtext: Gebäudeteil + - id: "5504" + type: building + name: "Gebäudeteil 4, Institut für Verfahrenstechnik" + subtext: Gebäudeteil + n_visible: 5 + estimatedTotalHits: 19 +- facet: rooms + entries: + - id: 5510.02.001 + type: room + name: "5510.02.001 (\u0019MW\u0017 2001 Rudolf-Diesel-Hörsaal)" + subtext: "garching, Maschinenwesen (MW)" + subtext_bold: 2001@5510 + - id: 5502.01.250 + type: room + name: 5502.01.250 (Hörsaal) + subtext: "garching, Maschinenwesen (MW)" + subtext_bold: 1250@5502 + - id: 5502.EG.250 + type: room + name: 5502.EG.250 (Hörsaal) + subtext: "garching, Maschinenwesen (MW)" + subtext_bold: 0250@5502 + - id: 5503.EG.350 + type: room + name: 5503.EG.350 (Egbert-von-Hoyer-Hörsaal) + subtext: "garching, Maschinenwesen (MW)" + subtext_bold: 0350@5503 + - id: 5506.EG.608M + type: room + name: 5506.EG.608M ( Otto-Lilienthal-Hörsaal) + subtext: "garching, Maschinenwesen (MW)" + subtext_bold: 0608M@5506 + n_visible: 5 + estimatedTotalHits: 1000 diff --git a/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__bad_queries-9.snap b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__bad_queries-9.snap new file mode 100644 index 000000000..fbdf45264 --- /dev/null +++ b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__bad_queries-9.snap @@ -0,0 +1,14 @@ +--- +source: main-api/src/search/search_executor/mod.rs +description: "" +expression: actual +info: "'CH22209' should get '5402.01.220J' in 1 results" +--- +- facet: rooms + entries: [] + n_visible: 0 + estimatedTotalHits: 0 +- facet: sites_buildings + entries: [] + n_visible: 0 + estimatedTotalHits: 0 diff --git a/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__bad_queries.snap b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__bad_queries.snap new file mode 100644 index 000000000..c696c7f09 --- /dev/null +++ b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__bad_queries.snap @@ -0,0 +1,64 @@ +--- +source: main-api/src/search/search_executor/mod.rs +description: target is hallucinated as it currently does not exist +expression: actual +info: "mathe bib should get mi-bib in 1 # target is hallucinated as it currently does not exist" +--- +- facet: rooms + entries: + - id: 5603.01.011 + type: room + name: 5603.01.011 ( Gruppenarbeitsraum) + subtext: "garching, Mathe/Info (MI)" + subtext_bold: 01.03.011@5603 + - id: 5603.01.031B + type: room + name: 5603.01.031B ( Einzelarbeitsraum) + subtext: "garching, Mathe/Info (MI)" + subtext_bold: 01.03.031B@5603 + - id: 5603.01.032 + type: room + name: 5603.01.032 ( Gruppenarbeitsraum) + subtext: "garching, Mathe/Info (MI)" + subtext_bold: 01.03.032@5603 + - id: 5603.01.033A + type: room + name: 5603.01.033A ( Einzelarbeitsraum) + subtext: "garching, Mathe/Info (MI)" + subtext_bold: 01.03.033A@5603 + - id: 5603.01.033B + type: room + name: 5603.01.033B ( Einzelarbeitsraum) + subtext: "garching, Mathe/Info (MI)" + subtext_bold: 01.03.033B@5603 + - id: 5603.01.035A + type: room + name: 5603.01.035A ( Einzelarbeitsraum) + subtext: "garching, Mathe/Info (MI)" + subtext_bold: 01.03.035A@5603 + - id: 5603.01.035B + type: room + name: 5603.01.035B ( Einzelarbeitsraum) + subtext: "garching, Mathe/Info (MI)" + subtext_bold: 01.03.035B@5603 + - id: 5603.01.036 + type: room + name: 5603.01.036 ( Gruppenarbeitsraum) + subtext: "garching, Mathe/Info (MI)" + subtext_bold: 01.03.036@5603 + - id: 5603.01.037A + type: room + name: 5603.01.037A ( Einzelarbeitsraum) + subtext: "garching, Mathe/Info (MI)" + subtext_bold: 01.03.037A@5603 + - id: 5603.01.037B + type: room + name: 5603.01.037B ( Einzelarbeitsraum) + subtext: "garching, Mathe/Info (MI)" + subtext_bold: 01.03.037B@5603 + n_visible: 10 + estimatedTotalHits: 1000 +- facet: sites_buildings + entries: [] + n_visible: 0 + estimatedTotalHits: 0 diff --git a/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-10.snap b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-10.snap new file mode 100644 index 000000000..e0bd3adf2 --- /dev/null +++ b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-10.snap @@ -0,0 +1,60 @@ +--- +source: main-api/src/search/search_executor/mod.rs +description: "" +expression: actual +info: "'ZIEL' should get 'wzw-ziel' in 1 results" +--- +- facet: sites_buildings + entries: + - id: wzw-ziel + type: area + name: "\u0019ZIEL\u0017 – Institute for Food & Health" + subtext: Gebiet / Gruppe von Gebäuden + - id: "4224" + type: building + name: "\u0019ZIEL\u0017 IV - Biowissenschaften" + subtext: Gebäude + - id: "4124" + type: building + name: "\u0019ZIEL\u0017 II – Molekulare Biowissenschaften" + subtext: Gebäude + - id: "4126" + type: building + name: "\u0019ZIEL\u0017 I – Zentralinstitut für Ernährungs- und Lebensmittelforschung, Geschäftsstelle und Akademie" + subtext: Gebäude + n_visible: 4 + estimatedTotalHits: 3 +- facet: rooms + entries: + - id: 4124.U1.104 + type: room + name: 4124.U1.104 ( Seminarraum 23 /Übungsraum (WZWS23)) + subtext: "weihenstephan, ZIEL II – Molekulare Biowissenschaften" + subtext_bold: U/1.04@4124 + - id: 4126.01.609B + type: room + name: 4126.01.609B ( Seminarraum 14 (WZWS14)) + subtext: "weihenstephan, ZIEL I – Zentralinstitut für Ernährungs- und Lebensmittelforschung, Geschäftsstelle und Akademie" + subtext_bold: O.09 a/b@4126 + - id: 4126.U1.610B + type: room + name: 4126.U1.610B ( Seminarraum (gem. Nutzung 1124302030;11243) + subtext: "weihenstephan, ZIEL I – Zentralinstitut für Ernährungs- und Lebensmittelforschung, Geschäftsstelle und Akademie" + subtext_bold: U 10/2@4126 + - id: 4224.01.148 + type: room + name: 4224.01.148 ( Seminarraum 51 (WZWS51)) + subtext: "weihenstephan, ZIEL IV - Biowissenschaften" + subtext_bold: 1.48@4224 + - id: 4224.02.234 + type: room + name: 4224.02.234 ( Seminarraum 52 (WZWS52) (gem. Nutzung)) + subtext: "weihenstephan, ZIEL IV - Biowissenschaften" + subtext_bold: 2.34@4224 + - id: 4224.02.298 + type: room + name: 4224.02.298 ( Seminarraum 53 (WZWS53)) + subtext: "weihenstephan, ZIEL IV - Biowissenschaften" + subtext_bold: 2.98@4224 + n_visible: 6 + estimatedTotalHits: 708 diff --git a/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-11.snap b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-11.snap new file mode 100644 index 000000000..cbaa617c4 --- /dev/null +++ b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-11.snap @@ -0,0 +1,64 @@ +--- +source: main-api/src/search/search_executor/mod.rs +description: "" +expression: actual +info: "'5604.00.011' should get '5604.EG.011' in 1 results" +--- +- facet: rooms + entries: + - id: 5604.EG.011 + type: room + name: "\u00195604\u0017.EG.\u0019011\u0017 ( MI Hörsaal 2)" + subtext: "garching, Mathe/Info (MI)" + subtext_bold: 00.04.011@5604 + - id: 5604.EG.034 + type: room + name: "\u00195604\u0017.EG.034 ( Demonstrationspraktikum)" + subtext: "garching, Mathe/Info (MI)" + subtext_bold: 00.04.034@5604 + - id: 5604.EG.036 + type: room + name: "\u00195604\u0017.EG.036 ( Praktikumsraum-Physik)" + subtext: "garching, Mathe/Info (MI)" + subtext_bold: 00.04.036@5604 + - id: 5604.EG.038 + type: room + name: "\u00195604\u0017.EG.038 ( Praktikumsraum-Physik)" + subtext: "garching, Mathe/Info (MI)" + subtext_bold: 00.04.038@5604 + - id: 5604.EG.015 + type: room + name: "\u00195604\u0017.EG.015 ( WC-Herren)" + subtext: "garching, Mathe/Info (MI)" + subtext_bold: 00.04.015@5604 + - id: 5604.EG.016A + type: room + name: "\u00195604\u0017.EG.016A ( Putzraum)" + subtext: "garching, Mathe/Info (MI)" + subtext_bold: 00.04.016A@5604 + - id: 5604.EG.019 + type: room + name: "\u00195604\u0017.EG.019 ( WC-Damen)" + subtext: "garching, Mathe/Info (MI)" + subtext_bold: 00.04.019@5604 + - id: 5604.EG.013 + type: room + name: "\u00195604\u0017.EG.013 ( Abstellraum)" + subtext: "garching, Mathe/Info (MI)" + subtext_bold: 00.04.013@5604 + - id: 5604.EG.016B + type: room + name: "\u00195604\u0017.EG.016B ( Heizung/Brauchwassererwärmung)" + subtext: "garching, Mathe/Info (MI)" + subtext_bold: 00.04.016B@5604 + - id: 5604.EG.018 + type: room + name: "\u00195604\u0017.EG.018 ( Heizung/Brauchwassererwärmung)" + subtext: "garching, Mathe/Info (MI)" + subtext_bold: 00.04.018@5604 + n_visible: 10 + estimatedTotalHits: 150 +- facet: sites_buildings + entries: [] + n_visible: 0 + estimatedTotalHits: 1 diff --git a/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-12.snap b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-12.snap new file mode 100644 index 000000000..f19884181 --- /dev/null +++ b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-12.snap @@ -0,0 +1,64 @@ +--- +source: main-api/src/search/search_executor/mod.rs +description: MI Magistrale +expression: actual +info: "'5601.EG.001' should get '5601.EG.001' in 1 results # MI Magistrale" +--- +- facet: rooms + entries: + - id: 5601.EG.001 + type: room + name: "\u00195601\u0017.\u0019EG\u0017.\u0019001\u0017 ( Magistrale)" + subtext: "garching, Mathe/Info (MI)" + subtext_bold: 00.01.001@5601 + - id: 5601.EG.010 + type: room + name: "\u00195601\u0017.\u0019EG\u0017.010 ( Pforte)" + subtext: "garching, Mathe/Info (MI)" + subtext_bold: 00.01.010@5601 + - id: 5601.EG.002 + type: room + name: "\u00195601\u0017.\u0019EG\u0017.002 ( Gang, Weg im Freien)" + subtext: "garching, Mathe/Info (MI)" + subtext_bold: 00.01.002@5601 + - id: 5601.EG.003 + type: room + name: "\u00195601\u0017.\u0019EG\u0017.003 ( Windfang)" + subtext: "garching, Mathe/Info (MI)" + subtext_bold: 00.01.003@5601 + - id: 5601.EG.004 + type: room + name: "\u00195601\u0017.\u0019EG\u0017.004 ( Gang, Weg im Freien)" + subtext: "garching, Mathe/Info (MI)" + subtext_bold: 00.01.004@5601 + - id: 5601.EG.005 + type: room + name: "\u00195601\u0017.\u0019EG\u0017.005 ( Windfang)" + subtext: "garching, Mathe/Info (MI)" + subtext_bold: 00.01.005@5601 + - id: 5601.EG.008 + type: room + name: "\u00195601\u0017.\u0019EG\u0017.008 ( Gang, Weg im Freien)" + subtext: "garching, Mathe/Info (MI)" + subtext_bold: 00.01.008@5601 + - id: 5601.EG.009 + type: room + name: "\u00195601\u0017.\u0019EG\u0017.009 ( Windfang)" + subtext: "garching, Mathe/Info (MI)" + subtext_bold: 00.01.009@5601 + - id: 5601.EG.011 + type: room + name: "\u00195601\u0017.\u0019EG\u0017.011 ( Windfang)" + subtext: "garching, Mathe/Info (MI)" + subtext_bold: 00.01.011@5601 + - id: 5601.EG.012 + type: room + name: "\u00195601\u0017.\u0019EG\u0017.012 ( Gang, Weg im Freien)" + subtext: "garching, Mathe/Info (MI)" + subtext_bold: 00.01.012@5601 + n_visible: 10 + estimatedTotalHits: 57 +- facet: sites_buildings + entries: [] + n_visible: 0 + estimatedTotalHits: 1 diff --git a/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-13.snap b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-13.snap new file mode 100644 index 000000000..e87e93f6e --- /dev/null +++ b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-13.snap @@ -0,0 +1,65 @@ +--- +source: main-api/src/search/search_executor/mod.rs +description: A search for the Architects name should return the correct room +expression: actual +info: "'00.01.001' should get '5601.EG.001' in 1 results # A search for the Architects name should return the correct room" +--- +- facet: rooms + entries: + - id: 5601.EG.001 + type: room + name: "5601.EG.\u0019001\u0017 ( Magistrale)" + subtext: "garching, Mathe/Info (MI)" + subtext_bold: 00.01.001@5601 + parsed_id: "MI \u001900.01.001\u0017" + - id: 5510.EG.001 + type: room + name: "5510.EG.\u0019001\u0017 (Hörsaal)" + subtext: "garching, Maschinenwesen (MW)" + subtext_bold: 0001@5510 + - id: 3902.EG.001 + type: room + name: "3902.EG.\u0019001\u0017 ( Unterricht 2)" + subtext: "zhs-wassersportplatz-starnberg, Seglerheim" + subtext_bold: 0001@3902 + - id: 5414.EG.001 + type: room + name: "5414.EG.\u0019001\u0017 ( ZEI-Seminarraum)" + subtext: "garching, Zentrum für Energie und Information (ZEI)" + subtext_bold: 0001@5414 + - id: 5433.EG.001 + type: room + name: "5433.EG.\u0019001\u0017 ( Seminarraum 1)" + subtext: "garching, Entrepreneurship Research Institute" + subtext_bold: 0001@5433 + - id: 7910.EG.001 + type: room + name: "7910.EG.\u0019001\u0017 ( Messkabine & Messtationen)" + subtext: Oskar-von-Miller-Turm (Meteo-Mast) + subtext_bold: 0001@7910 + - id: 0205.EG.001 + type: room + name: "0205.EG.\u0019001\u0017 ( Büro)" + subtext: "stammgelände, Arcisstr. 19 (S5)" + subtext_bold: 0001@0205 + - id: 0401.EG.001 + type: room + name: "0401.EG.\u0019001\u0017 ( WC-Damen)" + subtext: "stammgelände, Richard-Wagner-Str. 18 (SW1)" + subtext_bold: 0001@0401 + - id: 5116.EG.001 + type: room + name: "5116.EG.\u0019001\u0017 ( Trafostation)" + subtext: "garching, Trafostation des ZNN" + subtext_bold: 0001@5116 + - id: 5125.EG.001 + type: room + name: "5125.EG.\u0019001\u0017 ( BMZ)" + subtext: "garching, Laboratory for Extreme Photonics (LEX), LMU" + subtext_bold: 0001@5125 + n_visible: 10 + estimatedTotalHits: 1000 +- facet: sites_buildings + entries: [] + n_visible: 0 + estimatedTotalHits: 0 diff --git a/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-14.snap b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-14.snap new file mode 100644 index 000000000..d88bd8a34 --- /dev/null +++ b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-14.snap @@ -0,0 +1,66 @@ +--- +source: main-api/src/search/search_executor/mod.rs +description: "" +expression: actual +info: "'03.08.011' should get '5608.03.011' in 1 results" +--- +- facet: rooms + entries: + - id: 5608.03.011 + type: room + name: "5608.\u001903\u0017.\u0019011\u0017 ( Seminarraum (M1/M7))" + subtext: "garching, Mathe/Info (MI)" + subtext_bold: 03.08.011@5608 + parsed_id: "MI \u001903.08.011\u0017" + - id: 5608.03.011A + type: room + name: "5608.\u001903\u0017.\u0019011\u0017A ( Balkon)" + subtext: "garching, Mathe/Info (MI)" + subtext_bold: 03.08.011A@5608 + parsed_id: "MI \u001903.08.011\u0017A" + - id: 8102.03.108 + type: room + name: "8102.\u001903\u0017.108 ( Hörsaal)" + subtext: "garching-hochbrück, Business Campus 2" + subtext_bold: BC2 3.1.08@8102 + - id: 5608.03.033A + type: room + name: "5608.\u001903\u0017.033A ( Kopierer)" + subtext: "garching, Mathe/Info (MI)" + subtext_bold: 03.08.033A@5608 + - id: 2410.03.308 + type: room + name: "2410.\u001903\u0017.308 ( WC-Damen)" + subtext: "Heßstraße 134, Munich School of Robotics and Machine Intelligence" + subtext_bold: 03.08@2410 + - id: 5608.03.015 + type: room + name: "5608.\u001903\u0017.015 ( WC-Herren)" + subtext: "garching, Mathe/Info (MI)" + subtext_bold: 03.08.015@5608 + - id: 5608.03.016 + type: room + name: "5608.\u001903\u0017.016 ( Beh.-WC / Wickeltisch)" + subtext: "garching, Mathe/Info (MI)" + subtext_bold: 03.08.016@5608 + - id: 5608.03.017A + type: room + name: "5608.\u001903\u0017.017A ( Putzraum)" + subtext: "garching, Mathe/Info (MI)" + subtext_bold: 03.08.017A@5608 + - id: 5608.03.021 + type: room + name: "5608.\u001903\u0017.021 ( Büro)" + subtext: "garching, Mathe/Info (MI)" + subtext_bold: 03.08.021@5608 + - id: 5608.03.022 + type: room + name: "5608.\u001903\u0017.022 ( Besprechungsraum)" + subtext: "garching, Mathe/Info (MI)" + subtext_bold: 03.08.022@5608 + n_visible: 10 + estimatedTotalHits: 1000 +- facet: sites_buildings + entries: [] + n_visible: 0 + estimatedTotalHits: 0 diff --git a/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-15.snap b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-15.snap new file mode 100644 index 000000000..08ed7a702 --- /dev/null +++ b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-15.snap @@ -0,0 +1,59 @@ +--- +source: main-api/src/search/search_executor/mod.rs +description: "" +expression: actual +info: "'MW 1801' should get '5508.02.801' in 1 results" +--- +- facet: rooms + entries: + - id: 5508.02.801 + type: room + name: 5508.02.801 (Hörsaal) + subtext: "garching, Maschinenwesen (MW)" + subtext_bold: 1801@5508 + - id: 5508.01.801A + type: room + name: 5508.01.801A (Vorbereitung) + subtext: "garching, Maschinenwesen (MW)" + subtext_bold: 1801a@5508 + - id: 5510.02.001 + type: room + name: "5510.02.001 (\u0019MW\u0017 2001 Rudolf-Diesel-Hörsaal)" + subtext: "garching, Maschinenwesen (MW)" + subtext_bold: 2001@5510 + - id: 5502.01.250 + type: room + name: 5502.01.250 (Hörsaal) + subtext: "garching, Maschinenwesen (MW)" + subtext_bold: 1250@5502 + - id: 5502.EG.250 + type: room + name: 5502.EG.250 (Hörsaal) + subtext: "garching, Maschinenwesen (MW)" + subtext_bold: 0250@5502 + n_visible: 5 + estimatedTotalHits: 1000 +- facet: sites_buildings + entries: + - id: mw + type: joined_building + name: "Maschinenwesen (\u0019MW\u0017)" + subtext: Gebäudekomplex + - id: "5506" + type: building + name: "Gebäudeteil 6, Institut für Luft- und Raumfahrt" + subtext: Gebäudeteil + - id: "5501" + type: building + name: "Gebäudeteil 1, Institut für Mechatronik" + subtext: Gebäudeteil + - id: "5502" + type: building + name: "Gebäudeteil 2, Institut für Werkstoffe und Verarbeitung" + subtext: Gebäudeteil + - id: "5504" + type: building + name: "Gebäudeteil 4, Institut für Verfahrenstechnik" + subtext: Gebäudeteil + n_visible: 0 + estimatedTotalHits: 19 diff --git a/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-16.snap b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-16.snap new file mode 100644 index 000000000..62540f82c --- /dev/null +++ b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-16.snap @@ -0,0 +1,64 @@ +--- +source: main-api/src/search/search_executor/mod.rs +description: splitting necessary +expression: actual +info: "'MW1801' should get '5508.02.801' in 1 results # splitting necessary" +--- +- facet: rooms + entries: + - id: 5508.02.801 + type: room + name: 5508.02.801 (Hörsaal) + subtext: "garching, Maschinenwesen (MW)" + subtext_bold: 1801@5508 + - id: 5510.02.001 + type: room + name: "5510.02.001 (\u0019MW\u0017 2001 Rudolf-Diesel-Hörsaal)" + subtext: "garching, Maschinenwesen (MW)" + subtext_bold: 2001@5510 + - id: 5502.01.250 + type: room + name: 5502.01.250 (Hörsaal) + subtext: "garching, Maschinenwesen (MW)" + subtext_bold: 1250@5502 + - id: 5502.EG.250 + type: room + name: 5502.EG.250 (Hörsaal) + subtext: "garching, Maschinenwesen (MW)" + subtext_bold: 0250@5502 + - id: 5503.EG.350 + type: room + name: 5503.EG.350 (Egbert-von-Hoyer-Hörsaal) + subtext: "garching, Maschinenwesen (MW)" + subtext_bold: 0350@5503 + - id: 5506.EG.608M + type: room + name: 5506.EG.608M ( Otto-Lilienthal-Hörsaal) + subtext: "garching, Maschinenwesen (MW)" + subtext_bold: 0608M@5506 + - id: 5510.EG.001 + type: room + name: 5510.EG.001 (Hörsaal) + subtext: "garching, Maschinenwesen (MW)" + subtext_bold: 0001@5510 + - id: 5539.EG.001A + type: room + name: "5539.EG.001A ( Hörsaal 1A, \"Zelt\")" + subtext: "garching, Interims III" + subtext_bold: 0.001A@5539 + - id: 5539.EG.001B + type: room + name: "5539.EG.001B ( Hörsaal 1B, \"Zelt\")" + subtext: "garching, Interims III" + subtext_bold: 0.001B@5539 + - id: 5539.EG.002 + type: room + name: "5539.EG.002 ( Hörsaal 2, \"Zelt\")" + subtext: "garching, Interims III" + subtext_bold: 0.002@5539 + n_visible: 10 + estimatedTotalHits: 1000 +- facet: sites_buildings + entries: [] + n_visible: 0 + estimatedTotalHits: 0 diff --git a/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-17.snap b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-17.snap new file mode 100644 index 000000000..099ab4049 --- /dev/null +++ b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-17.snap @@ -0,0 +1,64 @@ +--- +source: main-api/src/search/search_executor/mod.rs +description: splitting necessary +expression: actual +info: "'MW0001' should get '5510.EG.001' in 1 results # splitting necessary" +--- +- facet: rooms + entries: + - id: 5510.EG.001 + type: room + name: 5510.EG.001 (Hörsaal) + subtext: "garching, Maschinenwesen (MW)" + subtext_bold: 0001@5510 + - id: 5519.EG.001 + type: room + name: 5519.EG.001 ( Versuchsfläche I) + subtext: "garching, Maschinenwesen (MW)" + subtext_bold: 0001@5519 + - id: 5510.02.001 + type: room + name: "5510.02.001 (\u0019MW\u0017 2001 Rudolf-Diesel-Hörsaal)" + subtext: "garching, Maschinenwesen (MW)" + subtext_bold: 2001@5510 + - id: 5502.01.250 + type: room + name: 5502.01.250 (Hörsaal) + subtext: "garching, Maschinenwesen (MW)" + subtext_bold: 1250@5502 + - id: 5502.EG.250 + type: room + name: 5502.EG.250 (Hörsaal) + subtext: "garching, Maschinenwesen (MW)" + subtext_bold: 0250@5502 + - id: 5503.EG.350 + type: room + name: 5503.EG.350 (Egbert-von-Hoyer-Hörsaal) + subtext: "garching, Maschinenwesen (MW)" + subtext_bold: 0350@5503 + - id: 5506.EG.608M + type: room + name: 5506.EG.608M ( Otto-Lilienthal-Hörsaal) + subtext: "garching, Maschinenwesen (MW)" + subtext_bold: 0608M@5506 + - id: 5508.02.801 + type: room + name: 5508.02.801 (Hörsaal) + subtext: "garching, Maschinenwesen (MW)" + subtext_bold: 1801@5508 + - id: 5539.EG.001A + type: room + name: "5539.EG.001A ( Hörsaal 1A, \"Zelt\")" + subtext: "garching, Interims III" + subtext_bold: 0.001A@5539 + - id: 5539.EG.001B + type: room + name: "5539.EG.001B ( Hörsaal 1B, \"Zelt\")" + subtext: "garching, Interims III" + subtext_bold: 0.001B@5539 + n_visible: 10 + estimatedTotalHits: 1000 +- facet: sites_buildings + entries: [] + n_visible: 0 + estimatedTotalHits: 0 diff --git a/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-18.snap b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-18.snap new file mode 100644 index 000000000..cf6dc4762 --- /dev/null +++ b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-18.snap @@ -0,0 +1,64 @@ +--- +source: main-api/src/search/search_executor/mod.rs +description: splitting necessary +expression: actual +info: "'MW2001' should get '5510.02.001' in 1 results # splitting necessary" +--- +- facet: rooms + entries: + - id: 5510.02.001 + type: room + name: "5510.02.001 (\u0019MW\u0017 \u00192001\u0017 Rudolf-Diesel-Hörsaal)" + subtext: "garching, Maschinenwesen (MW)" + subtext_bold: 2001@5510 + - id: 5502.01.250 + type: room + name: 5502.01.250 (Hörsaal) + subtext: "garching, Maschinenwesen (MW)" + subtext_bold: 1250@5502 + - id: 5502.EG.250 + type: room + name: 5502.EG.250 (Hörsaal) + subtext: "garching, Maschinenwesen (MW)" + subtext_bold: 0250@5502 + - id: 5503.EG.350 + type: room + name: 5503.EG.350 (Egbert-von-Hoyer-Hörsaal) + subtext: "garching, Maschinenwesen (MW)" + subtext_bold: 0350@5503 + - id: 5506.EG.608M + type: room + name: 5506.EG.608M ( Otto-Lilienthal-Hörsaal) + subtext: "garching, Maschinenwesen (MW)" + subtext_bold: 0608M@5506 + - id: 5508.02.801 + type: room + name: 5508.02.801 (Hörsaal) + subtext: "garching, Maschinenwesen (MW)" + subtext_bold: 1801@5508 + - id: 5510.EG.001 + type: room + name: 5510.EG.001 (Hörsaal) + subtext: "garching, Maschinenwesen (MW)" + subtext_bold: 0001@5510 + - id: 5539.EG.001A + type: room + name: "5539.EG.001A ( Hörsaal 1A, \"Zelt\")" + subtext: "garching, Interims III" + subtext_bold: 0.001A@5539 + - id: 5539.EG.001B + type: room + name: "5539.EG.001B ( Hörsaal 1B, \"Zelt\")" + subtext: "garching, Interims III" + subtext_bold: 0.001B@5539 + - id: 5539.EG.002 + type: room + name: "5539.EG.002 ( Hörsaal 2, \"Zelt\")" + subtext: "garching, Interims III" + subtext_bold: 0.002@5539 + n_visible: 10 + estimatedTotalHits: 1000 +- facet: sites_buildings + entries: [] + n_visible: 0 + estimatedTotalHits: 0 diff --git a/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-19.snap b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-19.snap new file mode 100644 index 000000000..66ed6ba17 --- /dev/null +++ b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-19.snap @@ -0,0 +1,66 @@ +--- +source: main-api/src/search/search_executor/mod.rs +description: "" +expression: actual +info: "'1801 maschinen' should get '5508.02.801' in 1 results" +--- +- facet: rooms + entries: + - id: 5508.02.801 + type: room + name: 5508.02.801 (Hörsaal) + subtext: "garching, Maschinenwesen (MW)" + subtext_bold: 1801@5508 + parsed_id: "MW \u00191801\u0017" + - id: 0508.01.801 + type: room + name: 0508.01.801 ( Wasch.-/Putzraum) + subtext: "stammgelände, Heizkraftwerk (Z8)" + subtext_bold: 1801@0508 + parsed_id: "\u00191801\u0017 Heizkraftwerk (Z8)" + - id: 0106.U1.801 + type: room + name: 0106.U1.801 ( Archiv) + subtext: "stammgelände, Materialprüfamt (N6)" + subtext_bold: N-1801@0106 + - id: 2332.01.217 + type: room + name: "2332.01.217 ( (32.\u00191\u0017.\u0019801\u0017) Büro)" + subtext: "campus-im-olympiapark-sz, CiO/SG Institute Ost" + subtext_bold: 01.2332.217@2332 + - id: 5115.01.801 + type: room + name: 5115.01.801 ( Treppe Nord) + subtext: "garching, Zentrum für Nanotechnologie & -materialien (ZNN)" + subtext_bold: 1.801@5115 + - id: 5301.01.801 + type: room + name: 5301.01.801 ( Treppenhaus) + subtext: "garching, Institute for Advanced Study (IAS)" + subtext_bold: 1.801@5301 + - id: 5212.01.801 + type: room + name: 5212.01.801 ( Treppenhaus West) + subtext: "garching, RCM Radiochemie München" + subtext_bold: H.1.801@5212 + - id: 5212.01.801L + type: room + name: 5212.01.801L ( Aufzug) + subtext: "garching, RCM Radiochemie München" + subtext_bold: L.1.801@5212 + - id: 5212.U1.801 + type: room + name: 5212.U1.801 ( Treppenhaus West) + subtext: "garching, RCM Radiochemie München" + subtext_bold: H.-1.801@5212 + - id: 5212.U1.801L + type: room + name: 5212.U1.801L ( Aufzug) + subtext: "garching, RCM Radiochemie München" + subtext_bold: L.-1.801@5212 + n_visible: 10 + estimatedTotalHits: 10 +- facet: sites_buildings + entries: [] + n_visible: 0 + estimatedTotalHits: 0 diff --git a/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-2.snap b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-2.snap new file mode 100644 index 000000000..f2b140d93 --- /dev/null +++ b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-2.snap @@ -0,0 +1,59 @@ +--- +source: main-api/src/search/search_executor/mod.rs +description: "" +expression: actual +info: wzw should get wzw +--- +- facet: sites_buildings + entries: + - id: wzw + type: campus + name: Campus Weihenstephan (Freising) + subtext: Campus + - id: wzw-extern + type: area + name: School of of Life Sciences Außenstellen + subtext: Gebiet / Gruppe von Gebäuden + - id: wzw-berg + type: area + name: Gebiet 4100 Berg + subtext: Gebiet / Gruppe von Gebäuden + - id: wzw-mitte + type: area + name: Gebiet 4200 Mitte + subtext: Gebiet / Gruppe von Gebäuden + - id: wzw-nord + type: area + name: Gebiet 4300 Nord / Hochfeld + subtext: Gebiet / Gruppe von Gebäuden + n_visible: 5 + estimatedTotalHits: 170 +- facet: rooms + entries: + - id: 4101.01.129 + type: room + name: "4101.01.129 ( Hörsaal 6 (\u0019WZW\u0017H06))" + subtext: "weihenstephan, Verwaltung / BLQ Brau- und Lebensmittelqualität" + subtext_bold: 129@4101 + - id: 4102.EG.034 + type: room + name: "4102.EG.034 ( Hörsaal 1 (\u0019WZW\u0017H01))" + subtext: "weihenstephan, Hörsaal- und Dekanatsgebäude" + subtext_bold: E-34@4102 + - id: 4102.EG.036 + type: room + name: "4102.EG.036 ( Hörsaal 2 (\u0019WZW\u0017H02))" + subtext: "weihenstephan, Hörsaal- und Dekanatsgebäude" + subtext_bold: E-35@4102 + - id: 4108.EG.105 + type: room + name: "4108.EG.105 ( Hörsaal 9 (\u0019WZW\u0017H09))" + subtext: "weihenstephan, BLQ Lebensmittelsicherheit" + subtext_bold: 105@4108 + - id: 4108.EG.106 + type: room + name: "4108.EG.106 ( Hörsaal 8 (\u0019WZW\u0017H08))" + subtext: "weihenstephan, BLQ Lebensmittelsicherheit" + subtext_bold: 106@4108 + n_visible: 5 + estimatedTotalHits: 1000 diff --git a/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-20.snap b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-20.snap new file mode 100644 index 000000000..796b1a7aa --- /dev/null +++ b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-20.snap @@ -0,0 +1,63 @@ +--- +source: main-api/src/search/search_executor/mod.rs +description: "" +expression: actual +info: "'Raum 0337 mw' should get '5503.EG.337' in 1 results" +--- +- facet: rooms + entries: + - id: 5503.EG.337 + type: room + name: 5503.EG.337 (Seminarraum) + subtext: "garching, Maschinenwesen (MW)" + subtext_bold: 0337@5503 + - id: 0503.EG.337 + type: room + name: 0503.EG.337 ( Büro) + subtext: "stammgelände, Thierschbau (Z3)" + subtext_bold: 0337@0503 + - id: 2334.EG.128 + type: room + name: "2334.EG.128 ( (34.\u00190\u0017.\u0019337\u0017) Büro)" + subtext: "campus-im-olympiapark-sz, CiO/SG Institute West, Bibliothek" + subtext_bold: 00.2334.128@2334 + - id: 0509.EG.980 + type: room + name: "0509.EG.980 (Audimax, Werner-von-Siemens-Hörsaal)" + subtext: "stammgelände, Wienandsbau (Z9)" + subtext_bold: 0980@0509 + - id: 8120.EG.001 + type: room + name: 8120.EG.001 (Hörsaal im Galileo) + subtext: "garching, Galileo" + subtext_bold: Hörsaal@8120 + - id: 8120.01.101 + type: room + name: 8120.01.101 (Audimax im Galileo) + subtext: "garching, Galileo" + subtext_bold: Audimax@8120 + - id: 0101.02.179 + type: room + name: 0101.02.179 (Wilhelm-Nusselt-Hörsaal) + subtext: "stammgelände, U-Trakt (N1)" + subtext_bold: N1179@0101 + - id: 0101.02.189 + type: room + name: 0101.02.189 (Hans-Piloty-Hörsaal) + subtext: "stammgelände, U-Trakt (N1)" + subtext_bold: N1189@0101 + - id: 0101.02.190 + type: room + name: 0101.02.190 (Hans-Heinrich-Meinke-Hörsaal) + subtext: "stammgelände, U-Trakt (N1)" + subtext_bold: N1190@0101 + n_visible: 9 + estimatedTotalHits: 1000 +- facet: sites_buildings + entries: + - id: "0109" + type: building + name: "Reflexionsarmer \u0019Raum\u0017 (N9)" + subtext: Gebäude + n_visible: 0 + estimatedTotalHits: 1 diff --git a/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-21.snap b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-21.snap new file mode 100644 index 000000000..eb1df1990 --- /dev/null +++ b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-21.snap @@ -0,0 +1,64 @@ +--- +source: main-api/src/search/search_executor/mod.rs +description: "" +expression: actual +info: "'pyhsik hs 2' should get '5101.EG.502' in 1 results" +--- +- facet: rooms + entries: + - id: 5101.EG.502 + type: room + name: "5101.EG.502 ( \u0019Physik\u0017 \u0019Hörsaal\u0017 \u00192\u0017)" + subtext: "garching, Physik I" + subtext_bold: 2502@5101 + - id: 5101.EG.503 + type: room + name: "5101.EG.503 ( \u0019Physik\u0017 \u0019Hörsaal\u0017 3)" + subtext: "garching, Physik I" + subtext_bold: 2503@5101 + - id: 5101.EG.501 + type: room + name: "5101.EG.501 ( Rudolf-Mößbauer-\u0019Hörsaal\u0017)" + subtext: "garching, Physik I" + subtext_bold: 2501@5101 + - id: 0102.U1.216D + type: room + name: "0102.U1.\u00192\u001716D ( Versuchsraum \u0019HS\u0017/NS)" + subtext: "stammgelände, Hochvolthaus (N2)" + subtext_bold: N-1216D@0102 + - id: 0102.U1.216E + type: room + name: "0102.U1.\u00192\u001716E ( Versuchsraum \u0019HS\u0017/NS)" + subtext: "stammgelände, Hochvolthaus (N2)" + subtext_bold: N-1216E@0102 + - id: 0102.U1.216F + type: room + name: "0102.U1.\u00192\u001716F ( Versuchsraum \u0019HS\u0017/NS)" + subtext: "stammgelände, Hochvolthaus (N2)" + subtext_bold: N-1216F@0102 + - id: 0102.U1.216G + type: room + name: "0102.U1.\u00192\u001716G ( Versuchsraum \u0019HS\u0017/NS)" + subtext: "stammgelände, Hochvolthaus (N2)" + subtext_bold: N-1216G@0102 + - id: 5101.EG.501A + type: room + name: "5101.EG.501A ( Projektorraum \u0019HS\u0017 PH 1)" + subtext: "garching, Physik I" + subtext_bold: 2501A@5101 + - id: 0502.01.202 + type: room + name: "0502.01.\u00192\u001702 ( Vorbereitung Carl von Linde-\u0019Hörsaal\u0017)" + subtext: "stammgelände, Zentralgebäude 2 (Z2)" + subtext_bold: 1202@0502 + - id: 5123.EG.019 + type: room + name: "5123.EG.019 ( LMU \u0019Hörsaal\u0017 im \u0019Physik\u0017 Werkstattgebäude)" + subtext: "garching, LMU Physik Werkstattgebäude" + subtext_bold: 019@5123 + n_visible: 10 + estimatedTotalHits: 1000 +- facet: sites_buildings + entries: [] + n_visible: 0 + estimatedTotalHits: 28 diff --git a/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-22.snap b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-22.snap new file mode 100644 index 000000000..76dafe538 --- /dev/null +++ b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-22.snap @@ -0,0 +1,19 @@ +--- +source: main-api/src/search/search_executor/mod.rs +description: "" +expression: actual +info: "'mössbauer' should get '5101.EG.501' in 1 results" +--- +- facet: rooms + entries: + - id: 5101.EG.501 + type: room + name: "5101.EG.501 ( Rudolf-\u0019Mößbauer\u0017-Hörsaal)" + subtext: "garching, Physik I" + subtext_bold: 2501@5101 + n_visible: 1 + estimatedTotalHits: 1 +- facet: sites_buildings + entries: [] + n_visible: 0 + estimatedTotalHits: 0 diff --git a/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-23.snap b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-23.snap new file mode 100644 index 000000000..eb9817ee1 --- /dev/null +++ b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-23.snap @@ -0,0 +1,64 @@ +--- +source: main-api/src/search/search_executor/mod.rs +description: "" +expression: actual +info: "'342 Physik' should get '5101.EG.342' in 1 results" +--- +- facet: rooms + entries: + - id: 5101.EG.342 + type: room + name: "5101.EG.\u0019342\u0017 ( \u0019Physik\u0017labor)" + subtext: "garching, Physik I" + subtext_bold: 2342@5101 + - id: 5101.01.342 + type: room + name: "5101.01.\u0019342\u0017 ( Sitzungs-, Konferenzraum)" + subtext: "garching, Physik I" + subtext_bold: 3342@5101 + - id: 4213.01.342 + type: room + name: "4213.01.\u0019342\u0017 ( Labor (gem. Nutzung 1124302010;1110064600))" + subtext: "weihenstephan, Lebensmitteltechnikum" + subtext_bold: O42@4213 + - id: 4213.EG.342 + type: room + name: "4213.EG.\u0019342\u0017 ( Labor)" + subtext: "weihenstephan, Lebensmitteltechnikum" + subtext_bold: E42@4213 + - id: 4317.03.342 + type: room + name: "4317.03.\u0019342\u0017 ( Labor)" + subtext: "weihenstephan, Tierwissenschaften" + subtext_bold: 3.42@4317 + - id: 2910.03.342 + type: room + name: "2910.03.\u0019342\u0017 ( Teeküche)" + subtext: "stammgelände, RiWa 1 (HfP/GOV)" + subtext_bold: H.342@2910 + - id: 0503.01.342 + type: room + name: "0503.01.\u0019342\u0017 ( Büro)" + subtext: "stammgelände, Thierschbau (Z3)" + subtext_bold: 1342@0503 + - id: 0503.03.342 + type: room + name: "0503.03.\u0019342\u0017 ( Büro)" + subtext: "stammgelände, Thierschbau (Z3)" + subtext_bold: 3342@0503 + - id: 0503.EG.342 + type: room + name: "0503.EG.\u0019342\u0017 ( Sekretariat 2)" + subtext: "stammgelände, Thierschbau (Z3)" + subtext_bold: 0342@0503 + - id: 2334.01.342 + type: room + name: "2334.01.\u0019342\u0017 ( (34.1.406) WC-Herren)" + subtext: "campus-im-olympiapark-sz, CiO/SG Institute West, Bibliothek" + subtext_bold: 01.2334.342@2334 + n_visible: 10 + estimatedTotalHits: 21 +- facet: sites_buildings + entries: [] + n_visible: 0 + estimatedTotalHits: 0 diff --git a/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-24.snap b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-24.snap new file mode 100644 index 000000000..1eac03f9e --- /dev/null +++ b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-24.snap @@ -0,0 +1,61 @@ +--- +source: main-api/src/search/search_executor/mod.rs +description: "lecture hall, should be preferred over other rooms" +expression: actual +info: "'2503' should get '5101.EG.503' in 1 results # lecture hall, should be preferred over other rooms" +--- +- facet: rooms + entries: + - id: 5101.EG.503 + type: room + name: 5101.EG.503 ( Physik Hörsaal 3) + subtext: "garching, Physik I" + subtext_bold: 2503@5101 + parsed_id: "PH \u00192503\u0017" + - id: 0505.02.503 + type: room + name: 0505.02.503 ( Büro) + subtext: "stammgelände, Wirtschaftswissenschaften (Z5)" + subtext_bold: 2503@0505 + parsed_id: "\u00192503\u0017 Wirtsch…aften (Z5)" + - id: 5505.02.503A + type: room + name: 5505.02.503A ( Büro) + subtext: "garching, Maschinenwesen (MW)" + subtext_bold: 2503A@5505 + parsed_id: "MW \u00192503\u0017A" + - id: 5505.02.503M + type: room + name: 5505.02.503M ( WC-Vorraum Herren) + subtext: "garching, Maschinenwesen (MW)" + subtext_bold: 2503M@5505 + parsed_id: "MW \u00192503\u0017M" + - id: 5505.02.503N + type: room + name: 5505.02.503N ( WC-Vorraum Damen) + subtext: "garching, Maschinenwesen (MW)" + subtext_bold: 2503N@5505 + parsed_id: "MW \u00192503\u0017N" + - id: 5505.02.503P + type: room + name: 5505.02.503P ( WC-Herren) + subtext: "garching, Maschinenwesen (MW)" + subtext_bold: 2503P@5505 + parsed_id: "MW \u00192503\u0017P" + - id: 5505.02.503Q + type: room + name: 5505.02.503Q ( WC-Damen) + subtext: "garching, Maschinenwesen (MW)" + subtext_bold: 2503Q@5505 + parsed_id: "MW \u00192503\u0017Q" + - id: 5115.02.503 + type: room + name: 5115.02.503 ( Elt.) + subtext: "garching, Zentrum für Nanotechnologie & -materialien (ZNN)" + subtext_bold: 2.503@5115 + n_visible: 8 + estimatedTotalHits: 8 +- facet: sites_buildings + entries: [] + n_visible: 0 + estimatedTotalHits: 0 diff --git a/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-25.snap b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-25.snap new file mode 100644 index 000000000..93fae35b7 --- /dev/null +++ b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-25.snap @@ -0,0 +1,59 @@ +--- +source: main-api/src/search/search_executor/mod.rs +description: "seminar room, should be preferred over other rooms" +expression: actual +info: "'1116' should get '5111.01.116' in 1 results # seminar room, should be preferred over other rooms" +--- +- facet: rooms + entries: + - id: 5111.01.116 + type: room + name: 5111.01.116 ( Seminarraum) + subtext: "garching, Siedlungswasserwirtschaft" + subtext_bold: 1116@5111 + parsed_id: "\u00191116\u0017 Siedlungswasserwirtschaft" + - id: 0401.01.116 + type: room + name: 0401.01.116 ( Büro) + subtext: "stammgelände, Richard-Wagner-Str. 18 (SW1)" + subtext_bold: 1116@0401 + parsed_id: "\u00191116\u0017 Richard…. 18 (SW1)" + - id: 5111.U1.116 + type: room + name: 5111.U1.116 ( Glas u. brennbare Stoffe) + subtext: "garching, Siedlungswasserwirtschaft" + subtext_bold: "-1116@5111" + - id: 5401.EG.116A + type: room + name: 5401.EG.116A ( Heizraum) + subtext: "garching, Chemie" + subtext_bold: 11160@5401 + parsed_id: "CH \u00191116\u00170" + - id: 5401.EG.116B + type: room + name: 5401.EG.116B ( Flur) + subtext: "garching, Chemie" + subtext_bold: 11165@5401 + parsed_id: "CH \u00191116\u00175" + - id: 5401.EG.116C + type: room + name: 5401.EG.116C ( Flur) + subtext: "garching, Chemie" + subtext_bold: 11166@5401 + parsed_id: "CH \u00191116\u00176" + - id: 2332.EG.224 + type: room + name: "2332.EG.224 ( (32.\u00191\u0017.\u0019116\u0017) Sekretariat)" + subtext: "campus-im-olympiapark-sz, CiO/SG Institute Ost" + subtext_bold: 00.2332.224@2332 + - id: 5701.01.016 + type: room + name: 5701.01.016 ( Oberassistent) + subtext: "garching, MIBE" + subtext_bold: 1.116@5701 + n_visible: 8 + estimatedTotalHits: 8 +- facet: sites_buildings + entries: [] + n_visible: 0 + estimatedTotalHits: 0 diff --git a/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-26.snap b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-26.snap new file mode 100644 index 000000000..3382fa20f --- /dev/null +++ b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-26.snap @@ -0,0 +1,60 @@ +--- +source: main-api/src/search/search_executor/mod.rs +description: "" +expression: actual +info: "'C.3202' should get '5140.01.202' in 1 results" +--- +- facet: rooms + entries: + - id: 5140.01.202 + type: room + name: 5140.01.202 ( Tutorraum) + subtext: "garching, Physik I Container" + subtext_bold: C.3202@5140 + parsed_id: "\u0019C.3202\u0017 Physik I Container" + - id: 1551.01.051 + type: room + name: "1551.01.051 ( Hörsaal \u0019C\u0017)" + subtext: "mri, A1-Hörsäle, Mensa (Bau 551)" + subtext_bold: 51.1.51@1551 + - id: 1551.EG.051 + type: room + name: "1551.EG.051 ( Hörsaal \u0019C\u0017)" + subtext: "mri, A1-Hörsäle, Mensa (Bau 551)" + subtext_bold: 51.0.51@1551 + - id: 1910.EG.050C + type: room + name: 1910.EG.050C ( Hörsaal) + subtext: "campus-heilbronn, Bildungscampus C, Weipertstr. 8-10" + subtext_bold: C.0.50@1910 + - id: 5140.01.201 + type: room + name: 5140.01.201 ( Tutorraum) + subtext: "garching, Physik I Container" + subtext_bold: C.3201@5140 + n_visible: 5 + estimatedTotalHits: 297 +- facet: sites_buildings + entries: + - id: "2940" + type: building + name: "Campus \u0019C\u0017, Georg-Brauchle-Ring 56/58" + subtext: Gebäudeteil + - id: "2911" + type: building + name: "Richard-Wagner-Str. 3 / Haus \u0019C\u0017, TUM Sprachenzentrum" + subtext: Gebäude + - id: "1910" + type: building + name: "Bildungscampus \u0019C\u0017, Weipertstr. 8-10" + subtext: Gebäude + - id: 1555c + type: building + name: "Bau 555 Gebäudeteil \u0019C\u0017" + subtext: Gebäudeteil + - id: "9376" + type: building + name: "Airbus Standort 76.\u0019C\u0017" + subtext: Gebäude + n_visible: 0 + estimatedTotalHits: 5 diff --git a/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-27.snap b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-27.snap new file mode 100644 index 000000000..4c4098664 --- /dev/null +++ b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-27.snap @@ -0,0 +1,70 @@ +--- +source: main-api/src/search/search_executor/mod.rs +description: Not sure about target here +expression: actual +info: "'1010 znn' should get '5115.01.010' in 1 results # Not sure about target here" +--- +- facet: rooms + entries: + - id: 5115.01.010 + type: room + name: 5115.01.010 ( Elt. Transport) + subtext: "garching, Zentrum für Nanotechnologie & -materialien (ZNN)" + subtext_bold: 1.010@5115 + - id: 5510.01.010 + type: room + name: 5510.01.010 ( Seminarraum) + subtext: "garching, Maschinenwesen (MW)" + subtext_bold: 1010@5510 + parsed_id: "MW \u00191010\u0017" + - id: 0510.01.010 + type: room + name: 0510.01.010 ( Küche) + subtext: "stammgelände, Verwaltungsbau (Z10)" + subtext_bold: 1010@0510 + parsed_id: "\u00191010\u0017 Verwaltungsbau (Z10)" + - id: 2906.01.010 + type: room + name: 2906.01.010 ( Büro) + subtext: Karlstraße 45/47 + subtext_bold: 1010@2906 + parsed_id: "\u00191010\u0017 Karlstraße 45/47" + - id: 5433.01.010 + type: room + name: 5433.01.010 ( Büro) + subtext: "garching, Entrepreneurship Research Institute" + subtext_bold: 1010@5433 + parsed_id: "\u00191010\u0017 Entrepr… Institute" + - id: 0202.U1.010 + type: room + name: 0202.U1.010 ( Lager) + subtext: "stammgelände, Gabelsbergerstr. 39 (S2)" + subtext_bold: "-1010@0202" + - id: 0401.U1.010 + type: room + name: 0401.U1.010 ( Archiv) + subtext: "stammgelände, Richard-Wagner-Str. 18 (SW1)" + subtext_bold: "-1010@0401" + - id: 2906.U1.010 + type: room + name: 2906.U1.010 ( Trafostation) + subtext: Karlstraße 45/47 + subtext_bold: "-1010@2906" + - id: 5413.EG.010 + type: room + name: 5413.EG.010 ( Hausanschluss) + subtext: "garching, BNMRZ Bayerisches NMR-Zentrum" + subtext_bold: 1010@5413 + parsed_id: "\u00191010\u0017 BNMRZ B…MR-Zentrum" + - id: 5414.01.010 + type: room + name: 5414.01.010 ( Lager) + subtext: "garching, Zentrum für Energie und Information (ZEI)" + subtext_bold: 1010@5414 + parsed_id: "\u00191010\u0017 Zentrum…tion (ZEI)" + n_visible: 10 + estimatedTotalHits: 15 +- facet: sites_buildings + entries: [] + n_visible: 0 + estimatedTotalHits: 0 diff --git a/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-28.snap b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-28.snap new file mode 100644 index 000000000..90ba14929 --- /dev/null +++ b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-28.snap @@ -0,0 +1,30 @@ +--- +source: main-api/src/search/search_executor/mod.rs +description: "" +expression: actual +info: "'0092@5433' should get '5433.EG.092' in 1 results" +--- +- facet: rooms + entries: + - id: 5433.EG.092 + type: room + name: "\u00195433\u0017.EG.092 ( Flur/Eingang)" + subtext: "garching, Entrepreneurship Research Institute" + subtext_bold: 0092@5433 + parsed_id: "\u00190092@5433\u0017" + - id: 5622.EG.092 + type: room + name: 5622.EG.092 ( Sportflächen Garching) + subtext: "garching, Sportanlage Garching / Dusch Container" + subtext_bold: 0092@5622 + - id: 5532.EG.092 + type: room + name: 5532.EG.092 ( ELT.-Schacht) + subtext: "garching, StudiTUM" + subtext_bold: 0.092@5532 + n_visible: 3 + estimatedTotalHits: 3 +- facet: sites_buildings + entries: [] + n_visible: 0 + estimatedTotalHits: 0 diff --git a/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-29.snap b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-29.snap new file mode 100644 index 000000000..8e2108e66 --- /dev/null +++ b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-29.snap @@ -0,0 +1,64 @@ +--- +source: main-api/src/search/search_executor/mod.rs +description: "" +expression: actual +info: "'0026m@5510' should get '5510.EG.026M' in 1 results" +--- +- facet: rooms + entries: + - id: 5510.EG.026M + type: room + name: "\u00195510\u0017.EG.\u0019026M\u0017 (School Office Finanzen)" + subtext: "garching, Maschinenwesen (MW)" + subtext_bold: MW 0026M@5510 + - id: 5510.EG.006M + type: room + name: "\u00195510\u0017.EG.\u0019006M\u0017 ( WC-Herren)" + subtext: "garching, Maschinenwesen (MW)" + subtext_bold: 0006M@5510 + - id: 5510.EG.026A + type: room + name: "\u00195510\u0017.EG.026A (Leitung Study & Teaching, Studienfachberatung)" + subtext: "garching, Maschinenwesen (MW)" + subtext_bold: 0026A@5510 + - id: 5510.EG.026C + type: room + name: "\u00195510\u0017.EG.026C (IKOM-Besprechungsraum)" + subtext: "garching, Maschinenwesen (MW)" + subtext_bold: 0026C@5510 + - id: 5510.EG.026B + type: room + name: "\u00195510\u0017.EG.026B ( Studienbüro)" + subtext: "garching, Maschinenwesen (MW)" + subtext_bold: 0026B@5510 + - id: 5510.EG.026N + type: room + name: "\u00195510\u0017.EG.026N (Study and Teaching Qualitätsmanagement)" + subtext: "garching, Maschinenwesen (MW)" + subtext_bold: MW 0026N@5510 + - id: 5510.EG.029M + type: room + name: "\u00195510\u0017.EG.029M ( Werkstatt)" + subtext: "garching, Maschinenwesen (MW)" + subtext_bold: 0029M@5510 + - id: 5510.EG.028M + type: room + name: "\u00195510\u0017.EG.028M ( Flur)" + subtext: "garching, Maschinenwesen (MW)" + subtext_bold: 0028M@5510 + - id: 5531.EG.026 + type: room + name: 5531.EG.026 ( Beh.-WC / Personal) + subtext: "garching, Ingeborg Ortner-Kinderhaus" + subtext_bold: 0026@5531 + - id: 5501.EG.126M + type: room + name: 5501.EG.126M ( Elektroverteiler) + subtext: "garching, Maschinenwesen (MW)" + subtext_bold: 0126M@5501 + n_visible: 10 + estimatedTotalHits: 15 +- facet: sites_buildings + entries: [] + n_visible: 0 + estimatedTotalHits: 0 diff --git a/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-3.snap b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-3.snap new file mode 100644 index 000000000..8492aec15 --- /dev/null +++ b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-3.snap @@ -0,0 +1,63 @@ +--- +source: main-api/src/search/search_executor/mod.rs +description: "" +expression: actual +info: 5301 should get 5301 +--- +- facet: sites_buildings + entries: + - id: "5301" + type: building + name: Institute for Advanced Study (IAS) + subtext: Gebäude + n_visible: 1 + estimatedTotalHits: 1 +- facet: rooms + entries: + - id: 5301.EG.001 + type: room + name: "\u00195301\u0017.EG.001 ( Auditorium)" + subtext: "garching, Institute for Advanced Study (IAS)" + subtext_bold: 0.001@5301 + - id: 5301.02.022 + type: room + name: "\u00195301\u0017.02.022 ( Zeitschriften/Lesesaal)" + subtext: "garching, Institute for Advanced Study (IAS)" + subtext_bold: 2.022@5301 + - id: 5301.01.033 + type: room + name: "\u00195301\u0017.01.033 ( Drucker)" + subtext: "garching, Institute for Advanced Study (IAS)" + subtext_bold: 1.033@5301 + - id: 5301.02.033 + type: room + name: "\u00195301\u0017.02.033 ( Drucker)" + subtext: "garching, Institute for Advanced Study (IAS)" + subtext_bold: 2.033@5301 + - id: 5301.03.033 + type: room + name: "\u00195301\u0017.03.033 ( Drucker)" + subtext: "garching, Institute for Advanced Study (IAS)" + subtext_bold: 3.033@5301 + - id: 5301.01.001 + type: room + name: "\u00195301\u0017.01.001 ( Großraumbüro)" + subtext: "garching, Institute for Advanced Study (IAS)" + subtext_bold: 1.001@5301 + - id: 5301.01.004 + type: room + name: "\u00195301\u0017.01.004 ( Büro)" + subtext: "garching, Institute for Advanced Study (IAS)" + subtext_bold: 1.004@5301 + - id: 5301.01.005 + type: room + name: "\u00195301\u0017.01.005 ( Büro)" + subtext: "garching, Institute for Advanced Study (IAS)" + subtext_bold: 1.005@5301 + - id: 5301.01.006 + type: room + name: "\u00195301\u0017.01.006 ( Büro)" + subtext: "garching, Institute for Advanced Study (IAS)" + subtext_bold: 1.006@5301 + n_visible: 9 + estimatedTotalHits: 147 diff --git a/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-30.snap b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-30.snap new file mode 100644 index 000000000..c5d9a2d07 --- /dev/null +++ b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-30.snap @@ -0,0 +1,64 @@ +--- +source: main-api/src/search/search_executor/mod.rs +description: "" +expression: actual +info: "'019 lmu' should get '5123.EG.019' in 1 results" +--- +- facet: rooms + entries: + - id: 5123.EG.019 + type: room + name: "5123.EG.\u0019019\u0017 ( \u0019LMU\u0017 Hörsaal im Physik Werkstattgebäude)" + subtext: "garching, LMU Physik Werkstattgebäude" + subtext_bold: 019@5123 + - id: 5109.EG.019 + type: room + name: "5109.EG.\u0019019\u0017 ( Kernphysiklabor)" + subtext: "garching, LMU Physik, Munich Center for Advanced Photonics (MAP)" + subtext_bold: 019@5109 + - id: 5120.EG.019 + type: room + name: "5120.EG.\u0019019\u0017 ( Elektrolabor)" + subtext: "garching, Beschleuniger" + subtext_bold: 019@5120 + - id: 5109.01.019 + type: room + name: "5109.01.\u0019019\u0017 ( Büro)" + subtext: "garching, LMU Physik, Munich Center for Advanced Photonics (MAP)" + subtext_bold: 019@5109 + - id: 5109.03.019 + type: room + name: "5109.03.\u0019019\u0017 ( Büro)" + subtext: "garching, LMU Physik, Munich Center for Advanced Photonics (MAP)" + subtext_bold: 019@5109 + - id: 5123.U1.019 + type: room + name: "5123.U1.\u0019019\u0017 ( Abwasseraufbereitung/-beseitigung)" + subtext: "garching, LMU Physik Werkstattgebäude" + subtext_bold: 019@5123 + - id: 8111.EG.019 + type: room + name: "8111.EG.\u0019019\u0017 ( Praktikumsraum)" + subtext: "garching-hochbrück, Schleißheimerstr. 90a" + subtext_bold: 0.019@8111 + - id: 1548.01.019 + type: room + name: "1548.01.\u0019019\u0017 ( Seminarraum)" + subtext: "mri, Schneckenburgerstr. 8, GSF-Container (\"Schneckenbunker\"), Virologie (Bau 548)" + subtext_bold: 48.1.19@1548 + - id: 1713.U2.019 + type: room + name: "1713.U2.\u0019019\u0017 ( Intensiv)" + subtext: "mri, Nigerstr. 3, Bau 713, TUM MeDiCAL, Studiendekanat im Lern- und Trainingszentrum (LUTZ)" + subtext_bold: 713.02.19@1713 + - id: 4220.01.019 + type: room + name: "4220.01.\u0019019\u0017 ( Gruppenarbeitsraum)" + subtext: "weihenstephan, Teilbibliothek Weihenstephan, Pressestelle Datenverarbeitung" + subtext_bold: OG R 19@4220 + n_visible: 10 + estimatedTotalHits: 199 +- facet: sites_buildings + entries: [] + n_visible: 0 + estimatedTotalHits: 0 diff --git a/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-31.snap b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-31.snap new file mode 100644 index 000000000..daee51473 --- /dev/null +++ b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-31.snap @@ -0,0 +1,63 @@ +--- +source: main-api/src/search/search_executor/mod.rs +description: "" +expression: actual +info: "'audimax' should get '0509.EG.980' in 1 results" +--- +- facet: rooms + entries: + - id: 0509.EG.980 + type: room + name: "0509.EG.980 (\u0019Audimax\u0017, Werner-von-Siemens-Hörsaal)" + subtext: "stammgelände, Wienandsbau (Z9)" + subtext_bold: 0980@0509 + - id: 8120.01.101 + type: room + name: "8120.01.101 (\u0019Audimax\u0017 im Galileo)" + subtext: "garching, Galileo" + subtext_bold: Audimax@8120 + - id: 0509.02.986 + type: room + name: "0509.02.986 ( \u0019Audimax\u0017 Galerie)" + subtext: "stammgelände, Wienandsbau (Z9)" + subtext_bold: 1986@0509 + - id: 0509.01.921 + type: room + name: 0509.01.921 ( Studentenarb. m. DV (HKW)) + subtext: "stammgelände, Wienandsbau (Z9)" + subtext_bold: Z921@0509 + - id: 0509.01.922 + type: room + name: 0509.01.922 ( Studentenarb. m. DV (HKW)) + subtext: "stammgelände, Wienandsbau (Z9)" + subtext_bold: Z922@0509 + - id: 0509.01.923 + type: room + name: 0509.01.923 ( Studentenarb. m. DV (HKW)) + subtext: "stammgelände, Wienandsbau (Z9)" + subtext_bold: Z923@0509 + - id: 0509.01.995 + type: room + name: 0509.01.995 ( Seminarraum m. Vorbereitung) + subtext: "stammgelände, Wienandsbau (Z9)" + subtext_bold: Z995@0509 + - id: 0509.02.903 + type: room + name: 0509.02.903 ( Übung-DV) + subtext: "stammgelände, Wienandsbau (Z9)" + subtext_bold: 1903@0509 + - id: 0509.02.919 + type: room + name: 0509.02.919 ( Studentenarb. m. DV) + subtext: "stammgelände, Wienandsbau (Z9)" + subtext_bold: 1919@0509 + n_visible: 9 + estimatedTotalHits: 492 +- facet: sites_buildings + entries: + - id: "0509" + type: building + name: "Wienandsbau, E-Technik / \u0019Audimax\u0017 (Z9)" + subtext: Gebäude + n_visible: 0 + estimatedTotalHits: 2 diff --git a/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-32.snap b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-32.snap new file mode 100644 index 000000000..29c3731b8 --- /dev/null +++ b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-32.snap @@ -0,0 +1,47 @@ +--- +source: main-api/src/search/search_executor/mod.rs +description: "" +expression: actual +info: "'1229 seminarraum' should get '0502.01.229' in 1 results" +--- +- facet: rooms + entries: + - id: 0502.01.229 + type: room + name: "0502.01.229 ( \u0019Seminarraum\u0017)" + subtext: "stammgelände, Zentralgebäude 2 (Z2)" + subtext_bold: 1229@0502 + parsed_id: "\u00191229\u0017 Zentralgebäude 2 (Z2)" + - id: 5101.U1.229 + type: room + name: 5101.U1.229 ( Büro) + subtext: "garching, Physik I" + subtext_bold: 1229@5101 + parsed_id: "PH \u00191229\u0017" + - id: 5502.01.229 + type: room + name: 5502.01.229 ( Büro) + subtext: "garching, Maschinenwesen (MW)" + subtext_bold: 1229@5502 + parsed_id: "MW \u00191229\u0017" + - id: 0502.U1.229 + type: room + name: 0502.U1.229 ( Werkstatt) + subtext: "stammgelände, Zentralgebäude 2 (Z2)" + subtext_bold: "-1229@0502" + - id: 0102.U1.229 + type: room + name: 0102.U1.229 ( Stromversorgung) + subtext: "stammgelände, Hochvolthaus (N2)" + subtext_bold: N-1229@0102 + - id: 2334.01.224 + type: room + name: "2334.01.224 ( (34.\u00191\u0017.\u0019229\u0017) Büro)" + subtext: "campus-im-olympiapark-sz, CiO/SG Institute West, Bibliothek" + subtext_bold: 01.2334.224@2334 + n_visible: 6 + estimatedTotalHits: 6 +- facet: sites_buildings + entries: [] + n_visible: 0 + estimatedTotalHits: 0 diff --git a/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-33.snap b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-33.snap new file mode 100644 index 000000000..e0618f7e9 --- /dev/null +++ b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-33.snap @@ -0,0 +1,64 @@ +--- +source: main-api/src/search/search_executor/mod.rs +description: "H.003 is the correct room, but people have problems remembering how many zeroes are in the room number" +expression: actual +info: "'H.003' should get '2910.EG.003' in 1 results # H.003 is the correct room, but people have problems remembering how many zeroes are in the room number" +--- +- facet: rooms + entries: + - id: 2910.EG.003 + type: room + name: "2910.EG.\u0019003\u0017 ( Seminarraum)" + subtext: "stammgelände, RiWa 1 (HfP/GOV)" + subtext_bold: H.003@2910 + parsed_id: "\u0019H.003\u0017 RiWa 1 (HfP/GOV)" + - id: 5212.EG.003 + type: room + name: "5212.EG.\u0019003\u0017 ( Post/Annahme)" + subtext: "garching, RCM Radiochemie München" + subtext_bold: H.0.003@5212 + - id: 5212.U1.003 + type: room + name: "5212.U1.\u0019003\u0017 ( Kälte)" + subtext: "garching, RCM Radiochemie München" + subtext_bold: H.-1.003@5212 + - id: 2910.01.101 + type: room + name: 2910.01.101 ( Gruppenarbeitsraum) + subtext: "stammgelände, RiWa 1 (HfP/GOV)" + subtext_bold: H.101@2910 + - id: 2910.01.102 + type: room + name: 2910.01.102 ( Gruppenarbeitsraum) + subtext: "stammgelände, RiWa 1 (HfP/GOV)" + subtext_bold: H.102@2910 + - id: 2910.02.202 + type: room + name: 2910.02.202 ( Seminarraum) + subtext: "stammgelände, RiWa 1 (HfP/GOV)" + subtext_bold: H.202@2910 + - id: 2910.02.204 + type: room + name: 2910.02.204 ( Seminarraum) + subtext: "stammgelände, RiWa 1 (HfP/GOV)" + subtext_bold: H.204@2910 + - id: 2910.02.206 + type: room + name: 2910.02.206 ( Seminarraum) + subtext: "stammgelände, RiWa 1 (HfP/GOV)" + subtext_bold: H.206@2910 + - id: 2910.EG.001 + type: room + name: 2910.EG.001 ( Seminarraum) + subtext: "stammgelände, RiWa 1 (HfP/GOV)" + subtext_bold: H.001@2910 + n_visible: 9 + estimatedTotalHits: 412 +- facet: sites_buildings + entries: + - id: "2910" + type: building + name: "Richard-Wagner-Str. 1 / Haus B + Haus \u0019H\u0017, Hochschule für Politik (HfP)/ Department of Governance (GOV)" + subtext: Gebäude + n_visible: 0 + estimatedTotalHits: 1 diff --git a/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-34.snap b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-34.snap new file mode 100644 index 000000000..4fd549480 --- /dev/null +++ b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-34.snap @@ -0,0 +1,60 @@ +--- +source: main-api/src/search/search_executor/mod.rs +description: "" +expression: actual +info: "'MI HS 3' should get '5606.EG.011' in 1 results" +--- +- facet: rooms + entries: + - id: 5606.EG.011 + type: room + name: "5606.EG.011 ( \u0019MI\u0017 \u0019Hörsaal\u0017 \u00193\u0017)" + subtext: "garching, Mathe/Info (MI)" + subtext_bold: 00.06.011@5606 + - id: 5602.EG.001 + type: room + name: "5602.EG.001 ( \u0019MI\u0017 \u0019HS\u0017 1, Friedrich L. Bauer \u0019Hörsaal\u0017)" + subtext: "garching, Mathe/Info (MI)" + subtext_bold: 00.02.001@5602 + - id: 5604.EG.011 + type: room + name: "5604.EG.011 ( \u0019MI\u0017 \u0019Hörsaal\u0017 2)" + subtext: "garching, Mathe/Info (MI)" + subtext_bold: 00.04.011@5604 + - id: 5602.EG.002 + type: room + name: "5602.EG.002 ( \u0019MI\u0017 \u0019Hörsaal\u0017 Regieraum)" + subtext: "garching, Mathe/Info (MI)" + subtext_bold: 00.02.002@5602 + - id: 5602.U1.001 + type: room + name: 5602.U1.001 ( Technikraum) + subtext: "garching, Mathe/Info (MI)" + subtext_bold: "-1.02.001@5602" + - id: 5602.U1.004 + type: room + name: 5602.U1.004 ( Treppe im Freien) + subtext: "garching, Mathe/Info (MI)" + subtext_bold: "-1.02.004@5602" + n_visible: 6 + estimatedTotalHits: 1000 +- facet: sites_buildings + entries: + - id: "5602" + type: building + name: "\u0019Hörsaal\u0017 1 (BT02)" + subtext: Gebäudeteil + - id: mi + type: joined_building + name: "Fakultät Mathematik & Informatik (FMI oder \u0019MI\u0017)" + subtext: Gebäudekomplex + - id: "5605" + type: building + name: Finger 05 (BT05) + subtext: Gebäudeteil + - id: "5606" + type: building + name: Finger 06 (BT06) + subtext: Gebäudeteil + n_visible: 0 + estimatedTotalHits: 14 diff --git a/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-35.snap b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-35.snap new file mode 100644 index 000000000..fb237827b --- /dev/null +++ b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-35.snap @@ -0,0 +1,64 @@ +--- +source: main-api/src/search/search_executor/mod.rs +description: Architects names should be matchable literally +expression: actual +info: "'N1406' should get '0104.01.406' in 1 results # Architects names should be matchable literally" +--- +- facet: rooms + entries: + - id: 0104.01.406 + type: room + name: 0104.01.406 ( Studentenarb. m. DV) + subtext: "stammgelände, E-Technik Elektrophysik (N4)" + subtext_bold: N1406@0104 + - id: 0101.Z1.062B + type: room + name: "0101.Z1.062B ( N1 ZG, Studentische Arbeitsplätze)" + subtext: "stammgelände, U-Trakt (N1)" + subtext_bold: N1062BZG@0101 + - id: 0104.02.406 + type: room + name: 0104.02.406 ( Studentencomputerraum 1) + subtext: "stammgelände, E-Technik Elektrophysik (N4)" + subtext_bold: N2406@0104 + - id: 0104.01.416 + type: room + name: 0104.01.416 ( Kopierer) + subtext: "stammgelände, E-Technik Elektrophysik (N4)" + subtext_bold: N1416@0104 + - id: 0104.U1.406 + type: room + name: 0104.U1.406 ( Physikal. Versuchslabor) + subtext: "stammgelände, E-Technik Elektrophysik (N4)" + subtext_bold: N-1406@0104 + - id: 5112.EG.106N + type: room + name: 5112.EG.106N ( Labor) + subtext: "garching, Walter-Schottky-Institut (WSI)" + subtext_bold: N106@5112 + - id: 0101.Z1.006 + type: room + name: 0101.Z1.006 ( Sozialraum) + subtext: "stammgelände, U-Trakt (N1)" + subtext_bold: N1006ZG@0101 + - id: 0101.Z1.046 + type: room + name: 0101.Z1.046 ( WC-Herren) + subtext: "stammgelände, U-Trakt (N1)" + subtext_bold: N1046ZG@0101 + - id: 0101.Z1.046A + type: room + name: 0101.Z1.046A ( WC-Vorraum Herren) + subtext: "stammgelände, U-Trakt (N1)" + subtext_bold: N1046AZG@0101 + - id: 0103.01.306 + type: room + name: 0103.01.306 ( Büro) + subtext: "stammgelände, E-Technik El. Maschinen / Geräte (N3)" + subtext_bold: N1306@0103 + n_visible: 10 + estimatedTotalHits: 552 +- facet: sites_buildings + entries: [] + n_visible: 0 + estimatedTotalHits: 0 diff --git a/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-36.snap b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-36.snap new file mode 100644 index 000000000..875dad632 --- /dev/null +++ b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-36.snap @@ -0,0 +1,64 @@ +--- +source: main-api/src/search/search_executor/mod.rs +description: Architects names should be matchable literally +expression: actual +info: "'N-1406' should get '0104.U1.406' in 1 results # Architects names should be matchable literally" +--- +- facet: rooms + entries: + - id: 0104.U1.406 + type: room + name: 0104.U1.406 ( Physikal. Versuchslabor) + subtext: "stammgelände, E-Technik Elektrophysik (N4)" + subtext_bold: N-1406@0104 + parsed_id: "\u0019N-1406\u0017 E-Techn…hysik (N4)" + - id: 0104.01.406 + type: room + name: 0104.01.406 ( Studentenarb. m. DV) + subtext: "stammgelände, E-Technik Elektrophysik (N4)" + subtext_bold: N1406@0104 + - id: 0103.U1.311 + type: room + name: 0103.U1.311 ( Praktikum/Umbau) + subtext: "stammgelände, E-Technik El. Maschinen / Geräte (N3)" + subtext_bold: N-1311@0103 + - id: 0108.U1.806A + type: room + name: 0108.U1.806A ( Experimenteller Raum) + subtext: "stammgelände, E-Technik Verfügungsgebäude (N8)" + subtext_bold: N-1806A@0108 + - id: 0108.U1.806B + type: room + name: 0108.U1.806B ( Experimenteller Raum) + subtext: "stammgelände, E-Technik Verfügungsgebäude (N8)" + subtext_bold: N-1806B@0108 + - id: 0108.U1.825 + type: room + name: 0108.U1.825 ( Experimenteller Raum) + subtext: "stammgelände, E-Technik Verfügungsgebäude (N8)" + subtext_bold: N-1825@0108 + - id: 0108.U1.825A + type: room + name: 0108.U1.825A ( Experimenteller Raum) + subtext: "stammgelände, E-Technik Verfügungsgebäude (N8)" + subtext_bold: N-1825A@0108 + - id: 9201.EG.005 + type: room + name: 9201.EG.005 ( Seminarraum 2) + subtext: TUM FZ Friedrich N. Schwarz Berchtesgaden + subtext_bold: EG-05@9201 + - id: 9201.EG.006 + type: room + name: 9201.EG.006 ( Seminarraum 1) + subtext: TUM FZ Friedrich N. Schwarz Berchtesgaden + subtext_bold: EG-06@9201 + n_visible: 9 + estimatedTotalHits: 552 +- facet: sites_buildings + entries: + - id: "9201" + type: building + name: "TUM FZ Friedrich \u0019N\u0017. Schwarz Berchtesgaden" + subtext: Gebäude + n_visible: 0 + estimatedTotalHits: 1 diff --git a/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-37.snap b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-37.snap new file mode 100644 index 000000000..261d8657d --- /dev/null +++ b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-37.snap @@ -0,0 +1,64 @@ +--- +source: main-api/src/search/search_executor/mod.rs +description: "" +expression: actual +info: 019 lmu should get 5123.EG.019 +--- +- facet: rooms + entries: + - id: 5123.EG.019 + type: room + name: "5123.EG.\u0019019\u0017 ( \u0019LMU\u0017 Hörsaal im Physik Werkstattgebäude)" + subtext: "garching, LMU Physik Werkstattgebäude" + subtext_bold: 019@5123 + - id: 5109.EG.019 + type: room + name: "5109.EG.\u0019019\u0017 ( Kernphysiklabor)" + subtext: "garching, LMU Physik, Munich Center for Advanced Photonics (MAP)" + subtext_bold: 019@5109 + - id: 5120.EG.019 + type: room + name: "5120.EG.\u0019019\u0017 ( Elektrolabor)" + subtext: "garching, Beschleuniger" + subtext_bold: 019@5120 + - id: 5109.01.019 + type: room + name: "5109.01.\u0019019\u0017 ( Büro)" + subtext: "garching, LMU Physik, Munich Center for Advanced Photonics (MAP)" + subtext_bold: 019@5109 + - id: 5109.03.019 + type: room + name: "5109.03.\u0019019\u0017 ( Büro)" + subtext: "garching, LMU Physik, Munich Center for Advanced Photonics (MAP)" + subtext_bold: 019@5109 + - id: 5123.U1.019 + type: room + name: "5123.U1.\u0019019\u0017 ( Abwasseraufbereitung/-beseitigung)" + subtext: "garching, LMU Physik Werkstattgebäude" + subtext_bold: 019@5123 + - id: 8111.EG.019 + type: room + name: "8111.EG.\u0019019\u0017 ( Praktikumsraum)" + subtext: "garching-hochbrück, Schleißheimerstr. 90a" + subtext_bold: 0.019@8111 + - id: 1548.01.019 + type: room + name: "1548.01.\u0019019\u0017 ( Seminarraum)" + subtext: "mri, Schneckenburgerstr. 8, GSF-Container (\"Schneckenbunker\"), Virologie (Bau 548)" + subtext_bold: 48.1.19@1548 + - id: 1713.U2.019 + type: room + name: "1713.U2.\u0019019\u0017 ( Intensiv)" + subtext: "mri, Nigerstr. 3, Bau 713, TUM MeDiCAL, Studiendekanat im Lern- und Trainingszentrum (LUTZ)" + subtext_bold: 713.02.19@1713 + - id: 4220.01.019 + type: room + name: "4220.01.\u0019019\u0017 ( Gruppenarbeitsraum)" + subtext: "weihenstephan, Teilbibliothek Weihenstephan, Pressestelle Datenverarbeitung" + subtext_bold: OG R 19@4220 + n_visible: 10 + estimatedTotalHits: 199 +- facet: sites_buildings + entries: [] + n_visible: 0 + estimatedTotalHits: 0 diff --git a/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-38.snap b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-38.snap new file mode 100644 index 000000000..3710c11d6 --- /dev/null +++ b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-38.snap @@ -0,0 +1,63 @@ +--- +source: main-api/src/search/search_executor/mod.rs +description: "" +expression: actual +info: audimax should get 0509.EG.980 +--- +- facet: rooms + entries: + - id: 0509.EG.980 + type: room + name: "0509.EG.980 (\u0019Audimax\u0017, Werner-von-Siemens-Hörsaal)" + subtext: "stammgelände, Wienandsbau (Z9)" + subtext_bold: 0980@0509 + - id: 8120.01.101 + type: room + name: "8120.01.101 (\u0019Audimax\u0017 im Galileo)" + subtext: "garching, Galileo" + subtext_bold: Audimax@8120 + - id: 0509.02.986 + type: room + name: "0509.02.986 ( \u0019Audimax\u0017 Galerie)" + subtext: "stammgelände, Wienandsbau (Z9)" + subtext_bold: 1986@0509 + - id: 0509.01.921 + type: room + name: 0509.01.921 ( Studentenarb. m. DV (HKW)) + subtext: "stammgelände, Wienandsbau (Z9)" + subtext_bold: Z921@0509 + - id: 0509.01.922 + type: room + name: 0509.01.922 ( Studentenarb. m. DV (HKW)) + subtext: "stammgelände, Wienandsbau (Z9)" + subtext_bold: Z922@0509 + - id: 0509.01.923 + type: room + name: 0509.01.923 ( Studentenarb. m. DV (HKW)) + subtext: "stammgelände, Wienandsbau (Z9)" + subtext_bold: Z923@0509 + - id: 0509.01.995 + type: room + name: 0509.01.995 ( Seminarraum m. Vorbereitung) + subtext: "stammgelände, Wienandsbau (Z9)" + subtext_bold: Z995@0509 + - id: 0509.02.903 + type: room + name: 0509.02.903 ( Übung-DV) + subtext: "stammgelände, Wienandsbau (Z9)" + subtext_bold: 1903@0509 + - id: 0509.02.919 + type: room + name: 0509.02.919 ( Studentenarb. m. DV) + subtext: "stammgelände, Wienandsbau (Z9)" + subtext_bold: 1919@0509 + n_visible: 9 + estimatedTotalHits: 492 +- facet: sites_buildings + entries: + - id: "0509" + type: building + name: "Wienandsbau, E-Technik / \u0019Audimax\u0017 (Z9)" + subtext: Gebäude + n_visible: 0 + estimatedTotalHits: 2 diff --git a/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-39.snap b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-39.snap new file mode 100644 index 000000000..371f958ae --- /dev/null +++ b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-39.snap @@ -0,0 +1,64 @@ +--- +source: main-api/src/search/search_executor/mod.rs +description: "main room called 'service desk', only all 114abc.. subrooms have 'ssz' in the name" +expression: actual +info: ssz should get 0501.EG.144 +--- +- facet: rooms + entries: + - id: 0501.EG.144A + type: room + name: "0501.EG.144A ( \u0019SSZ\u0017 Info)" + subtext: "stammgelände, Hauptgebäude (Z1)" + subtext_bold: 0144A@0501 + - id: 0501.EG.144B + type: room + name: "0501.EG.144B ( \u0019SSZ\u0017 Info)" + subtext: "stammgelände, Hauptgebäude (Z1)" + subtext_bold: 0144B@0501 + - id: 0501.EG.144C + type: room + name: "0501.EG.144C ( \u0019SSZ\u0017 Info)" + subtext: "stammgelände, Hauptgebäude (Z1)" + subtext_bold: 0144C@0501 + - id: 0501.EG.144D + type: room + name: "0501.EG.144D ( \u0019SSZ\u0017 Info)" + subtext: "stammgelände, Hauptgebäude (Z1)" + subtext_bold: 0144D@0501 + - id: 0501.EG.144E + type: room + name: "0501.EG.144E ( \u0019SSZ\u0017 Info)" + subtext: "stammgelände, Hauptgebäude (Z1)" + subtext_bold: 0144E@0501 + - id: 0501.EG.144F + type: room + name: "0501.EG.144F ( \u0019SSZ\u0017 Info)" + subtext: "stammgelände, Hauptgebäude (Z1)" + subtext_bold: 0144F@0501 + - id: 0501.EG.144G + type: room + name: "0501.EG.144G ( \u0019SSZ\u0017 Info)" + subtext: "stammgelände, Hauptgebäude (Z1)" + subtext_bold: 0144G@0501 + - id: 0501.EG.144H + type: room + name: "0501.EG.144H ( \u0019SSZ\u0017 Info)" + subtext: "stammgelände, Hauptgebäude (Z1)" + subtext_bold: 0144H@0501 + - id: 0501.EG.148 + type: room + name: "0501.EG.148 ( Teeküche \u0019SSZ\u0017)" + subtext: "stammgelände, Hauptgebäude (Z1)" + subtext_bold: 0148@0501 + - id: 0505.EG.561 + type: room + name: "0505.EG.561 ( Sekretariat \u0019SSZ\u0017/HR S+L / Recht)" + subtext: "stammgelände, Wirtschaftswissenschaften (Z5)" + subtext_bold: 0561@0505 + n_visible: 10 + estimatedTotalHits: 11 +- facet: sites_buildings + entries: [] + n_visible: 0 + estimatedTotalHits: 0 diff --git a/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-4.snap b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-4.snap new file mode 100644 index 000000000..b0c51ba57 --- /dev/null +++ b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-4.snap @@ -0,0 +1,60 @@ +--- +source: main-api/src/search/search_executor/mod.rs +description: "" +expression: actual +info: "'interims' should get 'garching-interims' in 1 results" +--- +- facet: sites_buildings + entries: + - id: garching-interims + type: area + name: "\u0019Interimshörsäle\u0017" + subtext: Gebiet / Gruppe von Gebäuden + - id: "5539" + type: building + name: "\u0019Interims\u0017-Tentomax MW" + subtext: Gebäude + - id: "5416" + type: building + name: "\u0019Interimshörsäle\u0017 II, Jürgen Manchot-Hörsaalgebäude" + subtext: Gebäude + - id: "5620" + type: building + name: "\u0019Interimshörsäle\u0017 I" + subtext: Gebäude + n_visible: 4 + estimatedTotalHits: 4 +- facet: rooms + entries: + - id: 5416.01.003 + type: room + name: "5416.01.003 ( Hörsaal 2, \"\u0019Interims\u0017 II\")" + subtext: "garching, Interims II" + subtext_bold: 003@5416 + - id: 5620.01.101 + type: room + name: "5620.01.101 ( Hörsaal 1, \"\u0019Interims\u0017 I\")" + subtext: "garching, Interims I" + subtext_bold: 101@5620 + - id: 5620.01.102 + type: room + name: "5620.01.102 ( Hörsaal 2, \"\u0019Interims\u0017 I\")" + subtext: "garching, Interims I" + subtext_bold: 102@5620 + - id: 5416.01.004 + type: room + name: "5416.01.004 ( Hörsaal 1, Jürgen-Manchot-Hörsaal)" + subtext: "garching, Interims II" + subtext_bold: 004@5416 + - id: 5539.EG.001A + type: room + name: "5539.EG.001A ( Hörsaal 1A, \"Zelt\")" + subtext: "garching, Interims III" + subtext_bold: 0.001A@5539 + - id: 5539.EG.001B + type: room + name: "5539.EG.001B ( Hörsaal 1B, \"Zelt\")" + subtext: "garching, Interims III" + subtext_bold: 0.001B@5539 + n_visible: 6 + estimatedTotalHits: 47 diff --git a/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-40.snap b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-40.snap new file mode 100644 index 000000000..affa1c897 --- /dev/null +++ b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-40.snap @@ -0,0 +1,29 @@ +--- +source: main-api/src/search/search_executor/mod.rs +description: "" +expression: actual +info: Immathalle should get 0501.EG.136 +--- +- facet: rooms + entries: + - id: 0501.EG.130C + type: room + name: "0501.EG.130C ( Küche \u0019Immatrikulationshalle\u0017)" + subtext: "stammgelände, Hauptgebäude (Z1)" + subtext_bold: 0130C@0501 + - id: 0501.EG.136 + type: room + name: "0501.EG.136 ( \u0019Immatrikulationshalle\u0017)" + subtext: "stammgelände, Hauptgebäude (Z1)" + subtext_bold: 0136@0501 + - id: 0501.EG.140 + type: room + name: "0501.EG.140 ( Durchgangshalle zur \u0019Immathalle\u0017)" + subtext: "stammgelände, Hauptgebäude (Z1)" + subtext_bold: 0140@0501 + n_visible: 3 + estimatedTotalHits: 3 +- facet: sites_buildings + entries: [] + n_visible: 0 + estimatedTotalHits: 0 diff --git a/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-41.snap b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-41.snap new file mode 100644 index 000000000..79a2b2eaa --- /dev/null +++ b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-41.snap @@ -0,0 +1,47 @@ +--- +source: main-api/src/search/search_executor/mod.rs +description: "" +expression: actual +info: 1229 seminarraum should get 0502.01.229 +--- +- facet: rooms + entries: + - id: 0502.01.229 + type: room + name: "0502.01.229 ( \u0019Seminarraum\u0017)" + subtext: "stammgelände, Zentralgebäude 2 (Z2)" + subtext_bold: 1229@0502 + parsed_id: "\u00191229\u0017 Zentralgebäude 2 (Z2)" + - id: 5101.U1.229 + type: room + name: 5101.U1.229 ( Büro) + subtext: "garching, Physik I" + subtext_bold: 1229@5101 + parsed_id: "PH \u00191229\u0017" + - id: 5502.01.229 + type: room + name: 5502.01.229 ( Büro) + subtext: "garching, Maschinenwesen (MW)" + subtext_bold: 1229@5502 + parsed_id: "MW \u00191229\u0017" + - id: 0502.U1.229 + type: room + name: 0502.U1.229 ( Werkstatt) + subtext: "stammgelände, Zentralgebäude 2 (Z2)" + subtext_bold: "-1229@0502" + - id: 0102.U1.229 + type: room + name: 0102.U1.229 ( Stromversorgung) + subtext: "stammgelände, Hochvolthaus (N2)" + subtext_bold: N-1229@0102 + - id: 2334.01.224 + type: room + name: "2334.01.224 ( (34.\u00191\u0017.\u0019229\u0017) Büro)" + subtext: "campus-im-olympiapark-sz, CiO/SG Institute West, Bibliothek" + subtext_bold: 01.2334.224@2334 + n_visible: 6 + estimatedTotalHits: 6 +- facet: sites_buildings + entries: [] + n_visible: 0 + estimatedTotalHits: 0 diff --git a/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-42.snap b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-42.snap new file mode 100644 index 000000000..ea133abd9 --- /dev/null +++ b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-42.snap @@ -0,0 +1,14 @@ +--- +source: main-api/src/search/search_executor/mod.rs +description: Copy/paste search +expression: actual +info: Augustenstraße 44; Raum 209; 2.OG should get 2903.02.209 +--- +- facet: rooms + entries: [] + n_visible: 0 + estimatedTotalHits: 0 +- facet: sites_buildings + entries: [] + n_visible: 0 + estimatedTotalHits: 0 diff --git a/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-43.snap b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-43.snap new file mode 100644 index 000000000..7754c2939 --- /dev/null +++ b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-43.snap @@ -0,0 +1,64 @@ +--- +source: main-api/src/search/search_executor/mod.rs +description: "there are two basic lab course rooms, this is one of them" +expression: actual +info: praktikumsraum mi should get 5604.EG.038 +--- +- facet: rooms + entries: + - id: 5605.01.012 + type: room + name: "5605.01.012 ( \u0019Praktikumsraum\u0017)" + subtext: "garching, Mathe/Info (MI)" + subtext_bold: 01.05.012@5605 + - id: 5605.01.013 + type: room + name: "5605.01.013 ( \u0019Praktikumsraum\u0017)" + subtext: "garching, Mathe/Info (MI)" + subtext_bold: 01.05.013@5605 + - id: 5605.02.014 + type: room + name: "5605.02.014 ( \u0019Praktikumsraum\u0017)" + subtext: "garching, Mathe/Info (MI)" + subtext_bold: 02.05.014@5605 + - id: 5605.02.033 + type: room + name: "5605.02.033 ( \u0019Praktikumsraum\u0017)" + subtext: "garching, Mathe/Info (MI)" + subtext_bold: 02.05.033@5605 + - id: 5605.03.012 + type: room + name: "5605.03.012 ( \u0019Praktikumsraum\u0017)" + subtext: "garching, Mathe/Info (MI)" + subtext_bold: 03.05.012@5605 + - id: 5605.03.014 + type: room + name: "5605.03.014 ( \u0019Praktikumsraum\u0017)" + subtext: "garching, Mathe/Info (MI)" + subtext_bold: 03.05.014@5605 + - id: 5605.03.057 + type: room + name: "5605.03.057 ( \u0019Praktikumsraum\u0017)" + subtext: "garching, Mathe/Info (MI)" + subtext_bold: 03.05.057@5605 + - id: 5607.01.012 + type: room + name: "5607.01.012 ( \u0019Praktikumsraum\u0017)" + subtext: "garching, Mathe/Info (MI)" + subtext_bold: 01.07.012@5607 + - id: 5608.01.011 + type: room + name: "5608.01.011 ( \u0019Praktikumsraum\u0017)" + subtext: "garching, Mathe/Info (MI)" + subtext_bold: 01.08.011@5608 + - id: 5608.01.020 + type: room + name: "5608.01.020 ( \u0019Praktikumsraum\u0017)" + subtext: "garching, Mathe/Info (MI)" + subtext_bold: 01.08.020@5608 + n_visible: 10 + estimatedTotalHits: 209 +- facet: sites_buildings + entries: [] + n_visible: 0 + estimatedTotalHits: 0 diff --git a/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-44.snap b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-44.snap new file mode 100644 index 000000000..5a0a5668c --- /dev/null +++ b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-44.snap @@ -0,0 +1,64 @@ +--- +source: main-api/src/search/search_executor/mod.rs +description: "'5604.02.033' is a valid result before the two lab course rooms" +expression: actual +info: physik labor mi should get 5604.EG.036 +--- +- facet: rooms + entries: + - id: 0104.U1.404 + type: room + name: "0104.U1.404 ( \u0019Mi\u0017krostr. Bauele.-\u0019Labor\u0017)" + subtext: "stammgelände, E-Technik Elektrophysik (N4)" + subtext_bold: N-1404@0104 + - id: 0104.EG.426 + type: room + name: "0104.EG.426 ( \u0019Physiklabor\u0017 \u0019mi\u0017t elektromagnetischer Abschir)" + subtext: "stammgelände, E-Technik Elektrophysik (N4)" + subtext_bold: N0426@0104 + - id: 5501.01.108 + type: room + name: "5501.01.108 ( \u0019Mi\u0017krotechniklabor)" + subtext: "garching, Maschinenwesen (MW)" + subtext_bold: 1108@5501 + - id: 2806.03.302 + type: room + name: "2806.03.302 ( \u0019Mi\u0017kroskopie)" + subtext: Werkstattgebäude National Museum (Nutzung) + subtext_bold: 3.302@2806 + - id: 4224.01.136 + type: room + name: "4224.01.136 ( \u0019Mi\u0017kroskopie)" + subtext: "weihenstephan, ZIEL IV - Biowissenschaften" + subtext_bold: 1.36@4224 + - id: 4224.01.156 + type: room + name: "4224.01.156 ( \u0019Mi\u0017kroskopierraum S1-Genlabor)" + subtext: "weihenstephan, ZIEL IV - Biowissenschaften" + subtext_bold: 1.56@4224 + - id: 4317.01.121 + type: room + name: "4317.01.121 ( \u0019Mi\u0017kroskopierraum)" + subtext: "weihenstephan, Tierwissenschaften" + subtext_bold: 1.21@4317 + - id: 4404.EG.003 + type: room + name: "4404.EG.003 ( \u0019Mi\u0017kroskopie)" + subtext: "limnologische-station-iffeldorf, Seminargebäude" + subtext_bold: 003@4404 + - id: 0103.U1.301 + type: room + name: "0103.U1.301 ( FIB-\u0019Mi\u0017kroskopierraum)" + subtext: "stammgelände, E-Technik El. Maschinen / Geräte (N3)" + subtext_bold: "-1301@0103" + - id: 4124.EG.320 + type: room + name: "4124.EG.320 ( L1 \u0019Mi\u0017kroorganismen)" + subtext: "weihenstephan, ZIEL II – Molekulare Biowissenschaften" + subtext_bold: E/3.20@4124 + n_visible: 10 + estimatedTotalHits: 1000 +- facet: sites_buildings + entries: [] + n_visible: 0 + estimatedTotalHits: 28 diff --git a/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-45.snap b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-45.snap new file mode 100644 index 000000000..f59642b6c --- /dev/null +++ b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-45.snap @@ -0,0 +1,64 @@ +--- +source: main-api/src/search/search_executor/mod.rs +description: "This is 'N-1403@0104', but 'N1403@0104' can be before this" +expression: actual +info: n1403 should get 0104.U1.403 +--- +- facet: rooms + entries: + - id: 0104.01.403 + type: room + name: 0104.01.403 ( Büro) + subtext: "stammgelände, E-Technik Elektrophysik (N4)" + subtext_bold: N1403@0104 + - id: 0102.01.203 + type: room + name: 0102.01.203 ( Hörsaal-eben m.exp.-Bühne) + subtext: "stammgelände, Hochvolthaus (N2)" + subtext_bold: N1203@0102 + - id: 0101.Z1.003 + type: room + name: 0101.Z1.003 ( Studentenarbeitsraum) + subtext: "stammgelände, U-Trakt (N1)" + subtext_bold: N1003ZG@0101 + - id: 0101.Z1.039 + type: room + name: 0101.Z1.039 ( Seminarraum) + subtext: "stammgelände, U-Trakt (N1)" + subtext_bold: N1039ZG@0101 + - id: 0104.01.406 + type: room + name: 0104.01.406 ( Studentenarb. m. DV) + subtext: "stammgelände, E-Technik Elektrophysik (N4)" + subtext_bold: N1406@0104 + - id: 0108.01.803 + type: room + name: 0108.01.803 ( Gruppenraum) + subtext: "stammgelände, E-Technik Verfügungsgebäude (N8)" + subtext_bold: N1803@0108 + - id: 0101.Z1.031 + type: room + name: 0101.Z1.031 ( Bibliotheksraum einf.) + subtext: "stammgelände, U-Trakt (N1)" + subtext_bold: N1031ZG@0101 + - id: 5112.EG.103N + type: room + name: 5112.EG.103N ( Labor) + subtext: "garching, Walter-Schottky-Institut (WSI)" + subtext_bold: N103@5112 + - id: 0101.Z1.030 + type: room + name: 0101.Z1.030 ( Besprechungsraum) + subtext: "stammgelände, U-Trakt (N1)" + subtext_bold: N1030ZG@0101 + - id: 0101.Z1.032 + type: room + name: 0101.Z1.032 ( Büro) + subtext: "stammgelände, U-Trakt (N1)" + subtext_bold: N1032ZG@0101 + n_visible: 10 + estimatedTotalHits: 552 +- facet: sites_buildings + entries: [] + n_visible: 0 + estimatedTotalHits: 0 diff --git a/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-46.snap b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-46.snap new file mode 100644 index 000000000..f66481171 --- /dev/null +++ b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-46.snap @@ -0,0 +1,64 @@ +--- +source: main-api/src/search/search_executor/mod.rs +description: "typo + it's 'Fachschaftsbüro' in the data" +expression: actual +info: fachschaft pyhsik should get 5101.EG.257 +--- +- facet: rooms + entries: + - id: 0104.EG.413 + type: room + name: "0104.EG.413 ( Elektroniklabor \u0019Fachschaft\u0017 EI)" + subtext: "stammgelände, E-Technik Elektrophysik (N4)" + subtext_bold: N0413@0104 + - id: 5101.EG.257 + type: room + name: "5101.EG.257 (Büro \u0019Fachschaft\u0017 Mathe \u0019Physik\u0017 Informatik Chemie / MPIC)" + subtext: "garching, Physik I" + subtext_bold: 2257@5101 + - id: 5606.EG.036 + type: room + name: "5606.EG.036 (Büro \u0019Fachschaft\u0017 Mathe \u0019Physik\u0017 Informatik Chemie / MPIC)" + subtext: "garching, Mathe/Info (MI)" + subtext_bold: 00.06.036@5606 + - id: 5606.EG.037 + type: room + name: "5606.EG.037 (Besprechungsraum \u0019Fachschaft\u0017 Mathe \u0019Physik\u0017 Informatik Chemie / MPIC)" + subtext: "garching, Mathe/Info (MI)" + subtext_bold: 00.06.037@5606 + - id: 5406.01.650C + type: room + name: "5406.01.650C (Büro \u0019Fachschaft\u0017 Mathe \u0019Physik\u0017 Informatik Chemie / MPIC)" + subtext: "garching, Chemie" + subtext_bold: 26503@5406 + - id: 5606.EG.038 + type: room + name: "5606.EG.038 (Lager \u0019Fachschaft\u0017 Mathe \u0019Physik\u0017 Informatik Chemie / MPIC)" + subtext: "garching, Mathe/Info (MI)" + subtext_bold: 00.06.038@5606 + - id: 5606.EG.039 + type: room + name: "5606.EG.039 (Skriptenverkauf \u0019Fachschaft\u0017 Mathe \u0019Physik\u0017 Informatik Chemie / MPIC)" + subtext: "garching, Mathe/Info (MI)" + subtext_bold: 00.06.039@5606 + - id: 2333.01.103 + type: room + name: "2333.01.103 ( \u0019Fachschaft\u0017 Sport)" + subtext: "campus-im-olympiapark-sz, CiO/SG Hallen Ost" + subtext_bold: 01.2333.103@2333 + - id: 9377.01.130 + type: room + name: "9377.01.130 ( Projektraum \u0019Fachschaft\u0017)" + subtext: "taufkirchen-ottobr., Lise-Meitner-Straße 9-11" + subtext_bold: 01.130@9377 + - id: 0504.EG.424 + type: room + name: "0504.EG.424 ( Arbeitsraum/Studenten/\u0019Fachschaft\u0017)" + subtext: "stammgelände, Landwirtschaftsbau (Z4)" + subtext_bold: 0424@0504 + n_visible: 10 + estimatedTotalHits: 37 +- facet: sites_buildings + entries: [] + n_visible: 0 + estimatedTotalHits: 0 diff --git a/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-47.snap b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-47.snap new file mode 100644 index 000000000..703cf9ff1 --- /dev/null +++ b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-47.snap @@ -0,0 +1,63 @@ +--- +source: main-api/src/search/search_executor/mod.rs +description: "H.003 is the correct room, but people have problems remembering how many zeroes are in the room number" +expression: actual +info: H.0003 should get 2910.EG.003 +--- +- facet: sites_buildings + entries: + - id: "2910" + type: building + name: "Richard-Wagner-Str. 1 / Haus B + Haus \u0019H\u0017, Hochschule für Politik (HfP)/ Department of Governance (GOV)" + subtext: Gebäude + n_visible: 1 + estimatedTotalHits: 1 +- facet: rooms + entries: + - id: 2910.01.101 + type: room + name: 2910.01.101 ( Gruppenarbeitsraum) + subtext: "stammgelände, RiWa 1 (HfP/GOV)" + subtext_bold: H.101@2910 + - id: 2910.01.102 + type: room + name: 2910.01.102 ( Gruppenarbeitsraum) + subtext: "stammgelände, RiWa 1 (HfP/GOV)" + subtext_bold: H.102@2910 + - id: 2910.02.202 + type: room + name: 2910.02.202 ( Seminarraum) + subtext: "stammgelände, RiWa 1 (HfP/GOV)" + subtext_bold: H.202@2910 + - id: 2910.02.204 + type: room + name: 2910.02.204 ( Seminarraum) + subtext: "stammgelände, RiWa 1 (HfP/GOV)" + subtext_bold: H.204@2910 + - id: 2910.02.206 + type: room + name: 2910.02.206 ( Seminarraum) + subtext: "stammgelände, RiWa 1 (HfP/GOV)" + subtext_bold: H.206@2910 + - id: 2910.EG.001 + type: room + name: 2910.EG.001 ( Seminarraum) + subtext: "stammgelände, RiWa 1 (HfP/GOV)" + subtext_bold: H.001@2910 + - id: 2910.EG.002 + type: room + name: 2910.EG.002 ( Seminarraum) + subtext: "stammgelände, RiWa 1 (HfP/GOV)" + subtext_bold: H.002@2910 + - id: 2910.EG.003 + type: room + name: 2910.EG.003 ( Seminarraum) + subtext: "stammgelände, RiWa 1 (HfP/GOV)" + subtext_bold: H.003@2910 + - id: 5212.01.028 + type: room + name: 5212.01.028 ( Gemeinschaftsraum) + subtext: "garching, RCM Radiochemie München" + subtext_bold: H.1.028@5212 + n_visible: 9 + estimatedTotalHits: 412 diff --git a/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-48.snap b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-48.snap new file mode 100644 index 000000000..3c9720eb9 --- /dev/null +++ b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-48.snap @@ -0,0 +1,64 @@ +--- +source: main-api/src/search/search_executor/mod.rs +description: "H.003 is the correct room, but people have problems remembering how many zeroes are in the room number" +expression: actual +info: H.003 should get 2910.EG.003 +--- +- facet: rooms + entries: + - id: 2910.EG.003 + type: room + name: "2910.EG.\u0019003\u0017 ( Seminarraum)" + subtext: "stammgelände, RiWa 1 (HfP/GOV)" + subtext_bold: H.003@2910 + parsed_id: "\u0019H.003\u0017 RiWa 1 (HfP/GOV)" + - id: 5212.EG.003 + type: room + name: "5212.EG.\u0019003\u0017 ( Post/Annahme)" + subtext: "garching, RCM Radiochemie München" + subtext_bold: H.0.003@5212 + - id: 5212.U1.003 + type: room + name: "5212.U1.\u0019003\u0017 ( Kälte)" + subtext: "garching, RCM Radiochemie München" + subtext_bold: H.-1.003@5212 + - id: 2910.01.101 + type: room + name: 2910.01.101 ( Gruppenarbeitsraum) + subtext: "stammgelände, RiWa 1 (HfP/GOV)" + subtext_bold: H.101@2910 + - id: 2910.01.102 + type: room + name: 2910.01.102 ( Gruppenarbeitsraum) + subtext: "stammgelände, RiWa 1 (HfP/GOV)" + subtext_bold: H.102@2910 + - id: 2910.02.202 + type: room + name: 2910.02.202 ( Seminarraum) + subtext: "stammgelände, RiWa 1 (HfP/GOV)" + subtext_bold: H.202@2910 + - id: 2910.02.204 + type: room + name: 2910.02.204 ( Seminarraum) + subtext: "stammgelände, RiWa 1 (HfP/GOV)" + subtext_bold: H.204@2910 + - id: 2910.02.206 + type: room + name: 2910.02.206 ( Seminarraum) + subtext: "stammgelände, RiWa 1 (HfP/GOV)" + subtext_bold: H.206@2910 + - id: 2910.EG.001 + type: room + name: 2910.EG.001 ( Seminarraum) + subtext: "stammgelände, RiWa 1 (HfP/GOV)" + subtext_bold: H.001@2910 + n_visible: 9 + estimatedTotalHits: 412 +- facet: sites_buildings + entries: + - id: "2910" + type: building + name: "Richard-Wagner-Str. 1 / Haus B + Haus \u0019H\u0017, Hochschule für Politik (HfP)/ Department of Governance (GOV)" + subtext: Gebäude + n_visible: 0 + estimatedTotalHits: 1 diff --git a/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-49.snap b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-49.snap new file mode 100644 index 000000000..0ebb66e31 --- /dev/null +++ b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-49.snap @@ -0,0 +1,66 @@ +--- +source: main-api/src/search/search_executor/mod.rs +description: "H.003 is the correct room, but people have problems remembering how many zeroes are in the room number" +expression: actual +info: H.03 should get 2910.EG.003 +--- +- facet: rooms + entries: + - id: 5212.01.030 + type: room + name: "5212.01.\u001903\u00170 ( Gemeinschaftsraum)" + subtext: "garching, RCM Radiochemie München" + subtext_bold: H.1.030@5212 + - id: 5212.02.030 + type: room + name: "5212.02.\u001903\u00170 ( Gemeinschaftsraum)" + subtext: "garching, RCM Radiochemie München" + subtext_bold: H.2.030@5212 + - id: 2910.EG.031 + type: room + name: "2910.EG.\u001903\u00171 ( WC-Herren)" + subtext: "stammgelände, RiWa 1 (HfP/GOV)" + subtext_bold: H.031@2910 + parsed_id: "\u0019H.03\u00171 RiWa 1 (HfP/GOV)" + - id: 2910.EG.032 + type: room + name: "2910.EG.\u001903\u00172 ( Beh.-WC)" + subtext: "stammgelände, RiWa 1 (HfP/GOV)" + subtext_bold: H.032@2910 + parsed_id: "\u0019H.03\u00172 RiWa 1 (HfP/GOV)" + - id: 0504.03.430 + type: room + name: "0504.\u001903\u0017.430 ( WC-\u0019H\u0017)" + subtext: "stammgelände, Landwirtschaftsbau (Z4)" + subtext_bold: 3430@0504 + - id: 0505.03.522 + type: room + name: "0505.\u001903\u0017.522 ( WC-\u0019H\u0017)" + subtext: "stammgelände, Wirtschaftswissenschaften (Z5)" + subtext_bold: 3522@0505 + - id: 0505.03.526A + type: room + name: "0505.\u001903\u0017.526A ( WC-\u0019H\u0017)" + subtext: "stammgelände, Wirtschaftswissenschaften (Z5)" + subtext_bold: 3526@0505 + - id: 0501.03.135 + type: room + name: "0501.\u001903\u0017.135 ( Vorraum WC-\u0019H\u0017)" + subtext: "stammgelände, Hauptgebäude (Z1)" + subtext_bold: 3135@0501 + - id: 0501.03.135B + type: room + name: "0501.\u001903\u0017.135B ( Toilette WC-\u0019H\u0017)" + subtext: "stammgelände, Hauptgebäude (Z1)" + subtext_bold: 3135B@0501 + - id: 0501.03.153A + type: room + name: "0501.\u001903\u0017.153A ( Vorraum WC-\u0019H\u0017)" + subtext: "stammgelände, Hauptgebäude (Z1)" + subtext_bold: 3153A@0501 + n_visible: 10 + estimatedTotalHits: 412 +- facet: sites_buildings + entries: [] + n_visible: 0 + estimatedTotalHits: 1 diff --git a/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-5.snap b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-5.snap new file mode 100644 index 000000000..3bbf0310e --- /dev/null +++ b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-5.snap @@ -0,0 +1,63 @@ +--- +source: main-api/src/search/search_executor/mod.rs +description: "" +expression: actual +info: "'Interims 2' should get '5416' in 1 results" +--- +- facet: sites_buildings + entries: + - id: "5416" + type: building + name: "\u0019Interimshörsäle\u0017 \u0019II\u0017, Jürgen Manchot-Hörsaalgebäude" + subtext: Gebäude + n_visible: 1 + estimatedTotalHits: 4 +- facet: rooms + entries: + - id: 5416.01.003 + type: room + name: "5416.01.003 ( Hörsaal \u00192\u0017, \"\u0019Interims\u0017 \u0019II\u0017\")" + subtext: "garching, Interims II" + subtext_bold: 003@5416 + - id: 5416.01.004 + type: room + name: "5416.01.004 ( Hörsaal 1, Jürgen-Manchot-Hörsaal)" + subtext: "garching, Interims II" + subtext_bold: 004@5416 + - id: 5620.01.102 + type: room + name: "5620.01.102 ( Hörsaal \u00192\u0017, \"\u0019Interims\u0017 I\")" + subtext: "garching, Interims I" + subtext_bold: 102@5620 + - id: 5539.EG.002 + type: room + name: "5539.EG.002 ( Hörsaal \u00192\u0017, \"Zelt\")" + subtext: "garching, Interims III" + subtext_bold: 0.002@5539 + - id: 5416.EG.010 + type: room + name: 5416.EG.010 ( IT/Audio) + subtext: "garching, Interims II" + subtext_bold: 010@5416 + - id: 5416.EG.005 + type: room + name: 5416.EG.005 ( WC-Vorraum Damen u. Herren) + subtext: "garching, Interims II" + subtext_bold: 005@5416 + - id: 5416.EG.006 + type: room + name: 5416.EG.006 ( WC-Herren) + subtext: "garching, Interims II" + subtext_bold: 006@5416 + - id: 5416.EG.007 + type: room + name: 5416.EG.007 ( WC-Beh.) + subtext: "garching, Interims II" + subtext_bold: 007@5416 + - id: 5416.EG.008 + type: room + name: 5416.EG.008 ( Putzraum) + subtext: "garching, Interims II" + subtext_bold: 008@5416 + n_visible: 9 + estimatedTotalHits: 47 diff --git a/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-50.snap b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-50.snap new file mode 100644 index 000000000..0cc74e53e --- /dev/null +++ b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-50.snap @@ -0,0 +1,66 @@ +--- +source: main-api/src/search/search_executor/mod.rs +description: "H.003 is the correct room, but people have problems remembering how many zeroes are in the room number" +expression: actual +info: H.3 should get 2910.EG.003 +--- +- facet: rooms + entries: + - id: 5212.01.028 + type: room + name: 5212.01.028 ( Gemeinschaftsraum) + subtext: "garching, RCM Radiochemie München" + subtext_bold: H.1.028@5212 + - id: 5212.01.030 + type: room + name: 5212.01.030 ( Gemeinschaftsraum) + subtext: "garching, RCM Radiochemie München" + subtext_bold: H.1.030@5212 + - id: 5212.02.028 + type: room + name: 5212.02.028 ( Gemeinschaftsraum) + subtext: "garching, RCM Radiochemie München" + subtext_bold: H.2.028@5212 + - id: 5212.02.030 + type: room + name: 5212.02.030 ( Gemeinschaftsraum) + subtext: "garching, RCM Radiochemie München" + subtext_bold: H.2.030@5212 + - id: 5212.EG.006 + type: room + name: 5212.EG.006 ( Seminar 1) + subtext: "garching, RCM Radiochemie München" + subtext_bold: H.0.006@5212 + - id: 4124.U1.001A + type: room + name: 4124.U1.001A ( Praktikum (Hinterer Raumteil)) + subtext: "weihenstephan, ZIEL II – Molekulare Biowissenschaften" + subtext_bold: P/1.01 H@4124 + - id: 5212.EG.007 + type: room + name: "5212.EG.007 ( Wischtest, freig.)" + subtext: "garching, RCM Radiochemie München" + subtext_bold: H.0.007@5212 + - id: 5212.EG.603 + type: room + name: 5212.EG.603 ( Pers. Dekont./Dusche) + subtext: "garching, RCM Radiochemie München" + subtext_bold: H.0.603@5212 + - id: 2910.03.301 + type: room + name: "2910.03.\u00193\u001701 ( Büro)" + subtext: "stammgelände, RiWa 1 (HfP/GOV)" + subtext_bold: H.301@2910 + parsed_id: "\u0019H.3\u001701 RiWa 1 (HfP/GOV)" + - id: 2910.03.302 + type: room + name: "2910.03.\u00193\u001702 ( Büro)" + subtext: "stammgelände, RiWa 1 (HfP/GOV)" + subtext_bold: H.302@2910 + parsed_id: "\u0019H.3\u001702 RiWa 1 (HfP/GOV)" + n_visible: 10 + estimatedTotalHits: 413 +- facet: sites_buildings + entries: [] + n_visible: 0 + estimatedTotalHits: 1 diff --git a/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-51.snap b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-51.snap new file mode 100644 index 000000000..2bee67179 --- /dev/null +++ b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-51.snap @@ -0,0 +1,26 @@ +--- +source: main-api/src/search/search_executor/mod.rs +description: "The architects name is a N2119. There are other rooms which are actually named '2119', which means 4 is the best case." +expression: actual +info: 2119 should get 0101.02.119 +--- +- facet: rooms + entries: + - id: 5101.EG.119 + type: room + name: 5101.EG.119 ( Physiklabor (einfach)) + subtext: "garching, Physik I" + subtext_bold: 2119@5101 + parsed_id: "PH \u00192119\u0017" + - id: 5413.01.119 + type: room + name: 5413.01.119 ( Kopierer) + subtext: "garching, BNMRZ Bayerisches NMR-Zentrum" + subtext_bold: 2119@5413 + parsed_id: "\u00192119\u0017 BNMRZ B…MR-Zentrum" + n_visible: 2 + estimatedTotalHits: 2 +- facet: sites_buildings + entries: [] + n_visible: 0 + estimatedTotalHits: 0 diff --git a/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-52.snap b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-52.snap new file mode 100644 index 000000000..1d6e4f284 --- /dev/null +++ b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-52.snap @@ -0,0 +1,59 @@ +--- +source: main-api/src/search/search_executor/mod.rs +description: "This should match this Lecture hall and not the HS 1, just because both are in the Bolzmanstr. *3* 4 is the best case." +expression: actual +info: MI HS3 should get 5606.EG.011 +--- +- facet: sites_buildings + entries: + - id: mi + type: joined_building + name: "Fakultät Mathematik & Informatik (FMI oder \u0019MI\u0017)" + subtext: Gebäudekomplex + - id: "5605" + type: building + name: Finger 05 (BT05) + subtext: Gebäudeteil + - id: "5606" + type: building + name: Finger 06 (BT06) + subtext: Gebäudeteil + - id: "5607" + type: building + name: Finger 07 (BT07) + subtext: Gebäudeteil + - id: "5609" + type: building + name: Finger 09 (BT09) + subtext: Gebäudeteil + n_visible: 5 + estimatedTotalHits: 14 +- facet: rooms + entries: + - id: 5606.EG.011 + type: room + name: "5606.EG.011 ( \u0019MI\u0017 \u0019Hörsaal\u0017 \u00193\u0017)" + subtext: "garching, Mathe/Info (MI)" + subtext_bold: 00.06.011@5606 + - id: 5602.EG.001 + type: room + name: "5602.EG.001 ( \u0019MI\u0017 \u0019HS\u0017 1, Friedrich L. Bauer \u0019Hörsaal\u0017)" + subtext: "garching, Mathe/Info (MI)" + subtext_bold: 00.02.001@5602 + - id: 5604.EG.011 + type: room + name: "5604.EG.011 ( \u0019MI\u0017 \u0019Hörsaal\u0017 2)" + subtext: "garching, Mathe/Info (MI)" + subtext_bold: 00.04.011@5604 + - id: 5602.EG.002 + type: room + name: "5602.EG.002 ( \u0019MI\u0017 \u0019Hörsaal\u0017 Regieraum)" + subtext: "garching, Mathe/Info (MI)" + subtext_bold: 00.02.002@5602 + - id: 5602.U1.001 + type: room + name: 5602.U1.001 ( Technikraum) + subtext: "garching, Mathe/Info (MI)" + subtext_bold: "-1.02.001@5602" + n_visible: 5 + estimatedTotalHits: 1000 diff --git a/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-53.snap b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-53.snap new file mode 100644 index 000000000..42bfedfff --- /dev/null +++ b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-53.snap @@ -0,0 +1,60 @@ +--- +source: main-api/src/search/search_executor/mod.rs +description: "" +expression: actual +info: MI HS 3 should get 5606.EG.011 +--- +- facet: rooms + entries: + - id: 5606.EG.011 + type: room + name: "5606.EG.011 ( \u0019MI\u0017 \u0019Hörsaal\u0017 \u00193\u0017)" + subtext: "garching, Mathe/Info (MI)" + subtext_bold: 00.06.011@5606 + - id: 5602.EG.001 + type: room + name: "5602.EG.001 ( \u0019MI\u0017 \u0019HS\u0017 1, Friedrich L. Bauer \u0019Hörsaal\u0017)" + subtext: "garching, Mathe/Info (MI)" + subtext_bold: 00.02.001@5602 + - id: 5604.EG.011 + type: room + name: "5604.EG.011 ( \u0019MI\u0017 \u0019Hörsaal\u0017 2)" + subtext: "garching, Mathe/Info (MI)" + subtext_bold: 00.04.011@5604 + - id: 5602.EG.002 + type: room + name: "5602.EG.002 ( \u0019MI\u0017 \u0019Hörsaal\u0017 Regieraum)" + subtext: "garching, Mathe/Info (MI)" + subtext_bold: 00.02.002@5602 + - id: 5602.U1.001 + type: room + name: 5602.U1.001 ( Technikraum) + subtext: "garching, Mathe/Info (MI)" + subtext_bold: "-1.02.001@5602" + - id: 5602.U1.004 + type: room + name: 5602.U1.004 ( Treppe im Freien) + subtext: "garching, Mathe/Info (MI)" + subtext_bold: "-1.02.004@5602" + n_visible: 6 + estimatedTotalHits: 1000 +- facet: sites_buildings + entries: + - id: "5602" + type: building + name: "\u0019Hörsaal\u0017 1 (BT02)" + subtext: Gebäudeteil + - id: mi + type: joined_building + name: "Fakultät Mathematik & Informatik (FMI oder \u0019MI\u0017)" + subtext: Gebäudekomplex + - id: "5605" + type: building + name: Finger 05 (BT05) + subtext: Gebäudeteil + - id: "5606" + type: building + name: Finger 06 (BT06) + subtext: Gebäudeteil + n_visible: 0 + estimatedTotalHits: 14 diff --git a/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-54.snap b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-54.snap new file mode 100644 index 000000000..59a9c4c1c --- /dev/null +++ b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-54.snap @@ -0,0 +1,64 @@ +--- +source: main-api/src/search/search_executor/mod.rs +description: Architects names should be matchable literally +expression: actual +info: N1406 should get 0104.01.406 +--- +- facet: rooms + entries: + - id: 0104.01.406 + type: room + name: 0104.01.406 ( Studentenarb. m. DV) + subtext: "stammgelände, E-Technik Elektrophysik (N4)" + subtext_bold: N1406@0104 + - id: 0101.Z1.062B + type: room + name: "0101.Z1.062B ( N1 ZG, Studentische Arbeitsplätze)" + subtext: "stammgelände, U-Trakt (N1)" + subtext_bold: N1062BZG@0101 + - id: 0104.02.406 + type: room + name: 0104.02.406 ( Studentencomputerraum 1) + subtext: "stammgelände, E-Technik Elektrophysik (N4)" + subtext_bold: N2406@0104 + - id: 0104.01.416 + type: room + name: 0104.01.416 ( Kopierer) + subtext: "stammgelände, E-Technik Elektrophysik (N4)" + subtext_bold: N1416@0104 + - id: 0104.U1.406 + type: room + name: 0104.U1.406 ( Physikal. Versuchslabor) + subtext: "stammgelände, E-Technik Elektrophysik (N4)" + subtext_bold: N-1406@0104 + - id: 5112.EG.106N + type: room + name: 5112.EG.106N ( Labor) + subtext: "garching, Walter-Schottky-Institut (WSI)" + subtext_bold: N106@5112 + - id: 0101.Z1.006 + type: room + name: 0101.Z1.006 ( Sozialraum) + subtext: "stammgelände, U-Trakt (N1)" + subtext_bold: N1006ZG@0101 + - id: 0101.Z1.046 + type: room + name: 0101.Z1.046 ( WC-Herren) + subtext: "stammgelände, U-Trakt (N1)" + subtext_bold: N1046ZG@0101 + - id: 0101.Z1.046A + type: room + name: 0101.Z1.046A ( WC-Vorraum Herren) + subtext: "stammgelände, U-Trakt (N1)" + subtext_bold: N1046AZG@0101 + - id: 0103.01.306 + type: room + name: 0103.01.306 ( Büro) + subtext: "stammgelände, E-Technik El. Maschinen / Geräte (N3)" + subtext_bold: N1306@0103 + n_visible: 10 + estimatedTotalHits: 552 +- facet: sites_buildings + entries: [] + n_visible: 0 + estimatedTotalHits: 0 diff --git a/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-55.snap b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-55.snap new file mode 100644 index 000000000..9b69a4b07 --- /dev/null +++ b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-55.snap @@ -0,0 +1,64 @@ +--- +source: main-api/src/search/search_executor/mod.rs +description: Architects names should be matchable literally +expression: actual +info: N-1406 should get 0104.U1.406 +--- +- facet: rooms + entries: + - id: 0104.U1.406 + type: room + name: 0104.U1.406 ( Physikal. Versuchslabor) + subtext: "stammgelände, E-Technik Elektrophysik (N4)" + subtext_bold: N-1406@0104 + parsed_id: "\u0019N-1406\u0017 E-Techn…hysik (N4)" + - id: 0104.01.406 + type: room + name: 0104.01.406 ( Studentenarb. m. DV) + subtext: "stammgelände, E-Technik Elektrophysik (N4)" + subtext_bold: N1406@0104 + - id: 0103.U1.311 + type: room + name: 0103.U1.311 ( Praktikum/Umbau) + subtext: "stammgelände, E-Technik El. Maschinen / Geräte (N3)" + subtext_bold: N-1311@0103 + - id: 0108.U1.806A + type: room + name: 0108.U1.806A ( Experimenteller Raum) + subtext: "stammgelände, E-Technik Verfügungsgebäude (N8)" + subtext_bold: N-1806A@0108 + - id: 0108.U1.806B + type: room + name: 0108.U1.806B ( Experimenteller Raum) + subtext: "stammgelände, E-Technik Verfügungsgebäude (N8)" + subtext_bold: N-1806B@0108 + - id: 0108.U1.825 + type: room + name: 0108.U1.825 ( Experimenteller Raum) + subtext: "stammgelände, E-Technik Verfügungsgebäude (N8)" + subtext_bold: N-1825@0108 + - id: 0108.U1.825A + type: room + name: 0108.U1.825A ( Experimenteller Raum) + subtext: "stammgelände, E-Technik Verfügungsgebäude (N8)" + subtext_bold: N-1825A@0108 + - id: 9201.EG.005 + type: room + name: 9201.EG.005 ( Seminarraum 2) + subtext: TUM FZ Friedrich N. Schwarz Berchtesgaden + subtext_bold: EG-05@9201 + - id: 9201.EG.006 + type: room + name: 9201.EG.006 ( Seminarraum 1) + subtext: TUM FZ Friedrich N. Schwarz Berchtesgaden + subtext_bold: EG-06@9201 + n_visible: 9 + estimatedTotalHits: 552 +- facet: sites_buildings + entries: + - id: "9201" + type: building + name: "TUM FZ Friedrich \u0019N\u0017. Schwarz Berchtesgaden" + subtext: Gebäude + n_visible: 0 + estimatedTotalHits: 1 diff --git a/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-6.snap b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-6.snap new file mode 100644 index 000000000..ab09e1888 --- /dev/null +++ b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-6.snap @@ -0,0 +1,62 @@ +--- +source: main-api/src/search/search_executor/mod.rs +description: "Should give the 'new' mensa" +expression: actual +info: "'Mensa Garching' should get '5304' in 1 results # Should give the 'new' mensa" +--- +- facet: sites_buildings + entries: + - id: "5304" + type: building + name: "(Neue) \u0019Mensa\u0017 \u0019Garching\u0017" + subtext: Gebäude + - id: "5302" + type: building + name: "(Alte) \u0019Mensa\u0017 \u0019Garching\u0017" + subtext: Gebäude + n_visible: 2 + estimatedTotalHits: 5 +- facet: rooms + entries: + - id: 5302.01.022 + type: room + name: 5302.01.022 ( Seminarraum 2) + subtext: "garching, (Alte) Mensa Garching" + subtext_bold: 01.022.I@5302 + - id: 5302.01.023 + type: room + name: 5302.01.023 ( Seminarraum 1) + subtext: "garching, (Alte) Mensa Garching" + subtext_bold: 01.023.I@5302 + - id: 5302.01.038 + type: room + name: 5302.01.038 ( Bibliothek) + subtext: "garching, (Alte) Mensa Garching" + subtext_bold: 01.037.J@5302 + - id: 5302.01.016 + type: room + name: 5302.01.016 ( Kopierer) + subtext: "garching, (Alte) Mensa Garching" + subtext_bold: 01.016.H@5302 + - id: 5302.01.030 + type: room + name: 5302.01.030 ( Kopierer) + subtext: "garching, (Alte) Mensa Garching" + subtext_bold: 01.030.I@5302 + - id: 5302.01.043 + type: room + name: 5302.01.043 ( Kopierer) + subtext: "garching, (Alte) Mensa Garching" + subtext_bold: 01.043.K@5302 + - id: 5302.01.054 + type: room + name: 5302.01.054 ( Kopierer) + subtext: "garching, (Alte) Mensa Garching" + subtext_bold: 01.054.L@5302 + - id: 5302.EG.016A + type: room + name: 5302.EG.016A ( Prüfhalle Staubzone) + subtext: "garching, (Alte) Mensa Garching" + subtext_bold: 00.016.A@5302 + n_visible: 8 + estimatedTotalHits: 927 diff --git a/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-7.snap b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-7.snap new file mode 100644 index 000000000..f750b77c2 --- /dev/null +++ b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-7.snap @@ -0,0 +1,63 @@ +--- +source: main-api/src/search/search_executor/mod.rs +description: "" +expression: actual +info: "'neue Mensa' should get '5304' in 1 results" +--- +- facet: sites_buildings + entries: + - id: "5304" + type: building + name: "(\u0019Neue\u0017) \u0019Mensa\u0017 Garching" + subtext: Gebäude + n_visible: 1 + estimatedTotalHits: 1 +- facet: rooms + entries: + - id: 5304.01.101 + type: room + name: 5304.01.101 ( Speisesaal) + subtext: "garching, (Neue) Mensa Garching" + subtext_bold: 1.101@5304 + - id: 5304.01.102 + type: room + name: 5304.01.102 ( Vor-/Verteilerbereich) + subtext: "garching, (Neue) Mensa Garching" + subtext_bold: 1.102@5304 + - id: 5304.01.103 + type: room + name: 5304.01.103 ( Free Flow) + subtext: "garching, (Neue) Mensa Garching" + subtext_bold: 1.103@5304 + - id: 5304.01.104 + type: room + name: 5304.01.104 ( Produktionsküche) + subtext: "garching, (Neue) Mensa Garching" + subtext_bold: 1.104@5304 + - id: 5304.01.201 + type: room + name: 5304.01.201 ( Geschirrspüle) + subtext: "garching, (Neue) Mensa Garching" + subtext_bold: 1.201@5304 + - id: 5304.01.203 + type: room + name: 5304.01.203 ( Küchenchef) + subtext: "garching, (Neue) Mensa Garching" + subtext_bold: 1.203@5304 + - id: 5304.01.301 + type: room + name: 5304.01.301 ( Geschirrspüle) + subtext: "garching, (Neue) Mensa Garching" + subtext_bold: 1.301@5304 + - id: 5304.01.302 + type: room + name: 5304.01.302 ( Schwarzgeschirrspüle) + subtext: "garching, (Neue) Mensa Garching" + subtext_bold: 1.302@5304 + - id: 5304.01.307 + type: room + name: 5304.01.307 ( Putzraum) + subtext: "garching, (Neue) Mensa Garching" + subtext_bold: 1.307@5304 + n_visible: 9 + estimatedTotalHits: 263 diff --git a/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-8.snap b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-8.snap new file mode 100644 index 000000000..e13e2a99d --- /dev/null +++ b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-8.snap @@ -0,0 +1,61 @@ +--- +source: main-api/src/search/search_executor/mod.rs +description: "" +expression: actual +info: "'Physik Container' should get '5140' in 1 results" +--- +- facet: sites_buildings + entries: + - id: "5140" + type: building + name: "\u0019Physik\u0017 I \u0019Container\u0017" + subtext: Gebäude + - id: "5124" + type: building + name: "WSI \u0019Container\u0017" + subtext: Gebäude + - id: "5160" + type: building + name: "UCN-Testanlage (\u0019Container\u0017)" + subtext: Gebäude + n_visible: 3 + estimatedTotalHits: 28 +- facet: rooms + entries: + - id: 5140.01.201 + type: room + name: 5140.01.201 ( Tutorraum) + subtext: "garching, Physik I Container" + subtext_bold: C.3201@5140 + - id: 5140.01.202 + type: room + name: 5140.01.202 ( Tutorraum) + subtext: "garching, Physik I Container" + subtext_bold: C.3202@5140 + - id: 5140.01.203 + type: room + name: 5140.01.203 ( Tutorraum) + subtext: "garching, Physik I Container" + subtext_bold: C.3203@5140 + - id: 5140.01.204 + type: room + name: 5140.01.204 ( CIP-Raum) + subtext: "garching, Physik I Container" + subtext_bold: C.3204@5140 + - id: 5140.01.205 + type: room + name: 5140.01.205 ( CIP-Raum) + subtext: "garching, Physik I Container" + subtext_bold: C.3205@5140 + - id: 5140.01.206 + type: room + name: 5140.01.206 ( CIP-Raum) + subtext: "garching, Physik I Container" + subtext_bold: C.3206@5140 + - id: 5140.01.207 + type: room + name: 5140.01.207 ( CIP-Raum) + subtext: "garching, Physik I Container" + subtext_bold: C.3207@5140 + n_visible: 7 + estimatedTotalHits: 1000 diff --git a/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-9.snap b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-9.snap new file mode 100644 index 000000000..6beb11e6d --- /dev/null +++ b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries-9.snap @@ -0,0 +1,62 @@ +--- +source: main-api/src/search/search_executor/mod.rs +description: "" +expression: actual +info: "'znn' should get '5115' in 1 results" +--- +- facet: sites_buildings + entries: + - id: "5115" + type: building + name: "Zentrum für Nanotechnologie & -materialien (\u0019ZNN\u0017)" + subtext: Gebäude + - id: "5116" + type: building + name: "Trafostation des \u0019ZNN\u0017" + subtext: Gebäude + n_visible: 2 + estimatedTotalHits: 2 +- facet: rooms + entries: + - id: 5115.EG.001 + type: room + name: 5115.EG.001 ( Seminarraum) + subtext: "garching, Zentrum für Nanotechnologie & -materialien (ZNN)" + subtext_bold: 0.001@5115 + - id: 5115.01.008 + type: room + name: 5115.01.008 ( Kopierraum) + subtext: "garching, Zentrum für Nanotechnologie & -materialien (ZNN)" + subtext_bold: 1.008@5115 + - id: 5115.01.011 + type: room + name: 5115.01.011 ( Chemie Labor) + subtext: "garching, Zentrum für Nanotechnologie & -materialien (ZNN)" + subtext_bold: 1.011@5115 + - id: 5115.01.011A + type: room + name: 5115.01.011A ( Chemie Labor) + subtext: "garching, Zentrum für Nanotechnologie & -materialien (ZNN)" + subtext_bold: 1.011A@5115 + - id: 5115.01.019 + type: room + name: 5115.01.019 ( Spektroskopie) + subtext: "garching, Zentrum für Nanotechnologie & -materialien (ZNN)" + subtext_bold: 1.019@5115 + - id: 5115.01.020 + type: room + name: 5115.01.020 ( Spektroskopie) + subtext: "garching, Zentrum für Nanotechnologie & -materialien (ZNN)" + subtext_bold: 1.020@5115 + - id: 5115.01.021 + type: room + name: 5115.01.021 ( Spektroskopie) + subtext: "garching, Zentrum für Nanotechnologie & -materialien (ZNN)" + subtext_bold: 1.021@5115 + - id: 5115.01.022 + type: room + name: 5115.01.022 ( Technik) + subtext: "garching, Zentrum für Nanotechnologie & -materialien (ZNN)" + subtext_bold: 1.022@5115 + n_visible: 8 + estimatedTotalHits: 141 diff --git a/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries.snap b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries.snap new file mode 100644 index 000000000..f2a2303ae --- /dev/null +++ b/server/main-api/src/search/search_executor/snapshots/navigatum_main_api__search__search_executor__test__good_queries.snap @@ -0,0 +1,63 @@ +--- +source: main-api/src/search/search_executor/mod.rs +description: "" +expression: actual +info: hochbrück should get garching-hochbrueck +--- +- facet: sites_buildings + entries: + - id: garching-hochbrueck + type: site + name: "Garching \u0019Hochbrück\u0017" + subtext: Standort + n_visible: 1 + estimatedTotalHits: 4 +- facet: rooms + entries: + - id: 8101.02.136 + type: room + name: "8101.02.136 ( \u0019Hochbrück\u0017-Bibliothek)" + subtext: "garching-hochbrück, Business Campus 1" + subtext_bold: 2.01.36@8101 + - id: 8101.02.235 + type: room + name: "8101.02.235 ( \u0019Hochbrück\u0017-Kommunikationsraum)" + subtext: "garching-hochbrück, Business Campus 1" + subtext_bold: 2.02.35@8101 + - id: 8102.03.111 + type: room + name: "8102.03.111 ( \u0019Hochbrück\u0017-Kommunikation 1)" + subtext: "garching-hochbrück, Business Campus 2" + subtext_bold: 3.1.11@8102 + - id: 8102.03.216 + type: room + name: "8102.03.216 ( \u0019Hochbrück\u0017-Konferenz)" + subtext: "garching-hochbrück, Business Campus 2" + subtext_bold: 3.2.16@8102 + - id: 8102.03.233 + type: room + name: "8102.03.233 ( \u0019Hochbrück\u0017-Kommunikation 2)" + subtext: "garching-hochbrück, Business Campus 2" + subtext_bold: 3.2.33@8102 + - id: 8102.03.302 + type: room + name: "8102.03.302 ( \u0019Hochbrück\u0017-Kommunikation 3)" + subtext: "garching-hochbrück, Business Campus 2" + subtext_bold: 3.3.02@8102 + - id: 8102.03.428 + type: room + name: "8102.03.428 ( \u0019Hochbrück\u0017-Konferenz)" + subtext: "garching-hochbrück, Business Campus 2" + subtext_bold: 3.4.28@8102 + - id: 8102.03.433 + type: room + name: "8102.03.433 ( \u0019Hochbrück\u0017-Kommunikation 4)" + subtext: "garching-hochbrück, Business Campus 2" + subtext_bold: 3.4.33@8102 + - id: 8102.03.502 + type: room + name: "8102.03.502 ( \u0019Hochbrück\u0017-Kommunikation 5)" + subtext: "garching-hochbrück, Business Campus 2" + subtext_bold: 3.5.02@8102 + n_visible: 9 + estimatedTotalHits: 383 diff --git a/server/main-api/src/search/search_executor/test-queries.bad.yaml b/server/main-api/src/search/search_executor/test-queries.bad.yaml new file mode 100644 index 000000000..9f7b3adfd --- /dev/null +++ b/server/main-api/src/search/search_executor/test-queries.bad.yaml @@ -0,0 +1,85 @@ +# "org"/poi queries +- target: mi-bib + query: mathe bib + comment: target is hallucinated as it currently does not exist +- target: tb-arcisstraße + query: tb innenstadt + comment: target is hallucinated as it currently does not exist +# building queries +- target: '5620' + query: interims I +- target: '0201' + query: Studitum Arcisstr + comment: 'Note: It is not really in Arcisstr., just close' +- target: '2906' + query: Karlsstr. 47 + comment: uses 'str.' instead of 'straße' +# room queries +- target: 5602.EG.001 + query: mi hs 1 +- target: 5510.EG.001 + query: niemann + comment: >- + old name before the NS renamings was 'MW 0001, Gustav-Niemann-Hörsaal', + changed in Q1 24 +- target: 5510.EG.001 + query: mw g niemann + comment: >- + old name before the NS renamings was 'MW 0001, Gustav-Niemann-Hörsaal', + changed in Q1 24 +- target: 5402.01.220J + query: CH22209 +- target: 5602.EG.001 + query: f abuer + comment: typo with short word and at first letter +- target: 0501.EG.144 + query: ssz + comment: >- + main room called 'service desk', only all 114abc.. subrooms have 'ssz' in + the name +- target: 0501.EG.136 + query: Immathalle +- target: 2903.02.209 + query: Augustenstraße 44; Raum 209; 2.OG + comment: Copy/paste from real search +- target: 5604.EG.038 + query: praktikumsraum mi + among: 2 + comment: 'there are two basic lab course rooms, this is one of them' +- target: 5604.EG.036 + query: physik labor mi + among: 3 + comment: "'5604.02.033' is a valid result before the two lab course rooms" +- target: 0104.U1.403 + query: n1403 + among: 2 + comment: "This is 'N-1403@0104', but 'N1403@0104' can be before this" +- target: 5101.EG.257 + query: fachschaft pyhsik + comment: typo + it's 'Fachschaftsbüro' in the data +- target: 2910.EG.003 + query: H.0003 + comment: >- + H.003 is the correct room, but people have problems remembering how many + zeroes are in the room number +- target: 2910.EG.003 + query: H.03 + comment: >- + H.003 is the correct room, but people have problems remembering how many + zeroes are in the room number +- target: 2910.EG.003 + query: H.3 + comment: >- + H.003 is the correct room, but people have problems remembering how many + zeroes are in the room number +- target: 0101.02.119 + query: '2119' + among: 4 + comment: >- + The architects name is a N2119. There are other rooms which are actually + named '2119', which means 4 is the best case. +- target: 5606.EG.011 + query: MI HS3 + comment: >- + This should match this Lecture hall and not the HS 1, just because both are + in the Bolzmanstr. *3* 4 is the best case. diff --git a/server/main-api/src/search/search_executor/test-queries.good.yaml b/server/main-api/src/search/search_executor/test-queries.good.yaml new file mode 100644 index 000000000..e34f42687 --- /dev/null +++ b/server/main-api/src/search/search_executor/test-queries.good.yaml @@ -0,0 +1,92 @@ +# These test queries are intended to provide a consistent benchmark +# for search performance. They are however not (all) real world queries. + +# site/area/campus queries +- target: garching-hochbrueck + query: hochbrück +- target: wzw + query: wzw +# building queries +- target: '5301' + query: '5301' +- target: garching-interims + query: interims +- target: '5416' + query: Interims 2 +- target: '5304' + query: Mensa Garching + comment: Should give the 'new' mensa +- target: '5304' + query: neue Mensa +- target: '5140' + query: Physik Container +- target: '5115' + query: znn +- target: wzw-ziel + query: ZIEL +# room queries +- target: 5604.EG.011 + query: 5604.00.011 +- target: 5601.EG.001 + query: 5601.EG.001 + comment: MI Magistrale +- target: 5601.EG.001 + query: 00.01.001 + comment: A search for the Architects name should return the correct room +- target: 5608.03.011 + query: 03.08.011 +- target: 5508.02.801 + query: MW 1801 +- target: 5508.02.801 + query: MW1801 + comment: splitting necessary +- target: 5510.EG.001 + query: MW0001 + comment: splitting necessary +- target: 5510.02.001 + query: MW2001 + comment: splitting necessary +- target: 5508.02.801 + query: 1801 maschinen +- target: 5503.EG.337 + query: Raum 0337 mw +- target: 5101.EG.502 + query: pyhsik hs 2 +- target: 5101.EG.501 + query: mössbauer +- target: 5101.EG.342 + query: 342 Physik +- target: 5101.EG.503 + query: '2503' + comment: 'lecture hall, should be preferred over other rooms' +- target: 5111.01.116 + query: '1116' + comment: 'seminar room, should be preferred over other rooms' +- target: 5140.01.202 + query: C.3202 +- target: 5115.01.010 + query: 1010 znn + comment: Not sure about target here +- target: 5433.EG.092 + query: 0092@5433 +- target: 5510.EG.026M + query: 0026m@5510 +- target: 5123.EG.019 + query: 019 lmu +- target: 0509.EG.980 + query: audimax +- target: 0502.01.229 + query: 1229 seminarraum +- target: 2910.EG.003 + query: H.003 + comment: >- + H.003 is the correct room, but people have problems remembering how many + zeroes are in the room number +- target: 5606.EG.011 + query: MI HS 3 +- target: 0104.01.406 + query: N1406 + comment: Architects names should be matchable literally +- target: 0104.U1.406 + query: N-1406 + comment: Architects names should be matchable literally diff --git a/server/main-api/test/printer.py b/server/main-api/test/printer.py deleted file mode 100644 index 7353ab772..000000000 --- a/server/main-api/test/printer.py +++ /dev/null @@ -1,129 +0,0 @@ -import search_quality_test -from termcolor import colored - - -def print_specific_queries_result( - current: list[search_quality_test.Evaluation], - comparison: list[search_quality_test.Evaluation], -) -> None: - """Print the results of the specific queries""" - comparison_dict = {comp.query: comp for comp in comparison} - for search in current: - comp = comparison_dict[search.query] - s_pos_indicator = _gen_pos_indicator(search) - - # Grade - s_grade = str(round(search.grade, 1)) - if s_grade == "1.0": - continue - s_grade = { - "1.0": colored("1.0", "green", attrs=["bold"]), - "2.0": colored("2.0", "green", attrs=[]), - "3.0": colored("3.0", "yellow", attrs=["bold"]), - "4.0": colored("4.0", "yellow", attrs=[]), - "4.7": colored("4.7", "red", attrs=[]), - "5.0": colored("5.0", "red", attrs=["bold"]), - }[s_grade] - - # Grade cmp - s_cmp = _generate_grade_cmp(search, comp) - - s_query = _gen_colored_query(search) - s_stats = _gen_colored_stats(search) - - print(f"{s_pos_indicator} {s_grade}{s_cmp} {s_query} {s_stats}") - - num_searches = sum(len(s.query.query) + 1 for s in current) - print(f"Performed {num_searches} searches") - - -def _gen_colored_query(search: search_quality_test.Evaluation) -> str: - """ - Generate the colored Query - - Colors are chosen as followed - - Green indicates when a better position is reached - - White (not formatted) indicates minimum to reach top 5 - - Underline indicates minimum to reach final position - """ - green_end_pos = ( - search.len_to_best_pos - if ( - search.best_pos is not None - and search.len_to_best_pos is not None - and search.full_search.target_pos is not None - and (not search.full_search.was_successful or search.best_pos < search.full_search.target_pos) - ) - else 0 - ) - white_end_pos = search.len_to_reach_top_5 if search.len_to_reach_top_5 is not None else 0 - underline_end_pos = search.len_to_reach_final if search.len_to_reach_final is not None else 0 - - s_query = "" - for i, query_char in enumerate(search.query.query): - # This is not the best way of formatting, but sufficient here - if i >= green_end_pos and i >= white_end_pos: - s_query += colored( - str(query_char), - color="white", # this is gray - attrs=(["underline"] if i < underline_end_pos else []), - ) - elif green_end_pos < white_end_pos: - s_query += colored( - str(query_char), - color="green" if i < green_end_pos else None, - attrs=(["underline"] if i < underline_end_pos else []), - ) - else: - s_query += colored( - str(query_char), - color=None if i < white_end_pos else "green", - attrs=(["underline"] if i < underline_end_pos else []), - ) - s_query += " " * max(0, 50 - len(search.query.query)) - return s_query - - -def _generate_grade_cmp(search: search_quality_test.Evaluation, comp: search_quality_test.Evaluation) -> str: - grade_diff = abs(round(search.grade - comp.grade, 1)) - if comp.grade > search.grade: - return colored(f" +{grade_diff}", "red", attrs=["bold"]) - if comp.grade < search.grade: - return colored(f" -{grade_diff}", "green", attrs=["bold"]) - return " " - - -def _gen_colored_stats(search: search_quality_test.Evaluation) -> str: - """Generate the colored statistics""" - num_results = search.full_search.num_results - return f"{num_results:>4}" + colored(" hits, target: '", "white") + search.query.target + colored("')", "white") - - -def _gen_pos_indicator(search: search_quality_test.Evaluation) -> str: - """ - Generate the position indicator - - Said indicator is showing rougly how the results looked like and where the target entry was located - """ - if search.full_search.was_top5: - target_pos = search.full_search.target_pos or 0 - return ( - colored("[", "white") - + " " * target_pos - + colored("*", "cyan", attrs=["bold"]) - + " " * (min(search.full_search.num_results, 5) - target_pos - 1) - + colored("]", "white") - + colored("-" * (5 - min(search.full_search.num_results, 5)), "white") - + " " - ) - if search.full_search.was_top20: - return colored("[ ]", "white") + colored(">", "yellow") - if search.full_search.num_results > 0: - return ( - colored("[", "white") - + colored("x" * min(search.full_search.num_results, 5), "red") - + colored("]", "white") - + colored("-" * (5 - min(search.full_search.num_results, 5)), "white") - + " " - ) - return colored("[]-----", "red") + " " diff --git a/server/main-api/test/requirements.txt b/server/main-api/test/requirements.txt deleted file mode 100644 index 2ff826c0b..000000000 --- a/server/main-api/test/requirements.txt +++ /dev/null @@ -1,2 +0,0 @@ -termcolor==1.1.0 -tqdm==4.66.0 diff --git a/server/main-api/test/search_quality_test.py b/server/main-api/test/search_quality_test.py deleted file mode 100644 index 52fd3b5fb..000000000 --- a/server/main-api/test/search_quality_test.py +++ /dev/null @@ -1,160 +0,0 @@ -import dataclasses -import itertools -import urllib.parse -from pathlib import Path -from typing import Any - -import printer -import requests -import yaml -from tqdm.contrib.concurrent import thread_map - - -@dataclasses.dataclass(frozen=True, unsafe_hash=True) -class Query: # split into Query and EvaluatableQuery for import reasons - target: str - query: str - among: int = 1 - - -@dataclasses.dataclass -class SearchResult: - queried_length: int - target_pos: int | None - hits: list[dict[str, Any]] - num_results: int - - @property - def was_successful(self) -> bool: - """Whether the search was successful (i.e. there were results)""" - return self.target_pos is not None - - @property - def was_top5(self) -> bool: - """Whether the target was among the first 5 results""" - return self.target_pos is not None and 0 <= self.target_pos < 5 - - @property - def was_top20(self) -> bool: - """Whether the target was among the first 20 results""" - return self.target_pos is not None and 0 <= self.target_pos < 20 - - -@dataclasses.dataclass -class Evaluation: - query: Query - best_pos: int | None - len_to_reach_top_5: int | None - len_to_reach_final: int | None - len_to_best_pos: int | None - full_search: SearchResult - - @property - def grade(self) -> float: - """ - Calculate the grade of a search. - - Grading Rubric: - 1.0 = excellent (e.g. first result) - 2.0 = good (e.g. the first result of its type) - 3.0 = okay (e.g. among the first 5 results, some other results of its type before it) - 4.0 = passed (e.g. not in the first 5 results in autocomplete, but within the first 20 results) - 4.7 = failed (but at least not misleading, e.g. when there are no results at all) - 5.0 = very bad (e.g. not in the results, misleading results) - """ - if self.full_search.was_top5: - # "among" may specify where the target can also be without affecting grading - if self.full_search.target_pos < self.query.among: - return 1.0 - preceding_hits = self.full_search.hits[: self.full_search.target_pos] - preceding_types = {hit["type"] for hit in preceding_hits} - if self.full_search.hits[self.full_search.target_pos]["type"] not in preceding_types: - return 2.0 - return 3.0 - if self.full_search.was_top20: - return 4.0 - return 4.7 if self.full_search.num_results == 0 else 5.0 - - -class EvaluatableQuery(Query): - def do_search(self, search_endpoint: str, length: int) -> SearchResult: - """Perform a search for a specific query""" - query_string = urllib.parse.urlencode({"q": self.query[:length]}) - url = f"{search_endpoint}?{query_string}" - req = requests.get(url, timeout=10).json() - - hits = list(itertools.chain(*[s["entries"] for s in req["sections"]])) - try: - target_pos = [s["id"] == self.target for s in hits].index(True) - except ValueError: - target_pos = None - - return SearchResult( - queried_length=length, - target_pos=target_pos, - hits=hits, - num_results=sum(s["estimatedTotalHits"] for s in req["sections"]), - ) - - def evaluate(self, search_endpoint: str) -> Evaluation: - """ - Evaluate how well the search engine behaves for a specific query. - - :search_endpoint: The endpoint to query - """ - query_lengths = range(1, len(self.query) + 1) - searches = [self.do_search(search_endpoint, length) for length in query_lengths] - final_search = searches[-1] - successfull_searches = [search for search in searches if search.was_successful] - # among all successfull searches we look at the first one that reaches the best position - best_search = min( - successfull_searches, - key=lambda ls: (ls.target_pos, ls.queried_length), - default=None, - ) - - # among all successfull searches we look at the first one that reaches the top 5 - searches_who_reached_top_5 = [search for search in successfull_searches if search.was_top5] - len_to_reach_top_5 = searches_who_reached_top_5[0].queried_length if searches_who_reached_top_5 else None - - # among all successfull searches we look at the first one that reaches the final position - len_to_reach_final = min( - (search.queried_length for search in successfull_searches if search.target_pos == final_search.target_pos), - default=None, - ) - - return Evaluation( - query=self, - best_pos=best_search.target_pos if best_search else None, - len_to_best_pos=best_search.queried_length if best_search else None, - len_to_reach_top_5=len_to_reach_top_5, - len_to_reach_final=len_to_reach_final, - full_search=final_search, - ) - - -@dataclasses.dataclass -class Evaluations: - search_endpoint: str - - @property - def queries(self) -> list[Query]: - """Load the queries from the test-queries.yaml file""" - with open(Path(__file__).parent / "test-queries.yaml", encoding="utf-8") as file: - return [EvaluatableQuery(**query) for query in yaml.safe_load(file.read())] - - @property - def results(self) -> list[Evaluation]: - """Test the specific queries, and return the results""" - return thread_map( - lambda query: query.evaluate(self.search_endpoint), - self.queries, - desc=f"Querying {self.search_endpoint}", - ) - - -if __name__ == "__main__": - current = Evaluations(search_endpoint="https://nav.tum.de/api/search") - comparison = Evaluations(search_endpoint="http://localhost:3003/api/search") - - printer.print_specific_queries_result(current.results, comparison.results) diff --git a/server/main-api/test/test-queries.yaml b/server/main-api/test/test-queries.yaml deleted file mode 100644 index fa15be9e8..000000000 --- a/server/main-api/test/test-queries.yaml +++ /dev/null @@ -1,68 +0,0 @@ -# These test queries are intended to provide a consistent benchmark -# for search performance. They are however not (all) real world queries. - -# Commented out queries are not yet supported, but ideas what might be -# worth implementing. - -# site/area/campus queries -- { target: "garching-hochbrueck", query: "hochbrück" } -- { target: "wzw", query: "wzw" } -# building queries -- { target: "5301", query: "5301" } -- { target: "5620", query: "interims I" } -- { target: "5416", query: "Interims 2" } -- { target: "5304", query: "Mensa Garching" } # Should give the 'new' mensa -- { target: "5304", query: "neue Mensa" } -- { target: "0201", query: "Studitum Arcisstr" } # Note: It is not really in Arcisstr., just close -- { target: "5140", query: "Physik Container" } -- { target: "5115", query: "znn" } -- { target: "2906", query: "Karlsstr. 47" } # uses "str." instead of "straße" -- { target: "wzw-ziel", query: "ZIEL" } -# room queries -- { target: "5604.EG.011", query: "5604.00.011" } -- { target: "5601.EG.001", query: "5601.EG.001" } # MI Magistrale -- { target: "5601.EG.001", query: "00.01.001" } # A search for the Architects name should return the correct room -- { target: "5608.03.011", query: "03.08.011" } -- { target: "5602.EG.001", query: "mi hs 1" } -- { target: "5508.02.801", query: "MW 1801" } -- { target: "5508.02.801", query: "MW1801" } # splitting necessary -- { target: "5510.EG.001", query: "MW0001" } # splitting necessary -- { target: "5510.02.001", query: "MW2001" } # splitting necessary -- { target: "5508.02.801", query: "1801 maschinen" } -- { target: "5503.EG.337", query: "Raum 0337 mw" } -- { target: "5510.EG.001", query: "niemann" } # old name before the NS renamings was "MW 0001, Gustav-Niemann-Hörsaal", changed in Q1 24 -- { target: "5510.EG.001", query: "mw g niemann" } # old name before the NS renamings was "MW 0001, Gustav-Niemann-Hörsaal", changed in Q1 24 -- { target: "5402.01.220J", query: "CH22209" } -- { target: "5101.EG.502", query: "pyhsik hs 2" } -- { target: "5101.EG.501", query: "mössbauer" } -- { target: "5101.EG.342", query: "342 Physik" } -- { target: "5101.EG.503", query: "2503" } # lecture hall, should be preferred over other rooms -- { target: "5111.01.116", query: "1116" } # seminar room, should be preferred over other rooms -- { target: "5140.01.202", query: "C.3202" } -- { target: "5115.01.010", query: "1010 znn" } # Not sure about target here -- { target: "5433.EG.092", query: "0092@5433" } -- { target: "5510.EG.026M", query: "0026m@5510" } -- { target: "5602.EG.001", query: "f abuer" } # typo with short word and at first letter -- { target: "5123.EG.019", query: "019 lmu" } -- { target: "0509.EG.980", query: "audimax" } -- { target: "0501.EG.144", query: "ssz" } # main room called "service desk", only all 114abc.. subrooms have "ssz" in the name -- { target: "0501.EG.136", query: "Immathalle" } -- { target: "0502.01.229", query: "1229 seminarraum" } -- { target: "2903.02.209", query: "Augustenstraße 44; Raum 209; 2.OG" } # Copy/paste search -- { target: "5604.EG.038", query: "praktikumsraum mi", among: 2 } # there are two basic lab course rooms, this is one of them -- { target: "5604.EG.036", query: "physik labor mi", among: 3 } # "5604.02.033" is a valid result before the two lab course rooms -- { target: "0104.U1.403", query: "n1403", among: 2 } # This is "N-1403@0104", but "N1403@0104" can be before this -- { target: "5101.EG.257", query: "fachschaft pyhsik" } # typo + it's "Fachschaftsbüro" in the data - # H.003 is the correct room, but people have problems remembering how many zeroes are in the room number -- { target: "2910.EG.003", query: "H.0003" } -- { target: "2910.EG.003", query: "H.003" } -- { target: "2910.EG.003", query: "H.03" } -- { target: "2910.EG.003", query: "H.3" } -- { target: "0101.02.119", query: "2119", among: 4 } # The architects name is a N2119. There are other rooms which are actually named "2119", which means 4 is the best case. -- { target: "5606.EG.011", query: "MI HS3" } # This should match this Lecture hall and not the HS 1, just because both are in the Bolzmanstr. *3* 4 is the best case. -- { target: "5606.EG.011", query: "MI HS 3" } -- { target: "0104.01.406", query: "N1406" } # Architects names should be matchable literally -- { target: "0104.U1.406", query: "N-1406" } # Architects names should be matchable literally -# other queries -#- {target: , query: "mathe bib" } -#- {target: , query: "tb innenstadt" }