Do you mean something like?:
@Override
public void processAdd(AddUpdateCommand cmd) throws IOException {
boolean addDocToIndex
=dealWithSolrDocFields(cmd.getSolrInputDocument()) ;
if (next != null && addDocToIndex) {
next.processAdd(cmd);
} else {
LOG.debug("Doc skipped!") ;
}
}
Thanks in advance
Chris Male wrote:
>
> Hi,
>
> If your UpdateRequestProcessor does not forward the AddUpdateCommand onto
> the RunUpdateProcessor, I believe the document will not be indexed.
>
> Cheers
>
> On Thu, Dec 10, 2009 at 12:09 PM, Marc Sturlese
> <[email protected]>wrote:
>
>>
>> Hey there,
>> I need that once a document has been created be able to decide if I want
>> it
>> to be indexed or not. I have thought in implement an
>> UpdateRequestProcessor
>> to do that but don't know how to tell Solr in the processAdd void to skip
>> the document.
>> If I delete all the field would it be skiped or is there a better way to
>> reach this goal?
>> Thanks in advance.
>> --
>> View this message in context:
>> http://old.nabble.com/UpdateRequestProcessor-to-avoid-documents-of-being-indexed-tp26725534p26725534.html
>> Sent from the Solr - User mailing list archive at Nabble.com.
>>
>>
>
>
> --
> Chris Male | Software Developer | JTeam BV.| T: +31-(0)6-14344438 |
> www.jteam.nl
>
>
--
View this message in context:
http://old.nabble.com/UpdateRequestProcessor-to-avoid-documents-of-being-indexed-tp26725534p26725698.html
Sent from the Solr - User mailing list archive at Nabble.com.