mirror of
https://github.com/MarginaliaSearch/MarginaliaSearch.git
synced 2025-02-23 04:58:59 +00:00
(loader) Correct DocumentLoaderService to properly do bulk inserts
Fixes issue #128
This commit is contained in:
parent
291ca8daf1
commit
20abb91657
@ -75,7 +75,6 @@ public class DocumentLoaderService {
|
||||
|
||||
public void accept(SlopDocumentRecord.MetadataProjection projection)
|
||||
{
|
||||
|
||||
long urlId = UrlIdCodec.encodeId(
|
||||
domainIdRegistry.getDomainId(projection.domain()),
|
||||
projection.ordinal()
|
||||
@ -88,7 +87,7 @@ public class DocumentLoaderService {
|
||||
}
|
||||
|
||||
try {
|
||||
documentDbWriter.add(new DocdbUrlDetail(
|
||||
details.add(new DocdbUrlDetail(
|
||||
urlId,
|
||||
parsedUrl.get(),
|
||||
projection.title(),
|
||||
|
Loading…
Reference in New Issue
Block a user