You are here: Foswiki>Tasks Web>Item10053 (13 Jun 2011, MichaelDaum)Edit Attach

Item10053: Support fall-back to SEARCH when DBCacheContrib unavailable

pencil
Priority: Enhancement
Current State: Closed
Released In: n/a
Target Release: n/a
Applies To: Extension
Component: JQGridPlugin
Branches:
Reported By: PaulHarvey
Waiting For:
Last Change By: MichaelDaum
Will paste the patch here when ready.

-- PaulHarvey - 19 Nov 2010

Hello Michael,

Please review this very simple patch for the next version of the excellent JQGridPlugin smile

-- PaulHarvey - 05 Feb 2011

New version of the patch sorts (more) correctly.

-- PaulHarvey - 08 Feb 2011

Paul, what's the github link to your branch of the plugin? You pasted it once on IRC but I can't find it anymore.

Ah got it https://github.com/csirac2/JQGridPlugin ... strange search on github...

-- MichaelDaum - 10 Jun 2011

I think it's almost done, but there seems to be bug a in SEARCH that means showpage="n" doesn't work.

-- PaulHarvey - 10 Jun 2011

Ah, and edit="on" is broken

-- PaulHarvey - 10 Jun 2011

And recently I broke it so that if you set a filter that produces zero results, you get invalid XML (stray </literal> tag)

-- PaulHarvey - 10 Jun 2011

I am now about to restructure the complete plugin. We will have independent connectors for dbcache, normal search, a generic topic connector as well as a solr connector. Also interesting: connectors to a real database, or attached xml or json documents.

The new parameter that you introduced querytopic has been renamed to connector to either be one of a connector ID as configured in LocalSite.cfg or an existing web.topic.

Other plugins will be able to register new grid connectors using an entry to LocalSite.cfg like this
$Foswiki::cfg{JQGridPlugin}{Connector}{solr} = 'Foswiki::Plugins::SolrPlugin::JQGridConnector';

made use of with a %GRID{connector="solr"...}%.

There are abstract classes for connectors to encapsulate the most common features. A connector must implement a method to search and to save content. There's a large group of connectors of course that all would use the same way to save native Foswiki content. These inherit from a FoswikiConnector subclass that already comes with the appropriate save methods ... as far as they are implemented right now (needs improvement in its own).

-- MichaelDaum - 11 Jun 2011

Very cool smile

-- PaulHarvey - 11 Jun 2011
 
I Attachment Action Size Date Who Comment
Item10053.diffdiff Item10053.diff manage 2 K 08 Feb 2011 - 11:51 PaulHarvey  
Topic revision: r11 - 13 Jun 2011, MichaelDaum
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy