|
|
@ -34,7 +34,10 @@ import java.util.regex.Pattern;
|
|
|
|
import net.yacy.cora.date.GenericFormatter;
|
|
|
|
import net.yacy.cora.date.GenericFormatter;
|
|
|
|
import net.yacy.cora.date.MicroDate;
|
|
|
|
import net.yacy.cora.date.MicroDate;
|
|
|
|
import net.yacy.cora.document.ASCII;
|
|
|
|
import net.yacy.cora.document.ASCII;
|
|
|
|
|
|
|
|
import net.yacy.cora.document.MultiProtocolURI;
|
|
|
|
import net.yacy.cora.document.UTF8;
|
|
|
|
import net.yacy.cora.document.UTF8;
|
|
|
|
|
|
|
|
import net.yacy.cora.document.analysis.Classification;
|
|
|
|
|
|
|
|
import net.yacy.cora.document.analysis.Classification.ContentDomain;
|
|
|
|
import net.yacy.cora.federate.solr.SolrType;
|
|
|
|
import net.yacy.cora.federate.solr.SolrType;
|
|
|
|
import net.yacy.cora.lod.vocabulary.Tagging;
|
|
|
|
import net.yacy.cora.lod.vocabulary.Tagging;
|
|
|
|
import net.yacy.cora.order.Base64Order;
|
|
|
|
import net.yacy.cora.order.Base64Order;
|
|
|
@ -199,10 +202,12 @@ public class URIMetadataNode {
|
|
|
|
if (flags == null) {
|
|
|
|
if (flags == null) {
|
|
|
|
this.flags = new Bitfield();
|
|
|
|
this.flags = new Bitfield();
|
|
|
|
if (dc_subject() != null && dc_subject().indexOf("indexof") >= 0) this.flags.set(Condenser.flag_cat_indexof, true);
|
|
|
|
if (dc_subject() != null && dc_subject().indexOf("indexof") >= 0) this.flags.set(Condenser.flag_cat_indexof, true);
|
|
|
|
|
|
|
|
ContentDomain cd = Classification.getContentDomain(MultiProtocolURI.getFileExtension(this.url().getFileName()));
|
|
|
|
if (lon() != 0.0d || lat() != 0.0d) this.flags.set(Condenser.flag_cat_haslocation, true);
|
|
|
|
if (lon() != 0.0d || lat() != 0.0d) this.flags.set(Condenser.flag_cat_haslocation, true);
|
|
|
|
if (limage() > 0) this.flags.set(Condenser.flag_cat_hasimage, true);
|
|
|
|
if (cd == ContentDomain.IMAGE || limage() > 0) this.flags.set(Condenser.flag_cat_hasimage, true);
|
|
|
|
if (laudio() > 0) this.flags.set(Condenser.flag_cat_hasaudio, true);
|
|
|
|
if (cd == ContentDomain.AUDIO || laudio() > 0) this.flags.set(Condenser.flag_cat_hasaudio, true);
|
|
|
|
if (lvideo() > 0) this.flags.set(Condenser.flag_cat_hasvideo, true);
|
|
|
|
if (cd == ContentDomain.VIDEO || lvideo() > 0) this.flags.set(Condenser.flag_cat_hasvideo, true);
|
|
|
|
|
|
|
|
if (cd == ContentDomain.APP) this.flags.set(Condenser.flag_cat_hasapp, true);
|
|
|
|
if (lapp() > 0) this.flags.set(Condenser.flag_cat_hasapp, true);
|
|
|
|
if (lapp() > 0) this.flags.set(Condenser.flag_cat_hasapp, true);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return this.flags;
|
|
|
|
return this.flags;
|
|
|
|