This question about Using an extension: Asked

GRID with dbcache connector: How to exclude a topic?

For performance reasons, I would like to use the dbcache connector rather than the search connector. However, I have problems excluding unwanted topics containing the same form, e.g., a *Template topic like NewUserTemplate.

This code works:
  query=" ~ '*UserForm' AND NOT name ~ '*Template'"

But it will display an empty table when setting the connector to dbcache. Supposedly because dbcache has problems with the NOT operator. Instead, the "! =" operator (without the whitespace in between) can be used, which works for form fields (e.g. Status "! =" 'retired'), but doesn't seem to work with the topic name. First of all, there doesn't seem to be anything like "! ~". But also specifying the full template name does not prevent it from being listed:
  query=" ~ '*UserForm' AND name != 'NewUserTemplate'"

Any ideas? Anyone?

-- PhilippLeufke - 25 May 2013

As a first workaround, which of course won't work for any use case, I am now filtering out any topic with and empty LastName field, which should usually only match the NewUserTemplate:

query=" ~ '*UserForm' AND LastName != ''"

A real solution, however, would still be welcome...

-- PhilippLeufke - 26 May 2013

The query language has to match the one of the backend you choose. This is different for SEARCH, DBQUERY and SOLRSEARCH.

Try topic instead of name using the dbcache connector.

-- MichaelDaum - 27 May 2013

Thanks, that worked out, using "topic =! 'NewUserTemplate'"

However, is there any way to get the unsharp '*Template' filter working with the NOT operator? This would be useful, when several similar named topics are to be excluded...

-- PhilippLeufke - 02 Sep 2013

QuestionForm edit

Subject Using an extension
Extension JQGridPlugin
Version Foswiki 1.1.8
Status Asked
Related Topics
Topic revision: r4 - 02 Sep 2013, PhilippLeufke - This page was cached on 15 Sep 2019 - 21:02.

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