Giter Site home page Giter Site logo

silverstripe-elastica's People

Contributors

ajshort avatar assertchris avatar chillu avatar johannesx75 avatar nedmas avatar nyeholt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

silverstripe-elastica's Issues

Update documentation on dev/tasks

documentation on dev tasks needs to be updated. My understanding is that Heyday-Elastica-ReindexTask is not required and should therefore be removed. Symbiote-ElasticSearch-VersionedReindexTask requires ?rebuild=1, ?re-index=1 or ?rebuild=1&re-index=1 to run successfully

Problem with the Reindex-Task

Hi,

I added the elasticsearch functionality to the SiteTree Object. The documents are properly indexed when I save a document in Silverstripe.

But I get an error running the reindex task:

$ php framework/cli-script.php dev/tasks/SilverStripe-Elastica-ReindexTask
Running Task Elastic Search Reindex

Defining the mappings
ERROR [User Error]: Uncaught Elastica\Exception\ResponseException: ClassCastException[java.util.ArrayList cannot be cast to java.util.Map]
IN GET /dev/tasks/SilverStripe-Elastica-ReindexTask
Line 142 in /var/www/silverstripe/vendor/ruflin/elastica/lib/Elastica/Transport/Http.php

[...]

Trace
=====
Elastica\Transport\Http->exec([...]},Array)
Request.php:166

Do you know what the problem is?

Elasticsearch-Version: 0.90.10

Tagged Version

Thanks so much for your work on this module Andrew. I'm using it with success on one site and am about to integrate with another. One thing I'm worried about is having to put "dev-master" in my composer.json next to the package. Is there any chance you might tag a version?

Elastic does not build index on dev/build

The problem

When trying to save new records that are indexed by Elastic, you might get an error with something like the error below.

To avoid it currently, you need to know to run dev/tasks/Symbiote-Elastica-ReindexTask?rebuild=1

Uncaught Elastica\Exception\Bulk\ResponseException: Error in one or more bulk request actions: index: /my-elastic-index/MyCustomDataObject/MyCustomDataObject_1_Stage caused failed to parse [GlobalID] index: /my-elastic-index/MyCustomDataObject/MyCustomDataObject_2_Stage caused failed to parse [GlobalID] index: /my-elastic-index/MyCustomDataObject/MyCustomDataObject_3_Stage caused failed to parse [GlobalID] index: /my-elastic-index/MyCustomDataObject/MyCustomDataObject_4_Stage caused failed to parse [GlobalID] index: /my-elastic-index/MyCustomDataObject/MyCustomDataObject_5_Stage caused failed to parse [GlobalID] index: /my-elastic-index/MyCustomDataObject/MyCustomDataObject_6_Stage caused failed to parse [GlobalID] index: /my-elastic-index/MyCustomDataObject/MyCustomDataObject_7_Stage caused failed to parse [GlobalID] index: /my-elastic-index/MyCustomDataObject/MyCustomDataObject_8_Stage caused failed to parse [GlobalID] index: /my-elastic-index/MyCustomDataObject/MyCustomDataObject_9_Stage caused failed to parse [GlobalID] index: /my-elastic-index/MyCustomDataObject/MyCustomDataObject_10_Stage caused failed to parse [GlobalID] index: /my-elastic-index/MyCustomDataObject/MyCustomDataObject_11_Stage caused failed to parse [GlobalID] index: /my-elastic-index/MyCustomDataObject/MyCustomDataObject_12_Stage caused failed to parse [GlobalID] index: /my-elastic-index/MyCustomDataObject/MyCustomDataObject_13_Stage caused failed to parse [GlobalID] index: /my-elastic-index/MyCustomDataObject/MyCustomDataObject_14_Stage caused failed to parse [GlobalID] index: /my-elastic-index/MyCustomDataObject/MyCustomDataObject_15_Stage caused failed to parse [GlobalID] index: /my-elastic-index/MyCustomDataObject/MyCustomDataObject_16_Stage caused failed to parse [GlobalID] index: /my-elastic-index/MyCustomDataObject/MyCustomDataObject_17_Stage caused failed to parse [GlobalID] index: /my-elastic-index/MyCustomDataObject/MyCustomDataObject_18_Stage caused failed to parse [GlobalID] index: /my-elastic-index/MyCustomDataObject/MyCustomDataObject_19_Stage caused failed to parse [GlobalID] index: /my-elastic-index/MyCustomDataObject/MyCustomDataObject_20_Stage caused failed to parse [GlobalID] index: /transport-mpw-

The solution

Make the index get created during dev/build. This means developers wont need to remember to run this and wont get an obtuse error.

Installation

Hi,

Is there a detailed instruction on how this can be setup? Could you provide one please? It seems to be useful and I don't want to write something from scratch, but I don't know how to use this one.

Thanks!

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.