Code Monkey home page Code Monkey logo

Comments (5)

mrisher avatar mrisher commented on May 25, 2024

+1 This was unintuitive and masked some issues with other parts of our retrieval stack; from the documentation I assumed that a nearText combined with withinGeoRange would return all the relevant documents, not a subset.

from weaviate.

crispyadmin avatar crispyadmin commented on May 25, 2024

Please fix this issue it renders using maps in any mobile app with Weaviate under the hood useless. Make the expected behavior actually work (expand the geo radius as you make the max distance parameter bigger)

Test it for yourselves it's horrible 👨🥹

from weaviate.

databyjp avatar databyjp commented on May 25, 2024

Please fix this issue it renders using maps in any mobile app with Weaviate under the hood useless. Make the expected behavior actually work (expand the geo radius as you make the max distance parameter bigger)
Test it for yourselves it's horrible 👨🥹

Hey @crispyadmin I understand this is a frustrating issue but let's keep the discussion constructive :). In the meantime, a workaround might be to use geohashing, and then to use filters such as containsAll or containsAny to match sections within X number of tile range.

Note that due to how filters work, substring matches (i.e. LIKE) filters will be slower than exact matches, which is why I recommend using containsAll / containsAny.

Here is a brief explanation of geohashing. https://medium.com/@bkawk/geohashing-20b282fc9655

from weaviate.

crispyadmin avatar crispyadmin commented on May 25, 2024

can you show a code example of how I would use geohashing with the client?

Sorry geo hashing is quite new to me. So i would convert lat and long to the geohash and then what field am I filtering on in my Weaivate Cluster? Would i still be using my geo field?

from weaviate.

databyjp avatar databyjp commented on May 25, 2024

Sorry geo hashing is quite new to me. So i would convert lat and long to the geohash and then what field am I filtering on in my Weaivate Cluster? Would i still be using my geo field?

The geohash would be a string, where the longer the matched string the smaller the area is. In the articled that I linked to above, “9q8y” and “9q8z" are subsets of the “9q8” area.

from weaviate.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.