( ctx *search.SearchContext)
| 49 | } |
| 50 | |
| 51 | func (d *delByQueryHandler) MakeDocumentMatchHandler( |
| 52 | ctx *search.SearchContext) (search.DocumentMatchHandler, bool, error) { |
| 53 | dmh := docDelHandler{ |
| 54 | delh: d, |
| 55 | batch: d.index.NewBatch(), |
| 56 | } |
| 57 | return dmh.documentMatchHandler, true, nil |
| 58 | } |
| 59 | |
| 60 | // deleteByQuery triggers the given query for the index and |
| 61 | // performs batched deletions for the hits synchronously in |