Commit 3d19c61b authored by Tristan Cavelier's avatar Tristan Cavelier Committed by Kazuhiko Shiozaki

use SimpleQuery instead of Query for title and description on catalog_full_text

parent a288a62e
......@@ -53,9 +53,9 @@
<value> <string>"""\n
MySQL\'s full text searchable key implementation.\n
"""\n
from Products.ZSQLCatalog.SQLCatalog import Query\n
from Products.ZSQLCatalog.SQLCatalog import SimpleQuery\n
\n
query = Query(**{\'catalog_full_text.fulltext_description\': \'*D+ %s\' % value, \'key\': \'FullTextKey\'} )\n
query = SimpleQuery(**{\'catalog_full_text.fulltext_description\': \'*D+ %s\' % value, \'comparison_operator\': \'match_boolean\'} )\n
return query\n
</string> </value>
</item>
......
......@@ -53,9 +53,9 @@
<value> <string>"""\n
MySQL\'s full text searchable key implementation.\n
"""\n
from Products.ZSQLCatalog.SQLCatalog import Query\n
from Products.ZSQLCatalog.SQLCatalog import SimpleQuery\n
\n
query = Query(**{\'catalog_full_text.fulltext_title\': \'*D+ %s\' % value, \'key\': \'FullTextKey\'} )\n
query = SimpleQuery(**{\'catalog_full_text.fulltext_title\': \'*D+ %s\' % value, \'comparison_operator\': \'match_boolean\'} )\n
return query\n
</string> </value>
</item>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment