lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jack Krupansky" <>
Subject Re: Skip Indexing Certain Files on Purpose
Date Fri, 02 Aug 2013 14:28:24 GMT
Yeah, roughly.

The example I added to the book (for EAR#5) is generalized and takes a field 
name parameter, a regular expression, to match, and a case sensitivity flag. 
And works for multivalued fields. And optionally logs docs that are skipped

-- Jack Krupansky

-----Original Message----- 
From: stone2dbone
Sent: Friday, August 02, 2013 9:33 AM
Subject: Re: Skip Indexing Certain Files on Purpose

Jack, thanks for the response.  So, adding something as simple as the
following to the processAdd() function should do the trick in your opinion?

this_title = doc.getFieldValue("title");
if (this_title == "Slide 1"){
return false;


View this message in context:
Sent from the Solr - User mailing list archive at 

View raw message