OK following on from the other search thread, attached is an alpha grade but working package for cobalt + elasticsearch as a proof of concept.
Some notes:
Its based on the JES package
Most importantly as that page says:
You absolutely need to have an ElasticSearch server if you want to use this extension
The original JES package wont work on J3 so I've updated the code.
I needed to make a couple of plugins to get cobalt to work with JES which are included in the attached package.
I've run the package on a blank J3 on my dev server running php 5.4 and it installs ok.
I havent tried with J2.5. If you want to try this maybe use the JES package and extract my cobalt plugins from this package.
After install there are a lof plugins to enable (under system, elasticsearch and mint)
and set your elasticsearch config options in admin->elasticsearch.
and you need to publish the search module somewhere.
(iirc there is a classname clash with some other (joomla) search module. I forget which, but if the JES search mod causes a fatal error so turn the other one off)
There also might have been some issues with SEF urls(?), but anyway it works just now with sef turned off.
It will index all cobalt records by running from admin, and will index cobalt new and updated records.
At the moment the cobalt plugin is simply indexing whatever is in #__js_res_record.fieldsdata and title.
Of course this means cobalt still pushing data into fieldsdata - which defeats the purpose but anyway its a basic trial.
In my test setup with around 14000 entries it takes about 5 mins to index all records. Thats longer than a cobalt re-index. But I've used cobalt itemsstore to fetch record data which I guess is not the most efficient method.
Searches certainly seem to be impressively fast, altho I havent done any hard numbers.
Is it worth it? :
My cobalt project has a lot of data in a lot of sites and unscientifically this seems much faster than standard cobalt / joomla search. I didnt look at the geospatial stuff yet but apparently its also fast and that's a big consideration.
It would need some more work to get it up to standard but I think its probably worth it. If you can test it or have opinion I'll be grateful for feedback.
[it shouldnt explode your install - but as always backup first! because unlike sergey I'm useless at support so if the sky falls in you will be on your own!]
OK following on from the other search thread, attached is an alpha grade but working package for cobalt + elasticsearch as a proof of concept.
Some notes:
Its based on the JES package
Most importantly as that page says:
You absolutely need to have an ElasticSearch server if you want to use this extension
The original JES package wont work on J3 so I've updated the code.
I needed to make a couple of plugins to get cobalt to work with JES which are included in the attached package.
I've run the package on a blank J3 on my dev server running php 5.4 and it installs ok.
I havent tried with J2.5. If you want to try this maybe use the JES package and extract my cobalt plugins from this package.
After install there are a lof plugins to enable (under system, elasticsearch and mint)
and set your elasticsearch config options in admin->elasticsearch.
and you need to publish the search module somewhere.
(iirc there is a classname clash with some other (joomla) search module. I forget which, but if the JES search mod causes a fatal error so turn the other one off)
There also might have been some issues with SEF urls(?), but anyway it works just now with sef turned off.
It will index all cobalt records by running from admin, and will index cobalt new and updated records.
At the moment the cobalt plugin is simply indexing whatever is in #__js_res_record.fieldsdata and title.
Of course this means cobalt still pushing data into fieldsdata - which defeats the purpose but anyway its a basic trial.
In my test setup with around 14000 entries it takes about 5 mins to index all records. Thats longer than a cobalt re-index. But I've used cobalt itemsstore to fetch record data which I guess is not the most efficient method.
Searches certainly seem to be impressively fast, altho I havent done any hard numbers.
Is it worth it? :
My cobalt project has a lot of data in a lot of sites and unscientifically this seems much faster than standard cobalt / joomla search. I didnt look at the geospatial stuff yet but apparently its also fast and that's a big consideration.
It would need some more work to get it up to standard but I think its probably worth it. If you can test it or have opinion I'll be grateful for feedback.
[it shouldnt explode your install - but as always backup first! because unlike sergey I'm useless at support so if the sky falls in you will be on your own!]