Comments (3)
I fixed problem and sorry for disturbing :) I forgot to add id field to toSearchableArray Method :) thanks.
from meilisearch-laravel-scout.
Hi @bsormagec,
this is not MeiliSearch specific. And more of a laravel/scout issue. You can try to do:
public function toSearchableArray(): array
{
$this->load('brand');
return [
$this->stock_code,
$this->category->name,
$this->name,
$this->description,
$this->status,
$this->is_online,
$this->is_active,
optional($this->brand)->name,
$this->mainProduct,
];
}
from meilisearch-laravel-scout.
I am checking it send post to meilisearch instance
32 => array:8 [
"stock_code" => "STCK12344321"
"category" => "Fruits"
"name" => "test variant1 name"
"description" => "test variant1 description"
"status" => 0
"is_online" => 0
"is_active" => null
"brand" => "Coogie"
]
but I can't see any record on meilisearch don't understand what is the problem. If I see $this->toArray() it works but when I try to manipulate array key's its not sending values to meilisearch. do you have an idea @mmachatschek
from meilisearch-laravel-scout.
Related Issues (20)
- search()->get() returns a maximum of 20 items HOT 1
- A primary key is already present. It's impossible to update it HOT 2
- using FacetFilters HOT 3
- cant find any good example tutorial ,correct me if iam doing wrong HOT 4
- The future of this repo HOT 17
- Delay for index new records HOT 1
- [DX] Easy index configuration HOT 2
- Creating index using php artisan not working HOT 7
- Include facetsDistribution in paginate() response? HOT 1
- Skip searching by ID HOT 5
- How to deploy and use laravel-scout and Meilisearch to ec2 instance HOT 5
- Update of existing records HOT 4
- Downgrading Meilisearch to version compatible with database HOT 1
- Engine uses the eloquent getScoutKey() to get key values but uses getKeyName() to get the name of the key HOT 2
- Getting an error when meilisearch service is not run HOT 1
- How to setup a custom timeout for a search ? HOT 8
- paginateRaw() returns wrong amount of total items HOT 4
- Laravel native support announced HOT 1
- One Model not importing HOT 3
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 meilisearch-laravel-scout.