From 85ab0fb6e6683f5d096dd6f99a36690ec704a227 Mon Sep 17 00:00:00 2001 From: Ivan Tyagov <ivan@nexedi.com> Date: Fri, 28 Jan 2011 11:28:20 +0000 Subject: [PATCH] Define MySQL's full_text key implementation. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@42735 20353a03-c40f-0410-a6d1-a30d3c3de9de --- ...Catalog_makeFullTextQuery.catalog_keys.xml | 2 + .../SQLCatalog_makeFullTextQuery.xml | 73 +++++++++++++++++++ .../bt/change_log | 3 + bt5/erp5_full_text_myisam_catalog/bt/revision | 2 +- .../bt/template_catalog_method_id_list | 1 + 5 files changed, 80 insertions(+), 1 deletion(-) create mode 100644 bt5/erp5_full_text_myisam_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/SQLCatalog_makeFullTextQuery.catalog_keys.xml create mode 100644 bt5/erp5_full_text_myisam_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/SQLCatalog_makeFullTextQuery.xml diff --git a/bt5/erp5_full_text_myisam_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/SQLCatalog_makeFullTextQuery.catalog_keys.xml b/bt5/erp5_full_text_myisam_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/SQLCatalog_makeFullTextQuery.catalog_keys.xml new file mode 100644 index 0000000000..a540f9431e --- /dev/null +++ b/bt5/erp5_full_text_myisam_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/SQLCatalog_makeFullTextQuery.catalog_keys.xml @@ -0,0 +1,2 @@ +<catalog_method> +</catalog_method> diff --git a/bt5/erp5_full_text_myisam_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/SQLCatalog_makeFullTextQuery.xml b/bt5/erp5_full_text_myisam_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/SQLCatalog_makeFullTextQuery.xml new file mode 100644 index 0000000000..57610225ba --- /dev/null +++ b/bt5/erp5_full_text_myisam_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/SQLCatalog_makeFullTextQuery.xml @@ -0,0 +1,73 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="PythonScript" module="Products.PythonScripts.PythonScript"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>Script_magic</string> </key> + <value> <int>3</int> </value> + </item> + <item> + <key> <string>_bind_names</string> </key> + <value> + <object> + <klass> + <global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/> + </klass> + <tuple/> + <state> + <dictionary> + <item> + <key> <string>_asgns</string> </key> + <value> + <dictionary> + <item> + <key> <string>name_container</string> </key> + <value> <string>container</string> </value> + </item> + <item> + <key> <string>name_context</string> </key> + <value> <string>context</string> </value> + </item> + <item> + <key> <string>name_m_self</string> </key> + <value> <string>script</string> </value> + </item> + <item> + <key> <string>name_subpath</string> </key> + <value> <string>traverse_subpath</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </state> + </object> + </value> + </item> + <item> + <key> <string>_body</string> </key> + <value> <string>"""\n + MySQL\'s full text searchable key implementation.\n +"""\n +from Products.ZSQLCatalog.SQLCatalog import Query\n +\n +query = Query(**{\'full_text.SearchableText\': value})\n +return query\n +</string> </value> + </item> + <item> + <key> <string>_params</string> </key> + <value> <string>value</string> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>SQLCatalog_makeFullTextQuery</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_full_text_myisam_catalog/bt/change_log b/bt5/erp5_full_text_myisam_catalog/bt/change_log index 69d28546fd..e042dedb9c 100644 --- a/bt5/erp5_full_text_myisam_catalog/bt/change_log +++ b/bt5/erp5_full_text_myisam_catalog/bt/change_log @@ -1,2 +1,5 @@ +2011-01-28 Ivan +* Define MySQL's full_text key implementation + 2011-01-03 Kazuhiko * split fulltext related part from erp5_mysql_innodb_catalog. \ No newline at end of file diff --git a/bt5/erp5_full_text_myisam_catalog/bt/revision b/bt5/erp5_full_text_myisam_catalog/bt/revision index d8263ee986..e440e5c842 100644 --- a/bt5/erp5_full_text_myisam_catalog/bt/revision +++ b/bt5/erp5_full_text_myisam_catalog/bt/revision @@ -1 +1 @@ -2 \ No newline at end of file +3 \ No newline at end of file diff --git a/bt5/erp5_full_text_myisam_catalog/bt/template_catalog_method_id_list b/bt5/erp5_full_text_myisam_catalog/bt/template_catalog_method_id_list index ce565947b4..03d7a4bf88 100644 --- a/bt5/erp5_full_text_myisam_catalog/bt/template_catalog_method_id_list +++ b/bt5/erp5_full_text_myisam_catalog/bt/template_catalog_method_id_list @@ -1,3 +1,4 @@ +erp5_mysql_innodb/SQLCatalog_makeFullTextQuery erp5_mysql_innodb/z0_drop_fulltext erp5_mysql_innodb/z0_uncatalog_fulltext erp5_mysql_innodb/z_catalog_fulltext_list -- 2.30.9