algolia / algoliasearch-helper-flutter

⚡️ Building block to create instant-search applications with Flutter
https://www.algolia.com/doc/guides/building-search-ui/what-is-instantsearch/flutter/
Other
21 stars 14 forks source link

feat: Add Geospatial query support #105

Closed Wackymax closed 9 months ago

Wackymax commented 9 months ago
Q A
Bug fix? no
New feature? yes
BC breaks? no
Related Issue #72
Need Doc update yes

Describe your change

his commit refactors the SearchState class to include new properties for location-based search parameters. The changes include adding support for aroundLatLngViaIP, aroundLatLng, aroundRadius, minimumAroundRadius, aroundPrecision, and boundingbox.

This also updates the dependencies to use ranges so that projects relying on this one don't run into inter dependency lock issues.

What problem is this fixing?

Wackymax commented 9 months ago

@VladislavFitz regrettably this isn't working 100%. I am getting the following when specifying the bounding box params: "message":"Invalid value for \"insideBoundingBox\" parameter, expected float","status":400

Seems to be related to the algolia internal libs though.

This is the search query:

flutter: FINE: 2023-10-03 16:06:40.153431: Start disjunctive search: SearchState{indexName: explore-search, query: null, analytics: null, attributesToHighlight: null, attributesToRetrieve: null, attributesToSnippet: null, disjunctiveFacets: null, isDisjunctiveFacetingEnabled: true, facetFilters: null, facets: null, filterGroups: null, highlightPostTag: null, highlightPreTag: null, hitsPerPage: 100, maxFacetHits: null, maxValuesPerFacet: null, numericFilters: null, optionalFilters: null, page: null, ruleContexts: null, sumOrFiltersScore: null, tagFilters: null, userToken: OkYT6aU2soXxEaKEIaLdTb6D4MJ3, clickAnalytics: true, aroundLatLngViaIP: null, aroundLatLng: null, aroundRadius: null, aroundPrecision: null, minimumAroundRadius: null, insideBoundingBox: [30.611173181301755, -118.23933205148779, 38.39659140714243, -113.8750521802722]}

Don't know if you can help with that?

VladislavFitz commented 9 months ago

@Wackymax the issue in the Dart client has been fixed. Could you check if it works properly on your end now?

Wackymax commented 9 months ago

Thank you. I will check and let you know if I continue to encounter the error.On 11 Oct 2023, at 15:48, Vladislav Fitc @.***> wrote: @Wackymax the issue in the Dart client has been fixed. Could you check if it works properly on your end now?

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>