Giter Club home page Giter Club logo

Comments (8)

curquiza avatar curquiza commented on May 19, 2024 4

Hello @longfellowone!

Currently, the MeiliSearch placeholder works only when passing a q=null or no q at all, but q='' returns indeed no result.

This will be changed in the next release! meilisearch/meilisearch#916

from meilisearch-rust.

Mubelotix avatar Mubelotix commented on May 19, 2024 2

Whoops I ran a very old version.

from meilisearch-rust.

longfellowone avatar longfellowone commented on May 19, 2024

Figured that was the case. Until the next version is released is there anyway to send in a null query using the current rust api as new() does not accept an Option?

from meilisearch-rust.

Mubelotix avatar Mubelotix commented on May 19, 2024

I will add this feature in #46. The query will be an Option too.

from meilisearch-rust.

curquiza avatar curquiza commented on May 19, 2024

FYI the next release of MeiliSearch (v0.15.0) will be out in two weeks and will contain this change (q='' will return results as placeholder search).
If there is any change, I will let you know as the public pre-release will be out on Monday!

from meilisearch-rust.

Mubelotix avatar Mubelotix commented on May 19, 2024

Yes, but it would be more idiomatic to make query optional.

from meilisearch-rust.

Mubelotix avatar Mubelotix commented on May 19, 2024

I don't understand. According to the meilisearch response, the query string is mandatory.

Invalid JSON: missing field `q` at line 1 column 2", error_code: BadRequest, error_type: InvalidRequest, error_link: "https://docs.meilisearch.com/error/bad_request

from meilisearch-rust.

curquiza avatar curquiza commented on May 19, 2024

@Mubelotix: Hum weird, what is the version of your MeiliSearch instance? I don't succeed to reproduce your error with the v0.14.0

from meilisearch-rust.

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.