lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Noble Paul നോബിള്‍ नोब्ळ्" <>
Subject Re: indexing data and deleting from index and database
Date Thu, 13 Nov 2008 03:57:52 GMT
DIH can delete rows from the index. look at the 'deletedPkQuery' option .

Deleting from the DB is not possible for DIH . but you can write a
transformer or Entityprocessor which can do that.

On Wed, Nov 12, 2008 at 11:58 PM, Marc Sturlese <> wrote:
> Hey there,
> Since few weeks ago I am trying to migrate my lucene core app to Solr and
> many questions are coming to my mind...
> Before being in ApacheCon I thought that my Lucene Index works fine with my
> Solr Search Engine but after my conversation with Erik in the Solr BootCamp
> I understood that the structure of the Fields in the Solr Index are
> different, specially in analyzing stuff.
> Now, I want to use Solr to index too and I have some questions:
> The first thing I do when I launch the indexer is to delete a lot of
> documents that I have marked in a db with a field delete=1 that I have
> indexed before in the Lucene Index.
> Once it is done, I also delete the documents from the DB.
> After that, I index some docs from the same DB (the 100.000 newest Docs and
> some other modifieds).
> To do the migration I have started using DataImportHandler  (with
> JDBCDataSource) with Delta Import to add new documents. The thing is that I
> can not find a way to delete the rows from the DB neither the docs from my
> index with DataImportHandler.
> Is to do an implementation of the DataSource the best way to do this task?
> Is there a better way?
> Thanks for everything!!!
> --
> View this message in context:
> Sent from the Solr - User mailing list archive at

--Noble Paul

View raw message