Comments (8)
Setting SCOUT_DRIVER='"null"'
solved for me. Thanks
from scout.
Closing this since it hasn't attracted much attention from other users.
from scout.
@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.
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.
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.
@telkins, not as much as I'd have hoped for unfortunately.
from scout.
@prasadrajandran Thx for the quick response. I just edited my post...just in case you didn't see it. :-)
from scout.
- 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)
- Feature request: Provide contract to go with Searchable trait methods HOT 1
- MakeSearchable job runs even if model was not changed HOT 1
- Relationship with ManyToMany HOT 1
- Scout currently supports where clause that uses equal (=) operator only. Additional comparison (i.e >, >=, < ...) operation support is required. HOT 2
- php artisan scout:import error HOT 3
- Scout always returning an empty response but paginateRaw returns data HOT 5
- Support queryCallback in CollectionEngine HOT 1
- Formatting data based on the search field HOT 1
- Scout import command didn't indexed all the records in meilisearch HOT 1
- Meilisearch facetDistribution / raw attributes HOT 3
- Search downtime when running `scout:import` with Algolia HOT 2
- Method Laravel\Scout\Builder::withSearchParameters does not exist. HOT 7
- Typesense: Search throws exception -> fields is required HOT 5
- Typesense: Import exception not properly thrown HOT 1
- We need more operators in where clauses HOT 2
- Warn when using null driver HOT 1
- use scopeSearch to allow searching on relationships HOT 1
- Artisan scout commands not defined. HOT 1
- Add a fake() for scout HOT 4
- Exception when searching large datasets for common query using paginate HOT 12
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scout.