check content domain fix:

search image/media should not show pages containing image/media
search text should show all/text but image/media
pull/1/head
sixcooler 13 years ago
parent 9cd409682f
commit 76b037a20a

@ -320,7 +320,7 @@ public final class RWIProcess extends Thread
} }
// check document domain // check document domain
if ( this.query.contentdom != Classification.ContentDomain.ALL ) { if ( this.query.contentdom.getCode() > 0 ) {
if ( (this.query.contentdom == ContentDomain.AUDIO) if ( (this.query.contentdom == ContentDomain.AUDIO)
&& (!(iEntry.flags().get(Condenser.flag_cat_hasaudio))) ) { && (!(iEntry.flags().get(Condenser.flag_cat_hasaudio))) ) {
continue pollloop; continue pollloop;
@ -659,9 +659,10 @@ public final class RWIProcess extends Thread
} }
// check content domain // check content domain
if (this.query.contentdom != Classification.ContentDomain.ALL && if ((this.query.contentdom.getCode() > 0 &&
page.url().getContentDomain() != Classification.ContentDomain.ALL && page.url().getContentDomain() != this.query.contentdom) ||
page.url().getContentDomain() != this.query.contentdom) { (this.query.contentdom == Classification.ContentDomain.TEXT &&
page.url().getContentDomain().getCode() > 0)) {
this.sortout++; this.sortout++;
continue; continue;
} }

Loading…
Cancel
Save