Inept Adept
Inept Adept

Reputation: 414

Azure Search Indexer Clears Documents

So I am moving from a Lucene based engine over to Azure Search....

All is going well except for when my Indexer runs, it removes all the documents from the Index and doesnt repopulate it with anything.

If i delete and recreate the Index it shows again but when the Indexer runs on the Hour (got it runnning hourly) it deletes all 4k + documents that were in there.

Is this a option I am missing when I create the Indexer

Steps that i use to create index

  1. Add new Datasource => Sql Server
  2. Creat Index (removing where necessary fields not to be indexed)
  3. Add Indexer

Initial run is all good, then when the indexer runs on the hour it clears the Document list

So the image below shows after the second index is run (on the hour)

Update : What I have noticed is I have run a query and it returns what is expected. result wise but the indexer still shows no documents enter image description here

enter image description here

Upvotes: 4

Views: 904

Answers (1)

Eugene Shvets
Eugene Shvets

Reputation: 4671

Based on the screenshot, it looks like the indexer is configured with a change detection policy (Integrated change tracking or high water mark), so the second indexer run simply finds no new documents to index. Therefore, you see "0/0 documents succeeded" in the portal. To emphasize, indexer never deletes documents unless specifically requested with a soft-delete policy.

Upvotes: 4

Related Questions