Giter VIP home page Giter VIP logo

Comments (5)

t1k3 avatar t1k3 commented on July 18, 2024

mappings/app_models_book@map

Map::create($this->getModelType(),function(Blueprint $map){
    $map->date('date', [
        'fielddata' => true,
        'format'    => 'yyyy-MM-dd HH:mm:ss'
    ]);
},$this->getModelIndex());
$ php artisan mapping:rerun

from plastic.

phuongnm153 avatar phuongnm153 commented on July 18, 2024

Thanks. Its working for me

from plastic.

phuongnm153 avatar phuongnm153 commented on July 18, 2024

So i have a new issue.
I have a "updated_at" field is date type. I mapping with this code:
$map->date('updated_at', [ 'fielddata' => true, 'format' => 'yyyy-MM-dd HH:mm:ss' ]);
When I run the command
php artisan mapping:run
Then It show a message:
"Can't merge a non object mapping [updated_at] with an object mapping [updated_at]"
can u help me?

from plastic.

t1k3 avatar t1k3 commented on July 18, 2024

Just a tip but I think this is the solution.

$ curl -XDELETE "http://localhost:9200/plastic"
$ curl -XPUT "http://localhost:9200/plastic"
$ php artisan mapping:run

from plastic.

phuongnm153 avatar phuongnm153 commented on July 18, 2024

Thanks. I got it

from plastic.

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.