You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Ruben Chadien <ru...@aspiro.com> on 2009/04/16 16:19:19 UTC
DataImport, remove doc when marked as deleted
Hi
I am new to Solr, but have been using Lucene for a while. I am trying
to rewrite
some old lucene indexing code using the Jdbc DataImport i Solr, my
problem:
I have Entities that can be marked in the db as "deleted", these i
don't want to index
and thats no problem when doing a full-import. When doing a delta-
import my deltaQuery will catch
Entities that has been marked as deleted since last index, but how do
i get it to delete those from the index ?
I tried making the deltaImportQuery so that in don't return the Entity
if its deleted, that didnt help...
Any ideas ?
Thanks
Ruben
Re: DataImport, remove doc when marked as deleted
Posted by Ruben Chadien <ru...@aspiro.com>.
I have now :-)
Thanks , missed that in the Wiki.
Ruben
On Apr 16, 2009, at 7:10 PM, Noble Paul നോബിള്
नोब्ळ् wrote:
> did you try the deletedPkQuery?
>
> On Thu, Apr 16, 2009 at 7:49 PM, Ruben Chadien <ruben.chadien@aspiro.com
> > wrote:
>> Hi
>>
>> I am new to Solr, but have been using Lucene for a while. I am
>> trying to
>> rewrite
>> some old lucene indexing code using the Jdbc DataImport i Solr, my
>> problem:
>>
>> I have Entities that can be marked in the db as "deleted", these i
>> don't
>> want to index
>> and thats no problem when doing a full-import. When doing a delta-
>> import my
>> deltaQuery will catch
>> Entities that has been marked as deleted since last index, but how
>> do i get
>> it to delete those from the index ?
>> I tried making the deltaImportQuery so that in don't return the
>> Entity if
>> its deleted, that didnt help...
>>
>> Any ideas ?
>>
>> Thanks
>> Ruben
>>
>>
>>
>
>
>
> --
> --Noble Paul
Re: DataImport, remove doc when marked as deleted
Posted by Noble Paul നോബിള് नोब्ळ् <no...@gmail.com>.
did you try the deletedPkQuery?
On Thu, Apr 16, 2009 at 7:49 PM, Ruben Chadien <ru...@aspiro.com> wrote:
> Hi
>
> I am new to Solr, but have been using Lucene for a while. I am trying to
> rewrite
> some old lucene indexing code using the Jdbc DataImport i Solr, my problem:
>
> I have Entities that can be marked in the db as "deleted", these i don't
> want to index
> and thats no problem when doing a full-import. When doing a delta-import my
> deltaQuery will catch
> Entities that has been marked as deleted since last index, but how do i get
> it to delete those from the index ?
> I tried making the deltaImportQuery so that in don't return the Entity if
> its deleted, that didnt help...
>
> Any ideas ?
>
> Thanks
> Ruben
>
>
>
--
--Noble Paul