Coder Social home page Coder Social logo

Comments (8)

diquinnyonk avatar diquinnyonk commented on May 9, 2024 4

Setting SCOUT_DRIVER='"null"' solved for me. Thanks

from scout.

prasadrajandran avatar prasadrajandran commented on May 9, 2024 3

Closing this since it hasn't attracted much attention from other users.

from scout.

prasadrajandran avatar prasadrajandran commented on May 9, 2024 2

@telkins, that's actually quite interesting. I think it should be considered a bug too. Let's see if this gets more attention from others.

from scout.

divspace avatar divspace commented on May 9, 2024

This is happening with the 1.1.10 release as well. I have to manually set the application ID and secret in my model, where previously I was just using env() to grab the values. This results in the following error:

AlgoliaSearch requires an applicationID

from scout.

telkins avatar telkins commented on May 9, 2024

I've noticed the same problem with the prefix. Is this ticket getting any traction/attention...?

It's particularly important to keep local, testing, staging, whatever from trashing a production index.

Btw, I just took a look in the source code and I think that some might not consider this a bug/issue. If you look in Laravel\Scout\Searchable, you'll see the following:

    /**
     * Get the index name for the model.
     *
     * @return string
     */
    public function searchableAs()
    {
        return config('scout.prefix').$this->getTable();
    }

So, it looks like if one wants to override searchableAs(), then one must also account for the prefix. I would consider this a bug or at least something that should be addressed, but others might not.

Whatever the case, with the code the way it is, any override of searchableAs() results in the prefix not being taken into account -- at all -- unless done so manually. So, your workaround is, more or less, the current way to override searchableAs() and keep the prefix intact.

from scout.

prasadrajandran avatar prasadrajandran commented on May 9, 2024

@telkins, not as much as I'd have hoped for unfortunately.

from scout.

telkins avatar telkins commented on May 9, 2024

@prasadrajandran Thx for the quick response. I just edited my post...just in case you didn't see it. :-)

from scout.

ambuilding avatar ambuilding commented on May 9, 2024

@diquinnyonk

  • Thank you very much, it works, all the errors are disappear.
  • Could you tell me what's the difference between '"null"' and "null"?
  • <env name="SCOUT_DRIVER" value="null"/> doesn't work, replace "null" with '"null"', then it works.

from scout.

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.