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
Jan 25, 2023 (8 months ago)
Priyank
Priyank
02:42 PMHi 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
Jason
10:10 PMIt’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
Priyank
03:59 AMi 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 AMlet's say i want to create 5 documents in typesense collection but it creates sometimes 8 or 10 documents
04:01
Priyank
04:01 AMextra documents are those in which typesense automatically generates id field
Jason
Jason
04:04 AMCould you share one sample document?
Jan 27, 2023 (8 months ago)
Priyank
Priyank
09:14 AMmy bad , I cross checked again and there was issue in my code only in creating the documents in typesense
1
Typesense
Lightning-fast, open source search engine for everyone | Knowledge Base powered by Struct.AI
Indexed 2779 threads (79% resolved)
Similar Threads
Effective Document Deletion Strategies in Typesense
Adrian asked about deleting potentially non-existent documents. Pantelis suggested using IDs for document deletion or queries within delete function. Adrian decided to use query-based deletions.
7
1mo
Solved
Querying to Delete Documents without Specific Field
Serezha inquired about a query to delete documents missing certain fields, to which Kishore Nallan explained that it's unfeasible due to Typesense's storage behavior.
2
8mo
Solved
Deleting Documents from Typesense Cloud and Version Upgrade
Masahiro asked how to remove documents from Typesense. Kishore Nallan clarified it varies by version and suggested upgrading from 0.20 to 0.22. Masahiro agreed to test this.
9
23mo
Solved