elasticsearch – scout:import doesn’t import second model
I am trying to import items and tags but it always imports the first one and ignores the second one (doesn’t matter which one: if I import an item it will not import a tag and vice versa)
mappings: {
    items: {
        properties: {}
    }
}
or
mappings: {
    tags: {
        properties: {}
    }
}
In both models I am using Searchable and toSearchableArray function…
I am using scout and tamayo/laravel-scout-elastic latest version
so mapping doesn’t work for the second model
from Laravel Questions and Answers https://laravelquestions.com/php/elasticsearch-scoutimport-doesnt-import-second-model/
via Lzo Media
 
 
No comments:
Post a Comment