Giter Site home page Giter Site logo

Comments (9)

wernerkrauss avatar wernerkrauss commented on July 18, 2024

I wonder why it was fixed in 2.1.3 but is not in dev-master...?
b8b0bfe

Which brings me again to #26 - why not just use a DO for saving the search - this way you can use extensions for additional search information and SS will handle the index creation.

from silverstripe-searchable-dataobjects.

g4b0 avatar g4b0 commented on July 18, 2024

Yes, maybe #26 should be the right way to handle it. A PR would be really appreciated :D

from silverstripe-searchable-dataobjects.

rotassator avatar rotassator commented on July 18, 2024

My take on fixing this that also works in SQLite - #38

why not just use a DO for saving the search
I thought about this, but AFAIK the ORM would use the ID for the lookup and break since the primary index is on ID + ClassName.

from silverstripe-searchable-dataobjects.

g4b0 avatar g4b0 commented on July 18, 2024

@wernerkrauss are you ok with the new PR?

from silverstripe-searchable-dataobjects.

wernerkrauss avatar wernerkrauss commented on July 18, 2024

I hope I can have a look at at this weekend. Looks good but would need some testing...

Just wondering if i can write a unit test for that?

from silverstripe-searchable-dataobjects.

g4b0 avatar g4b0 commented on July 18, 2024

Sure you can! This module is growing and some unit test shoud be very useful. We can then also try to integrate some CI like travis, but first we need some test :)
Thanks a lot, I will be very happy to merge your PR

from silverstripe-searchable-dataobjects.

g4b0 avatar g4b0 commented on July 18, 2024

@wernerkrauss does this PR solve your issue? Can we close the issue?

from silverstripe-searchable-dataobjects.

wernerkrauss avatar wernerkrauss commented on July 18, 2024

@g4b0 Seems it fixed the problem. I ran a quick test, deleted the actual SearchableDataObjects table and it created only two indexes, Title and Content. Tested with dev-master d2e02b7

Thanks!

from silverstripe-searchable-dataobjects.

g4b0 avatar g4b0 commented on July 18, 2024

thanks to you and @rotassator

from silverstripe-searchable-dataobjects.

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.