#community-help

Deleting and Creating Documents in Typesense

TLDR Priyank asked for help with deleting and creating documents in Typesense and found the problem to be an issue with their own code. Jason offered support.

Powered by Struct AI

1

7
8mo
Solved
Join the chat
Jan 25, 2023 (8 months ago)
Priyank
Photo of md5-a9a351e11d64f05b41fec183816a0cda
Priyank
02:42 PM
Hi i want to delete document in a collection whose particular field has value "s" in its 0 th index how should i do it?
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
10:10 PM
It’s not possible to do this in Typesense. You would have run this query in your primary data store, and then delete by ID in Typesense or filter_by those IDs and delete
Jan 26, 2023 (8 months ago)
Priyank
Photo of md5-a9a351e11d64f05b41fec183816a0cda
Priyank
03:59 AM
i am facing some issues if i create multiple documents having id field which is unique and it starts with 's' typesense creates the document but it also creates a copy of that document having its own id generated field.
04:00
Priyank
04:00 AM
let's say i want to create 5 documents in typesense collection but it creates sometimes 8 or 10 documents
04:01
Priyank
04:01 AM
extra documents are those in which typesense automatically generates id field
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
04:04 AM
Could you share one sample document?
Jan 27, 2023 (8 months ago)
Priyank
Photo of md5-a9a351e11d64f05b41fec183816a0cda
Priyank
09:14 AM
my bad , I cross checked again and there was issue in my code only in creating the documents in typesense

1