Skip to content

Commit

Permalink
LPS-86402 portal-search-solr: Add unit test for tokenization on decim…
Browse files Browse the repository at this point in the history
  • Loading branch information
BryanEngler authored and brianchandotcom committed Oct 17, 2018
1 parent a9bee04 commit 8f5b5f9
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,19 @@ public void testBasicWordMatches() throws Exception {
assertSearchNoHits("tag2");
}

@Test
public void testDot() throws Exception {
addDocument("1.0");
addDocument("1.1");

assertSearch("1.0", Arrays.asList("1.0"));
assertSearch("1.1", Arrays.asList("1.1"));

assertSearch("1", Arrays.asList("1.0", "1.1"));

assertSearchNoHits("0");
}

@Test
public void testExactMatchBoost() throws Exception {
addDocument("one two three four five six seven eight");
Expand Down

0 comments on commit 8f5b5f9

Please sign in to comment.