mirror of
https://github.com/MarginaliaSearch/MarginaliaSearch.git
synced 2025-10-06 17:32:39 +02:00
Compare commits
3 Commits
deploy-028
...
deploy-028
Author | SHA1 | Date | |
---|---|---|---|
|
b7a5219ed3 | ||
|
a23ec521fe | ||
|
fff3babc6d |
@@ -1,9 +1,9 @@
|
||||
package nu.marginalia.service.server;
|
||||
|
||||
import io.grpc.Server;
|
||||
import io.grpc.netty.NettyServerBuilder;
|
||||
import io.netty.channel.nio.NioEventLoopGroup;
|
||||
import io.netty.channel.socket.nio.NioServerSocketChannel;
|
||||
import io.grpc.netty.shaded.io.grpc.netty.NettyServerBuilder;
|
||||
import io.grpc.netty.shaded.io.netty.channel.nio.NioEventLoopGroup;
|
||||
import io.grpc.netty.shaded.io.netty.channel.socket.nio.NioServerSocketChannel;
|
||||
import nu.marginalia.service.discovery.ServiceRegistryIf;
|
||||
import nu.marginalia.service.discovery.property.ServiceKey;
|
||||
import nu.marginalia.service.discovery.property.ServicePartition;
|
||||
|
@@ -15,6 +15,7 @@
|
||||
<classifier target="url-regex" rule="tracking">/ccm/collect$</classifier>
|
||||
<classifier target="url-regex" rule="tracking">^/[0-9]+\.js$</classifier>
|
||||
<classifier target="url-regex" rule="tracking">^/[a-z0-9]\.gif$</classifier>
|
||||
<classifier target="url-regex" rule="tracking">^/pixel\.gif$</classifier>
|
||||
<classifier target="url-regex" rule="ads">/pagead/</classifier>
|
||||
<classifier target="url-regex" rule="ads">/google-ads/</classifier>
|
||||
|
||||
|
@@ -161,7 +161,6 @@ public class HtmlDocumentProcessorPlugin extends AbstractDocumentProcessorPlugin
|
||||
|
||||
final Set<HtmlFeature> features = featureExtractor.getFeatures(url, doc, documentHeaders, dld);
|
||||
|
||||
|
||||
if (!documentLengthLogic.validateLength(dld, specialization.lengthModifier() * documentClass.lengthLimitModifier())) {
|
||||
features.add(HtmlFeature.SHORT_DOCUMENT);
|
||||
}
|
||||
|
@@ -115,7 +115,9 @@ public class PdfDocumentProcessorPlugin extends AbstractDocumentProcessorPlugin
|
||||
|
||||
ret.quality = -5;
|
||||
|
||||
ret.features = Set.of(HtmlFeature.PDF);
|
||||
ret.features = new HashSet<>(); // must be mutable!
|
||||
ret.features.add(HtmlFeature.PDF);
|
||||
|
||||
ret.description = getDescription(doc);
|
||||
ret.hashCode = dld.localitySensitiveHashCode();
|
||||
|
||||
|
@@ -160,7 +160,7 @@ dependencyResolutionManagement {
|
||||
library('protobuf', 'com.google.protobuf', 'protobuf-java').version('3.16.3')
|
||||
library('grpc-protobuf', 'io.grpc', 'grpc-protobuf').version('1.73.0')
|
||||
library('grpc-stub', 'io.grpc', 'grpc-stub').version('1.73.0')
|
||||
library('grpc-netty', 'io.grpc', 'grpc-netty').version('1.73.0')
|
||||
library('grpc-netty', 'io.grpc', 'grpc-netty-shaded').version('1.73.0')
|
||||
|
||||
library('prometheus', 'io.prometheus', 'simpleclient').version('0.16.0')
|
||||
library('prometheus-servlet', 'io.prometheus', 'simpleclient_servlet').version('0.16.0')
|
||||
|
Reference in New Issue
Block a user