I'm building a module for a content management sys...
# community-help
e
I'm building a module for a content management system, and working on the process that sync's documents with Typesense. At the moment, I do this by dropping the collection, rebuilding it, and re-sending all the data to it. As you can imagine, this is fine for small sets but not so great for larger ones where indexing can take many minutes or hours! So, I'm working on a "sync" process. I have a set of IDs in my local database, and now I need to send those IDs to Typesense - to find which ones are in Typesense but NOT in my database. Can I query Typesense to do this? I thought it might be something like this:
Copy code
'q' => '*' //query all documents
'filter_by' => 'id:!='.json_encode($documents) //exclude these specific documents
But, the result is "all documents deleted". Any ideas?