transition-zero / tz-client

A client repository for accessing FEO data programmatically.
https://docs.feo.transitionzero.org
Apache License 2.0
21 stars 4 forks source link

Exact name match doesn't return result even if data present #133

Open isabellasoldner opened 4 months ago

isabellasoldner commented 4 months ago

Checklist

Reproducible Example

When searching for a power plant that is definitely present we had to lower the threshold from the default of 0.5 to 0.3 to get the power plant out. I would consider "Gravelines" to be as an exact of a match as possible for this plant (since the rest of the name is the generic "nuclear plant") so I would not expect to have to lower the threshold to get the correct plant out.


search_results = Asset.search("Gravelines", sector="power", threshold=0.3, limit=10)
for asset in search_results:
    print(asset.id, asset.name_primary_en)

Nothing returns using default threshold of 0.5 in this case

There are announced units for this plant that have not beeen returned (maybe they are not in the old dataset)

Issue Description

see above

Expected Behavior

I would expect the default threshold to return a plant I definitely know is there with the unique part of its name.