Comments (9)
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.
Yes, maybe #26 should be the right way to handle it. A PR would be really appreciated :D
from silverstripe-searchable-dataobjects.
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.
@wernerkrauss are you ok with the new PR?
from silverstripe-searchable-dataobjects.
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.
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.
@wernerkrauss does this PR solve your issue? Can we close the issue?
from silverstripe-searchable-dataobjects.
@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.
thanks to you and @rotassator
from silverstripe-searchable-dataobjects.
Related Issues (20)
- SearchableDataObject does take into account SiteTree versioned HOT 2
- PopulateSearch::insert() containts echo statements HOT 1
- SQL is invalid // there is an surplus "e" in the query HOT 1
- SearchableDataObject onBeforeDelete override calls parent::onAfterDelete() HOT 1
- Provide own search controller HOT 2
- mysql error on a fresh install HOT 3
- Make search form configurable HOT 1
- readme.md example DataObject class code bug HOT 4
- SearchableDataObject DB table has multiple keys/indexes HOT 7
- Possibility to filter by language or Subsite? HOT 3
- Return 1 Page when Multiple DataObject ComeBack HOT 4
- Possibility to search substrings / use wildcard
- Module does not work on sqlite - tests with sqlite not working HOT 2
- SearchForm results() function exposed as controller action HOT 2
- nonexistent SearchableDataObject in 'extensions' getting error HOT 1
- SS 4.5 populate search issue
- Error : Class 'HTMLPurifier_Config' not found HOT 1
- Support for SIlverstripe 5 HOT 2
- Deprecation warning after PHP7.2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from silverstripe-searchable-dataobjects.