# |
Jul 10th 2018, 10:14 |
lorenzo |
@josbeir added to the readme |
# |
Jul 10th 2018, 10:13 |
Martin` |
Hmm I've a tree, I created an index with just sorting tree bij de lft, and making a nice tree, but now I have a problem with the search plugin. I want to always show all folders. how can I do this? I already tried adding ->orWhere(['folder' => 1]) to the query, but then it only finds folders :( |
# |
Jul 10th 2018, 10:13 |
josbeir |
randd on such things should be a bigger part of the budget then ;) |
# |
Jul 10th 2018, 10:11 |
james.phillips |
yeah sucks have to say to client what we recommend but dont have time to investigate it fully.. |
# |
Jul 10th 2018, 10:11 |
josbeir |
but yeah.. money |
# |
Jul 10th 2018, 10:10 |
josbeir |
time is good, otherwise you will grab to the things you know |
# |
Jul 10th 2018, 10:10 |
josbeir |
well yeah, you need to take your time for such things :P |
# |
Jul 10th 2018, 10:10 |
james.phillips |
I hate deadlines |
# |
Jul 10th 2018, 10:10 |
james.phillips |
I kinda run out of time to investigate this now lol... |
# |
Jul 10th 2018, 10:09 |
slackebot4 |
! |
# |
Jul 10th 2018, 10:09 |
slackebot4 |
Command sent from Slack by josbeir: |
# |
Jul 10th 2018, 10:09 |
josbeir |
Add 'refresh' option when saving or deleting documents to wait for the index to refresh see https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-refresh.html |
# |
Jul 10th 2018, 10:08 |
lorenzo |
(pun intended) |
# |
Jul 10th 2018, 10:08 |
lorenzo |
can you refresh my mind? |
# |
Jul 10th 2018, 10:08 |
josbeir |
@lorenzo you forgot the 'refresh' option in the changelog :P |
# |
Jul 10th 2018, 10:08 |
james.phillips |
painful to upgrade to 3.6 from 3.5? |
# |
Jul 10th 2018, 10:08 |
josbeir |
best test with cake 3.6 and 2.0 branch |
# |
Jul 10th 2018, 10:07 |
james.phillips |
my fault... |
# |
Jul 10th 2018, 10:07 |
josbeir |
i assumed you where using the 2.0 branch |
# |
Jul 10th 2018, 10:07 |
james.phillips |
my fault. |
# |
Jul 10th 2018, 10:07 |
james.phillips |
ahhhh I hate computers |
# |
Jul 10th 2018, 10:07 |
josbeir |
sorry about that |
# |
Jul 10th 2018, 10:07 |
josbeir |
ok then you can use the old docs |
# |
Jul 10th 2018, 10:06 |
josbeir |
fuck sake :) |
# |
Jul 10th 2018, 10:06 |
josbeir |
thats the 1.x branch |
# |
Jul 10th 2018, 10:06 |
josbeir |
ah ok wait |
# |
Jul 10th 2018, 10:06 |
james.phillips |
"cakephp/elastic-search": "@stable" in composer json |
# |
Jul 10th 2018, 10:06 |
josbeir |
ah you want to compare the entire entity probably |
# |
Jul 10th 2018, 10:06 |
josbeir |
firstMatch() ? |
# |
Jul 10th 2018, 10:05 |
neon1024 |
What’s the quickest way to see if an entity value exists in an array of Entities? I’ve tried Collection::contains() but doesn’t seem to cut it |
# |
Jul 10th 2018, 10:05 |
josbeir |
it uses the new Plugin style |
# |
Jul 10th 2018, 10:05 |
josbeir |
2.0 is for 3.6+ |
# |
Jul 10th 2018, 10:05 |
james.phillips |
I have cake 3.5.5 |
# |
Jul 10th 2018, 10:04 |
josbeir |
its still up 2 date for saving and retrieving :slightly_smiling_face: |
# |
Jul 10th 2018, 10:04 |
josbeir |
check out the readme on git, ignore the setup part in the cake docs |
# |
Jul 10th 2018, 10:04 |
josbeir |
you are using the old plugin loading way |
# |
Jul 10th 2018, 10:04 |
josbeir |
in Application.php |
# |
Jul 10th 2018, 10:04 |
josbeir |
you need to use $this->addPlugin |
# |
Jul 10th 2018, 10:03 |
josbeir |
no |
# |
Jul 10th 2018, 10:03 |
james.phillips |
Plugin::load('Cake/ElasticSearch', ['bootstrap' => true]); |
# |
Jul 10th 2018, 10:03 |
josbeir |
or use IndexRegistry::get('Comments'); |