Skip to content

Commit

Permalink
Issue #4035: Made search words more unique to reduce risk for matchin…
Browse files Browse the repository at this point in the history
…g other tickets.
  • Loading branch information
stefanhaerter authored and svenoe committed Feb 20, 2025
1 parent 79b86f4 commit dd1250f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/test/Elasticsearch/TicketCreate.t
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ my $ArticleID = $ArticleBackendObject->ArticleCreate(
From => 'Agent Some Agent Some Agent <[email protected]>',
To => 'Customer A <[email protected]>',
Subject => 'TestArticleSubject' . $RandomID,
Body => 'A text for the body, Title äöüßÄÖÜ€ис',
Body => 'A text for the body, Title äöüßÄÖÜ€ис, deoxyribonucleicacid',
ContentType => 'text/plain; charset=ISO-8859-15',
HistoryType => 'AddNote',
HistoryComment => 'first article',
Expand Down Expand Up @@ -185,7 +185,7 @@ sleep 1;
my @BodySearchTicketIDs = $ESObject->TicketSearch(
Result => 'ARRAY',
UserID => $UserID,
Fulltext => 'A text for the body',
Fulltext => 'deoxyribonucleicacid',
Permission => 'ro',
Limit => 100,
);
Expand All @@ -196,7 +196,7 @@ ok( $TicketIDFound, 'Search for article body successful' );
my @AttachmentContentSearchTicketIDs = $ESObject->TicketSearch(
Result => 'ARRAY',
UserID => $UserID,
Fulltext => 'Umlaut',
Fulltext => 'xylophone',
Permission => 'ro',
Limit => 100,
);
Expand Down
2 changes: 2 additions & 0 deletions scripts/test/sample/Elasticsearch/Elasticsearch-Test1.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
Some German Text with Umlaut: ����

And with very long lines, with very long lines, with very long lines, with very long lines, with very long lines, with very long lines, with very long lines, with very long lines, with very long lines, with very long lines, with very long lines, with very long lines, with very long lines, with very long lines, with very long lines, with very long lines.

A hopefully unique word for searching could be xylophone.

0 comments on commit dd1250f

Please sign in to comment.