Coder Social home page Coder Social logo

Comments (5)

duncanmcclean avatar duncanmcclean commented on June 18, 2024 1

Quick update as I know this issue has been open for quite a while - I'm still planning to add this feature at some point.

However, at present, there's no way to add 'custom searchables' to Statamic which would be needed so we can 'push' your Eloquent models into Statamic for it to index.

I had a look at implementing this in the core the other day but I got a bit stuck 🙈 If I have enough time at some point, I'll possibly take another look.

Hopefully it's not a massive issue for you (or anyone else) for that matter. Search is available on the resource listing pages if you need it, just not globally with Statamic's search system.

from runway.

GioChocolateBro avatar GioChocolateBro commented on June 18, 2024 1

Thanks for the update, this is really a "nice to have" for me at this point.

Would deff be great but also managing without ^^

from runway.

duncanmcclean avatar duncanmcclean commented on June 18, 2024

I don't think we can actually do this right now, so I've opened a Statamic feature request: statamic/ideas#519

from runway.

ryanmitchell avatar ryanmitchell commented on June 18, 2024

If it helps at all I'd happily work with you on the core changes needed for this.

Seems like Statamic\Search\Searchables needs a method for registering custom searchables, and Statamic\Search\IndexManager::index() needs a way of overriding the default driver.

Then that would allow runway to register a searchable and a driver (with corresponding query builder that extends from Statamic\Query\EloquentQueryBuilder)

from runway.

duncanmcclean avatar duncanmcclean commented on June 18, 2024

I'd love if you'd help to work on it. I've tried a few times but I'm honestly a bit stuck of where to start and how to integrate it in with what's already there.

On my Statamic FR, Jason left a comment about how he'd probably expect the API for it to work.

Once it's working on the Statamic side, I'd happily build the Runway side of the integration.

from runway.

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.