Skip to content

Commit

Permalink
Update and add tests #1828
Browse files Browse the repository at this point in the history
This also highlights the different behavion from q.all to the general lobid-search.
  • Loading branch information
TobiasNx committed Apr 2, 2024
1 parent 6e22f91 commit 0e134f9
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions web/test/tests/IndexIntegrationTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@ public static Collection<Object[]> data() {
{ "isbn:9780702075551", /*->*/ 1},
{ "isbn:070-2075-558", /*->*/ 1},
{ "isbn:0702075558", /*->*/ 1},
{ "related.issn:07206763", /*->*/ 1 },
{ "related.issn:0720\\-6763", /*->*/ 1 },
{ "issn:21914664", /*->*/ 1 },
{ "issn:2191\\-4664", /*->*/ 1 },
{ "\"Handbook on policy, process and governing\"", /*->*/ 1},
{ "(+Handbook +on +policy +process +and +governing)", /*->*/ 1},
{ "\"Mülheim an der Ruhr\"", /*->*/ 1},
Expand All @@ -91,6 +95,7 @@ public static Collection<Object[]> data() {
{ "describedBy.resultOf.object.modifiedBy.id:\"http\\://lobid.org/organisations/DE-6#\\!\"", /*->*/ 15 },
{ "\"Reader-friendly\"", /*->*/ 1},
{ "\"Reader friendly\"", /*->*/ 1},
// all q tests are related to DigiBib
{ "q.date:2000", /*->*/ 3 },
{ "q.publisher:Aachen", /*->*/ 2 },
{ "q.publisher:Aachen\\-Eilendorf", /*->*/ 1 },
Expand All @@ -115,9 +120,11 @@ public static Collection<Object[]> data() {
{ "q.all:(Courtillon cinema)", /*->*/ 1 },
{ "q.all:(Courtillon cinéma)", /*->*/ 1 },
{ "q.all:0702075558", /*->*/ 1 },
{ "q.all:07\\-0207\\-555\\-8", /*->*/ 1 },
{ "q.all:07\\-0207\\-555\\-8", /*->*/ 1 }, // search with hyphens possible due to digibib_standardnumber
{ "q.all:07206763", /*->*/ 1 },
{ "q.all:0720\\-6763", /*->*/ 1 },
{ "q.all:0720\\-6763", /*->*/ 0 }, // search with hyphens not possible, different to lobid general search
{ "q.all:21914664", /*->*/ 1 },
{ "q.all:2191\\-4664", /*->*/ 0 }, // search with hyphens not possible, different to lobid general search
{ "q.all:HT072067630", /*->*/ 0 },
{ "q.all:(Erleben \\- Verstehen & Lernen)", /*->*/ 3 },
{ "q.all:(Lexicography \\: Selected Papers)", /*->*/ 1 },
Expand Down

0 comments on commit 0e134f9

Please sign in to comment.