One of my old searches used TextIndexNG3 and the search query looked like
searchResults( hyId='not none', sort_on="sort_name", sort_order="ascending")
I am about migrating all obsolete TextIndexNG3 indexes to ZCTextIndex - and all tests pass - except the one with above query.
self = <Products.ZCTextIndex.QueryParser.QueryParser instance at 0x7f0f7b2433f8>, tokentype = 'ATOM' def _require(self, tokentype): if not self._check(tokentype): t = self._tokens[self._index] msg = "Token %r required, %r found" % (tokentype, t) > raise ParseTree.ParseError, msg E ParseError: Token 'ATOM' required, u'not' found ../../../../../../../_/home/jugmac00/.batou-shared-eggs/Products.ZCTextIndex-2.13.5-py2.7-linux-x86_64.egg/Products/ZCTextIndex/QueryParser.py:156: ParseError
Do I have to instantiate all objects and ask the objects whether there is anything set for
hyId or is there something to directly ask the catalog?
Which query do I have to build to get all results for objects which have anything set for a certain attribute?