Giter Site home page Giter Site logo

Comments (6)

velias avatar velias commented on June 28, 2024

I'm not sure if I understand exactly which REST call returns 404. You use scenario where river gets list of id's from main indexer REST call, and then do separate REST call for each item to get details? And 404 is returned for some items there?

from elasticsearch-river-remote.

Starefossen avatar Starefossen commented on June 28, 2024

Well, this can occur for all APIs in those cases where the item is deleted shortly after the river is trying to index the item.

For our API we are listing deleted items so that other systems can delete them from their indices without doing a complete reindex. Four our case it would have been nice if the river could delete 404 items from Elasticsearch – but a graceful handle where the river just ignores 404 items will suffice :)

from elasticsearch-river-remote.

velias avatar velias commented on June 28, 2024

OK, so I'll improve river to ignore 404 returned from calls to the URL configured in remote/urlGetDocumentDetails and continue in indexing, not to fail whole indexing in this case.

But 404 returned for calls to URL's defined in remote/urlGetDocuments or remote/urlGetSpaces wil be treated as indexing error still.

from elasticsearch-river-remote.

Starefossen avatar Starefossen commented on June 28, 2024

That would be perfect @velias. Thank you!

from elasticsearch-river-remote.

velias avatar velias commented on June 28, 2024

OK, code is updated. I'll release new version of plugin in few days.

from elasticsearch-river-remote.

velias avatar velias commented on June 28, 2024

released

from elasticsearch-river-remote.

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.