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
To: solr-user@lucene.apache.org
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;
}
Regards,
ADS
--
View this message in context:
http://lucene.472066.n3.nabble.com/Skip-Indexing-Certain-Files-on-Purpose-tp4082026p4082211.html
Sent from the Solr - User mailing list archive at Nabble.com.