Skip to content

Automatic reindexing not working ? #100

@prigal

Description

@prigal

I add the

use \Iverberk\Larasearch\Traits\SearchableTrait;

on my Product model.

Then I do a

$product= new Product(['title'=>'Amazing']);
$product->save();

Then I try to search via :

curl -XGET 'http://127.0.0.1:9200/products_20150722092624/_search?pretty=1&q=Amazing'
{
  "took" : 1,
  "timed_out" : false,
  "_shards" : {
    "total" : 1,
    "successful" : 1,
    "failed" : 0
  },
  "hits" : {
    "total" : 0,
    "max_score" : null,
    "hits" : [ ]
  }
}

Why the index wasn't updated after save() to make 'Amazing' searchable ? Do I forgot to do something ?

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions