Del TextQueryType.Phrase and test (#45)

This commit is contained in:
malkoas 2023-11-29 11:50:36 +03:00 committed by GitHub
parent 94a5dce656
commit b9ad205dfb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 18 deletions

View File

@ -1,7 +1,6 @@
package dev.vality.deanonimus.db;
import dev.vality.deanonimus.domain.Party;
import dev.vality.deanonimus.domain.Shop;
import lombok.RequiredArgsConstructor;
import lombok.SneakyThrows;
import lombok.extern.slf4j.Slf4j;
@ -56,7 +55,6 @@ public class SearchDaoImpl implements SearchDao {
"contractors.internationalLegalEntityLegalName",
"contractors.internationalLegalEntityTradingName")
.query(text)
.type(TextQueryType.Phrase)
.build()))
.scoreMode(ChildScoreMode.Sum)
.build().query();
@ -70,7 +68,6 @@ public class SearchDaoImpl implements SearchDao {
"contracts.legalAgreementId",
"contracts.reportActSignerFullName")
.query(text)
.type(TextQueryType.Phrase)
.build()))
.scoreMode(ChildScoreMode.Sum)
.build().query();
@ -81,7 +78,6 @@ public class SearchDaoImpl implements SearchDao {
.fields("id",
"email")
.query(text)
.type(TextQueryType.Phrase)
.build());
}
@ -93,7 +89,6 @@ public class SearchDaoImpl implements SearchDao {
"shops.locationUrl",
"shops.detailsName")
.query(text)
.type(TextQueryType.Phrase)
.build()))
.scoreMode(ChildScoreMode.Sum)
.build().query();
@ -106,7 +101,6 @@ public class SearchDaoImpl implements SearchDao {
.fields("wallets.id",
"wallets.name")
.query(text)
.type(TextQueryType.Phrase)
.build()))
.scoreMode(ChildScoreMode.Sum)
.build().query();

View File

@ -54,18 +54,6 @@ public class ReadTest extends AbstractIntegrationTest {
.anyMatch(partySearchHit -> partySearchHit.getParty().getEmail().contains(EMAIL)));
}
@Test
void searchByPartyIdWithoutTokens() throws TException {
givenParty(PARTY + "-test-kek", EMAIL + "1");
givenParty(PARTY + "-test-lol", EMAIL + "2");
givenParty(PARTY + "-test-rofl", EMAIL + "3");
givenParty(PARTY + "-test-ricardo", EMAIL + "4");
givenParty(PARTY + "-test-milos", EMAIL + "5");
refreshIndices();
List<SearchHit> searchHits = deanonimusServiceHandler.searchParty(PARTY + "-test-lol");
assertEquals(1, searchHits.size());
}
@Test
void searchByPartyEmail() throws TException {