mirror of
https://github.com/Alfresco/SearchServices.git
synced 2025-09-17 14:21:20 +00:00
SEARCH-2139 review comments added
This commit is contained in:
@@ -105,13 +105,17 @@ public class FieldDefinitionTest extends AbstractSearchServicesE2ETest {
|
|||||||
restClient.assertStatusCodeIs(HttpStatus.OK);
|
restClient.assertStatusCodeIs(HttpStatus.OK);
|
||||||
Assert.assertEquals(response.getPagination().getCount(), 1);
|
Assert.assertEquals(response.getPagination().getCount(), 1);
|
||||||
|
|
||||||
response = queryAsUser(testUser, "allfieldtypes_textFree:\"text\"");
|
response = queryAsUser(testUser, "allfieldtypes_textFree:text");
|
||||||
restClient.assertStatusCodeIs(HttpStatus.OK);
|
restClient.assertStatusCodeIs(HttpStatus.OK);
|
||||||
Assert.assertEquals(response.getPagination().getCount(), 1);
|
Assert.assertEquals(response.getPagination().getCount(), 1);
|
||||||
|
|
||||||
response = queryAsUser(testUser, "allfieldtypes_textFree:\"definition test\"");
|
response = queryAsUser(testUser, "allfieldtypes_textFree:\"definition test\"");
|
||||||
restClient.assertStatusCodeIs(HttpStatus.OK);
|
restClient.assertStatusCodeIs(HttpStatus.OK);
|
||||||
Assert.assertEquals(response.getPagination().getCount(), 1);
|
Assert.assertEquals(response.getPagination().getCount(), 1);
|
||||||
|
|
||||||
|
response = queryAsUser(testUser, "allfieldtypes_textPatternMany:definition");
|
||||||
|
restClient.assertStatusCodeIs(HttpStatus.OK);
|
||||||
|
Assert.assertEquals(response.getPagination().getCount(), 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
// A test to test a non tokenised text field in the solr schema
|
// A test to test a non tokenised text field in the solr schema
|
||||||
@@ -122,7 +126,7 @@ public class FieldDefinitionTest extends AbstractSearchServicesE2ETest {
|
|||||||
restClient.assertStatusCodeIs(HttpStatus.OK);
|
restClient.assertStatusCodeIs(HttpStatus.OK);
|
||||||
Assert.assertEquals(response.getPagination().getCount(), 1);
|
Assert.assertEquals(response.getPagination().getCount(), 1);
|
||||||
|
|
||||||
response = queryAsUser(testUser, "allfieldtypes_textLOVWhole:\"text\"");
|
response = queryAsUser(testUser, "allfieldtypes_textLOVWhole:text");
|
||||||
restClient.assertStatusCodeIs(HttpStatus.OK);
|
restClient.assertStatusCodeIs(HttpStatus.OK);
|
||||||
Assert.assertEquals(response.getPagination().getCount(), 0);
|
Assert.assertEquals(response.getPagination().getCount(), 0);
|
||||||
|
|
||||||
@@ -139,13 +143,17 @@ public class FieldDefinitionTest extends AbstractSearchServicesE2ETest {
|
|||||||
restClient.assertStatusCodeIs(HttpStatus.OK);
|
restClient.assertStatusCodeIs(HttpStatus.OK);
|
||||||
Assert.assertEquals(response.getPagination().getCount(), 1);
|
Assert.assertEquals(response.getPagination().getCount(), 1);
|
||||||
|
|
||||||
response = queryAsUser(testUser, "allfieldtypes_textPatternMany:\"mltext\"");
|
response = queryAsUser(testUser, "allfieldtypes_textPatternMany:mltext");
|
||||||
restClient.assertStatusCodeIs(HttpStatus.OK);
|
restClient.assertStatusCodeIs(HttpStatus.OK);
|
||||||
Assert.assertEquals(response.getPagination().getCount(), 1);
|
Assert.assertEquals(response.getPagination().getCount(), 1);
|
||||||
|
|
||||||
response = queryAsUser(testUser, "allfieldtypes_textPatternMany:\"field definition\"");
|
response = queryAsUser(testUser, "allfieldtypes_textPatternMany:\"field definition\"");
|
||||||
restClient.assertStatusCodeIs(HttpStatus.OK);
|
restClient.assertStatusCodeIs(HttpStatus.OK);
|
||||||
Assert.assertEquals(response.getPagination().getCount(), 1);
|
Assert.assertEquals(response.getPagination().getCount(), 1);
|
||||||
|
|
||||||
|
response = queryAsUser(testUser, "allfieldtypes_textPatternMany:field");
|
||||||
|
restClient.assertStatusCodeIs(HttpStatus.OK);
|
||||||
|
Assert.assertEquals(response.getPagination().getCount(), 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
// A test to test the non tokenised mltext field in the solr schema
|
// A test to test the non tokenised mltext field in the solr schema
|
||||||
@@ -156,7 +164,7 @@ public class FieldDefinitionTest extends AbstractSearchServicesE2ETest {
|
|||||||
restClient.assertStatusCodeIs(HttpStatus.OK);
|
restClient.assertStatusCodeIs(HttpStatus.OK);
|
||||||
Assert.assertEquals(response.getPagination().getCount(), 1);
|
Assert.assertEquals(response.getPagination().getCount(), 1);
|
||||||
|
|
||||||
response = queryAsUser(testUser, "allfieldtypes_mltextLOVWhole:\"mltext\"");
|
response = queryAsUser(testUser, "allfieldtypes_mltextLOVWhole:mltext");
|
||||||
restClient.assertStatusCodeIs(HttpStatus.OK);
|
restClient.assertStatusCodeIs(HttpStatus.OK);
|
||||||
Assert.assertEquals(response.getPagination().getCount(), 0);
|
Assert.assertEquals(response.getPagination().getCount(), 0);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user