mirror of
https://github.com/MarginaliaSearch/MarginaliaSearch.git
synced 2025-10-06 07:32:38 +02:00
Compare commits
4 Commits
deploy-018
...
deploy-018
Author | SHA1 | Date | |
---|---|---|---|
|
42eaa4588b | ||
|
4f40a5fbeb | ||
|
3f3d42bc01 | ||
|
61c8d53e1b |
@@ -109,8 +109,7 @@ public class SearchOperator {
|
|||||||
|
|
||||||
// Cluster the results based on the query response
|
// Cluster the results based on the query response
|
||||||
List<ClusteredUrlDetails> clusteredResults = SearchResultClusterer
|
List<ClusteredUrlDetails> clusteredResults = SearchResultClusterer
|
||||||
.selectStrategy(queryResponse)
|
.noOp(queryResults, 0);
|
||||||
.clusterResults(queryResults, 25);
|
|
||||||
|
|
||||||
// Log the query and results
|
// Log the query and results
|
||||||
|
|
||||||
|
@@ -23,7 +23,7 @@ public class SearchResultClusterer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/** No clustering, just return the results as is */
|
/** No clustering, just return the results as is */
|
||||||
private static List<ClusteredUrlDetails> noOp(List<UrlDetails> results, int total) {
|
public static List<ClusteredUrlDetails> noOp(List<UrlDetails> results, int total) {
|
||||||
if (results.isEmpty())
|
if (results.isEmpty())
|
||||||
return List.of();
|
return List.of();
|
||||||
|
|
||||||
|
@@ -85,7 +85,6 @@ public class SearchService extends JoobyService {
|
|||||||
String emptySvg = "<svg xmlns=\"http://www.w3.org/2000/svg\"></svg>";
|
String emptySvg = "<svg xmlns=\"http://www.w3.org/2000/svg\"></svg>";
|
||||||
jooby.get("/site/{domain}/favicon", ctx -> {
|
jooby.get("/site/{domain}/favicon", ctx -> {
|
||||||
String domain = ctx.path("domain").value();
|
String domain = ctx.path("domain").value();
|
||||||
logger.info("Finding icon for domain {}", domain);
|
|
||||||
try {
|
try {
|
||||||
DbDomainQueries.DomainIdWithNode domainIdWithNode = domainQueries.getDomainIdWithNode(new EdgeDomain(domain));
|
DbDomainQueries.DomainIdWithNode domainIdWithNode = domainQueries.getDomainIdWithNode(new EdgeDomain(domain));
|
||||||
var faviconMaybe = faviconClient.getFavicon(domain, domainIdWithNode.nodeAffinity());
|
var faviconMaybe = faviconClient.getFavicon(domain, domainIdWithNode.nodeAffinity());
|
||||||
|
Reference in New Issue
Block a user