# Filtering equals does not perform an equality comparison

**URL:** <https://forum.weaviate.io/t/filtering-equals-does-not-perform-an-equality-comparison/2676>\
**Category:** Support\
**Tags:** bug, python\
**Created:** [June 10, 2024, 10:22pm UTC](https://forum.weaviate.io/t/filtering-equals-does-not-perform-an-equality-comparison/2676 "2024-06-10T22:22:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![CakeCrusher](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/cakecrusher/32/1455_2.png) [@CakeCrusher](https://forum.weaviate.io/u/CakeCrusher)\
**Post date:** [June 10, 2024, 10:22pm UTC](https://forum.weaviate.io/t/filtering-equals-does-not-perform-an-equality-comparison/2676/1 "2024-06-10T22:22:46Z")

</div>

### Description

Below you can see how `equal` is not performing a hard equality but rather it seems to be doing a similarity or contains comparison.  
In my input I specify I want it to be equal to “[https://www.cise.ufl.edu](https://www.cise.ufl.edu)” and yet I get an item with “[https://www.cise.ufl.edu/wp-content/uploads/2018/12/UofFIABCharter5.0.pdf](https://www.cise.ufl.edu/wp-content/uploads/2018/12/UofFIABCharter5.0.pdf)”  
INPUT

```py
from weaviate.classes.query import Filter

collection = client.collections.get(name="web_retrieval")
# response = collection.query.near_text(
# query="CISE academic advisors are an invaluable resource for students at all stages of their academic careers.",
# limit=5
# filters=[]
# )
response = collection.query.fetch_objects(
    filters=Filter.by_property("url").equal("https://www.cise.ufl.edu"),
    limit=10000
)

print(len(response.objects))
print(response.objects[0].properties)
print(response.objects[1].properties)
print(response.objects[2000].properties)

```

OUTPUT

```sh
8988
{'content': 'UF Website Listing Accessibility Text-Only Version Privacy Policy Regulations', 'depth': 1.0, 'url': 'https://www.cise.ufl.edu'}
{'content': 'University of Florida Search Submit Search \nComputer & Information Science & Engineering \nSearch Submit Search \nHome About Research Academics Admissions People News & Events Resources & Help \nAccreditation Department History Department Administration Industrial Advisory Board (IAB) Faculty Openings \nResearch Areas Research Centers & Labs Faculty Research Videos \nUndergraduate Graduate Academic Advising Special Topics Courses Course Syllabi Labs & Conference Rooms Availability \nUndergraduate Graduate \nFaculty Staff PH.D. Students on the Job Market \nNews Newsletters CISE Career Fair Events Submit an Event \nStudents Faculty & Staff IT Help Department Awards Departmental Committees Alumni & Friends \nCurrent Students Faculty & Staff Family & Visitors Alumni & Friends Herbert Wertheim College of Engineering CISE Career Fair Giving Alumni & Friends UF Admissions Directory **Faculty Openings** \nFacebook Twitter YouTube LinkedIn Instagram \nWelcome', 'depth': 1.0, 'url': 'https://www.cise.ufl.edu'}
{'content': 'e', 'depth': 2.0, 'url': 'https://www.cise.ufl.edu/wp-content/uploads/2018/12/UofFIABCharter5.0.pdf'}

```

### Server Setup Information

- Weaviate Server Version: [cr.weaviate.io/semitechnologies/weaviate:1.24.17](http://cr.weaviate.io/semitechnologies/weaviate:1.24.17)
- Deployment Method: docker
- Multi Node? Number of Running Nodes:
- Client Language and Version: python weaviate-client==4.5.5
- Multitenancy?:

### Any additional Information

---

<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:** [June 11, 2024, 9:15pm UTC](https://forum.weaviate.io/t/filtering-equals-does-not-perform-an-equality-comparison/2676/2 "2024-06-11T21:15:14Z")

</div>

Hi @CakeCrusher !

What is the tokenization you have set for the `url` field?

If you have not touched this configuration, it will default to `WORD`.

You can check this with:

```auto
for p in collection.config.get().properties:
    print(p.name, p.tokenization)

```

There are different tokenizations you can set. You will probably want the `field` as it will will not touch the property and treat it as a whole. On the other hand, `word` will “break” the property value into _words_

Here we have more info on tokenization:

> **[Collection schema | Weaviate - Vector Database](https://weaviate.io/developers/weaviate/config-refs/schema#tokenization)**
>
> Introduction

and here an academy course that will double click on that:

> **[275 (Keyword) Tokenization | Weaviate - Vector Database](https://weaviate.io/developers/academy/py/tokenization)**
>
> Course overview

Let me know if this helps!

Thanks!
