I understand that cakephp pagination is tightly tied to sql querying. Is it possible to customised it to work with Solr query instead? I want the pagination to retrieve data from solr search instead of mysql query. Thanks!
I've integrated Solr as a DataSource
https://github.com/Highstrike/cakephp-solr-datasource
You can also find there instructions on how to use it with examples. One of the example is the pagination you're looking for! Good luck.
You'll need to implement a datasource for this DB. You should be able to use the regular CakePHP pagination methods if your model I using this datasource and if it was written correctly. There is https://github.com/ugrworks/cakephp-solr-webservice-datasource but its pretty old but I think you can re-use the code and work based on it.
Update: Now there is https://github.com/Highstrike/cakephp-solr-datasource for CakePHP 2.x
Related
We have magnolia cms which works along with solr for search. I am looking for configuration within magnolia cms to specify which all fields should be searched. Basically, I want more control on the query that gets fired from magnolia to solr.
I have tried searching but havent found anything useful yet. If you can provide any info or pointers then that would be very helpful
We have a connector to Solr which you can find the documentation here.
Cheers,
I want to add Keyword Search Feature for every Visualization in Kibana.
but i want the feature like(for each visualization):
https://www.dropbox.com/s/aeqaehgkry3w9fm/image.jpg?dl=0
thank you.
What you want isn't exactly possible in Kibana in native form. You can add filters by interacting with the dashboard but no dynamic drop-downs.
I assume you want the filters on one visualisation to update other visualisations appropriately? If so, I think your only option to get the functionality you crave is to roll your own using something like angular.
I am working on java web project based on solr search engine.
I am looking for an alternative pagination way because solr has a known bug using start and rows attributes.
Do you know a solution (solr or java)?
Consider I have a lot of contents from query.
Thanks in advance
I get the impression this is not supported by Cake core yet, but has anyone managed to write their own code to do so? Is it possible with Ajax? I don't mind having all my tables Ajax sortable if this is the only way to do it.
Yes, I am aware of the link everyone posts (http://debuggable.com/posts/how-to-have-multiple-paginated-widgets-on-the-same-page-with-cakephp) and it does not solve the problem.
I ended up scrapping Cake's pagination system, and instead used a jQuery plugin called dataTables (http://www.datatables.net/).
It is quite frankly amazing what this guy has done to develop the plugin. It supports server-side powered pagination, sorting, and even filtering of your tables.
I am creating a webapp in Cakephp, and am thinking of implementing a search function in it. I read about Zend Lucene providing the search capabilities for native PHP webapps.
I have my web pages all created without using any kind of database functionality. How will I able to add webpages to the indexes? I don't mean the code, just an idea would help.
Regards
I don't know anything about Lucene, but a start, if you're using cake, would be to put the existing pages under the control of the Cake pages controller - read about it in the book http://book.cakephp.org or google more information.
After that, I would probably start thinking about using fgetss() or something like that to scrape the pages.
Me? I'd get the existing pages into the database and set up a Article[n]-[m]Word datamodel. Much easier to deal with them then.