>Hi
>
>Yes I'd like the document deleted from Solr and yes, there is a unique
>document id field in Solr.
>

I that case try the following. Create a field in the entity:-
      <field column="$deleteDocById"   
             regex="^false$"      
             replaceWith="${jc.id}" sourceColName="active"/>           

Notes. 
    1) the entity is assumed to have name="jc".
    2) the uniqueKey field is assumed to called "id".
    3) the entity needs to have transformer="RegexTransformer"


>
>2009/5/13 Fergus McMenemie <fer...@twig.me.uk>:
>>>Hi
>>>
>>>Is it possible, through dataimport handler to remove an existing
>>>document from the Solr index?
>>>
>>>I import/update from my database where the active field is true.
>>>However, if the client then set's active to false, the document stays
>>>in the Solr index and doesn't get removed.
>>>
>>>Regards
>>>Andrew
>>
>> Yes but only in the latest trunk. If your "active" field is false
>> do you want to see the document deleted? Do you have another field
>> which is a unique ID for the document?
>>
>> Fergus

-- 

===============================================================
Fergus McMenemie               Email:fer...@twig.me.uk
Techmore Ltd                   Phone:(UK) 07721 376021

Unix/Mac/Intranets             Analyst Programmer
===============================================================

Reply via email to