# Issues facing while performing CRUD operations

**URL:** <https://forum.weaviate.io/t/issues-facing-while-performing-crud-operations/7532>\
**Category:** Support\
**Tags:** developer-experience, python\
**Created:** [November 11, 2024, 10:33am UTC](https://forum.weaviate.io/t/issues-facing-while-performing-crud-operations/7532 "2024-11-11T10:33:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sandeep\_gajula](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/sandeep_gajula/32/2199_2.png) [@sandeep\_gajula](https://forum.weaviate.io/u/sandeep_gajula)\
**Post date:** [November 11, 2024, 10:33am UTC](https://forum.weaviate.io/t/issues-facing-while-performing-crud-operations/7532/1 "2024-11-11T10:33:20Z")

</div>

I am facing an issue with deleting and retrieving data when I have applied where filter.

I want to delete only the name test, but it is deleting the test and test limi properties/data objects I have in my weaviate. I don’t want this to happen.  
Here, if you observe that the display or get function deviates from retrieving results based on semantic search, but I need to extract search results. For example, for a test, I need only matches of the test, not the test limi, etc.

My query::  
check\_query = f"“”  
{{  
Get {{  
{class\_name}(  
where: {{  
path: [“name”],  
operator: Equal,  
valueString: “{name}”  
}}  
) {{  
name  
\_additional {{  
id  
}}  
}}  
}}  
}}  
“”"  
response = client.query.raw(check\_query)

print(“Response from Weaviate:”, response)  
delete\_query = {  
“operator”: “Equal”,  
“path”: [“name”],  
“valueString”: name,  
}

x= client.batch.delete\_objects(  
class\_name=class\_name,  
where=delete\_query  
)  
print(x)  
Response from Weaviate: {‘data’: {‘Get’: {‘Issue’: [{‘\_additional’: {‘id’: ‘a5fff400-df0f-4320-8134-036ae28c4891’}, ‘name’: ‘test limi’}, {‘\_additional’: {‘id’: ‘9cb804bc-8375-4dfe-bf4d-f30402780386’}, ‘name’: ‘test’}]}}}

Delete query response :

{‘dryRun’: False, ‘match’: {‘class’: ‘Issue’, ‘where’: {‘operands’: None, ‘operator’: ‘Equal’, ‘path’: [‘name’], ‘valueString’: ‘test’}}, ‘output’: ‘minimal’, ‘results’: {‘failed’: 0, ‘limit’: 10000, ‘matches’: 2, ‘objects’: None, ‘successful’: 2}}

Successfully deleted 4 exact matches for client name ‘test’

#Support

Resolve this issue if anyone aware of  
I am using docker version of weavaite and my tokenizer for this property is whitespace

---

<div class="post-metadata">

**Author:** ![DudaNogueira](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/dudanogueira/32/7846_2.png) [@DudaNogueira](https://forum.weaviate.io/u/DudaNogueira)\
**Post date:** [November 11, 2024, 9:47pm UTC](https://forum.weaviate.io/t/issues-facing-while-performing-crud-operations/7532/2 "2024-11-11T21:47:54Z")

</div>

Hi!

What is the server version?

You property probably has the tokenization of the property `name` set to **field**.

This means that `My Cool Test` will become three tokens: `my` `cool` `test`, and now if you search for some objects that has `cool` it will find all objects that has this token.

Check here for a comprehensive doc on Tokenization in Weaviate:

> **[Overview of tokenization | Weaviate](https://weaviate.io/developers/academy/py/tokenization/basics)**
>
> Tokenization is the process of breaking text into smaller units, called tokens. This is an important step that impacts how text is processed in a variety of contexts.

You may want to set the tokenization to field to avoid this scenario.

Let me know if that helps!

Thanks!

---

<div class="post-metadata">

**Author:** ![sandeep\_gajula](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/sandeep_gajula/32/2199_2.png) [@sandeep\_gajula](https://forum.weaviate.io/u/sandeep_gajula)\
**Post date:** [November 12, 2024, 3:08am UTC](https://forum.weaviate.io/t/issues-facing-while-performing-crud-operations/7532/3 "2024-11-12T03:08:55Z")

</div>

No, I have used “white space” tokenization in my schema while creating a class.

And I am using python client v3

---

<div class="post-metadata">

**Author:** ![DudaNogueira](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/dudanogueira/32/7846_2.png) [@DudaNogueira](https://forum.weaviate.io/u/DudaNogueira)\
**Post date:** [November 12, 2024, 7:19pm UTC](https://forum.weaviate.io/t/issues-facing-while-performing-crud-operations/7532/4 "2024-11-12T19:19:32Z")

</div>

That best thing here is to create some python code, if possible in pyv4, so we can try to reproduce the issue you are facing.

Can you share a code for this?

Thanks!
