Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
erp5_workflow
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wenjie.zheng
erp5_workflow
Commits
d07637d3
Commit
d07637d3
authored
Nov 01, 2011
by
Kazuhiko Shiozaki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
initial commit of erp5_full_text_groonga_catalog.
parent
c61314bd
Changes
24
Hide whitespace changes
Inline
Side-by-side
Showing
24 changed files
with
414 additions
and
0 deletions
+414
-0
bt5/erp5_full_text_groonga_catalog/CatalogFullTextKeyTemplateItem/full_text_key_list.xml
...log/CatalogFullTextKeyTemplateItem/full_text_key_list.xml
+4
-0
bt5/erp5_full_text_groonga_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/SQLCatalog_makeFullTextQuery.catalog_keys.xml
...ysql_innodb/SQLCatalog_makeFullTextQuery.catalog_keys.xml
+2
-0
bt5/erp5_full_text_groonga_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/SQLCatalog_makeFullTextQuery.xml
...atalog/erp5_mysql_innodb/SQLCatalog_makeFullTextQuery.xml
+73
-0
bt5/erp5_full_text_groonga_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z0_drop_fulltext.catalog_keys.xml
...talog/erp5_mysql_innodb/z0_drop_fulltext.catalog_keys.xml
+5
-0
bt5/erp5_full_text_groonga_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z0_drop_fulltext.xml
...tem/portal_catalog/erp5_mysql_innodb/z0_drop_fulltext.xml
+64
-0
bt5/erp5_full_text_groonga_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z0_uncatalog_fulltext.catalog_keys.xml
.../erp5_mysql_innodb/z0_uncatalog_fulltext.catalog_keys.xml
+5
-0
bt5/erp5_full_text_groonga_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z0_uncatalog_fulltext.xml
...ortal_catalog/erp5_mysql_innodb/z0_uncatalog_fulltext.xml
+68
-0
bt5/erp5_full_text_groonga_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_catalog_fulltext_list.catalog_keys.xml
...rp5_mysql_innodb/z_catalog_fulltext_list.catalog_keys.xml
+5
-0
bt5/erp5_full_text_groonga_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_catalog_fulltext_list.xml
...tal_catalog/erp5_mysql_innodb/z_catalog_fulltext_list.xml
+82
-0
bt5/erp5_full_text_groonga_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_create_fulltext.catalog_keys.xml
...alog/erp5_mysql_innodb/z_create_fulltext.catalog_keys.xml
+5
-0
bt5/erp5_full_text_groonga_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_create_fulltext.xml
...em/portal_catalog/erp5_mysql_innodb/z_create_fulltext.xml
+80
-0
bt5/erp5_full_text_groonga_catalog/CatalogResultTableTemplateItem/result_table_list.xml
...alog/CatalogResultTableTemplateItem/result_table_list.xml
+3
-0
bt5/erp5_full_text_groonga_catalog/bt/change_log
bt5/erp5_full_text_groonga_catalog/bt/change_log
+2
-0
bt5/erp5_full_text_groonga_catalog/bt/copyright_list
bt5/erp5_full_text_groonga_catalog/bt/copyright_list
+1
-0
bt5/erp5_full_text_groonga_catalog/bt/description
bt5/erp5_full_text_groonga_catalog/bt/description
+1
-0
bt5/erp5_full_text_groonga_catalog/bt/license
bt5/erp5_full_text_groonga_catalog/bt/license
+1
-0
bt5/erp5_full_text_groonga_catalog/bt/provision_list
bt5/erp5_full_text_groonga_catalog/bt/provision_list
+1
-0
bt5/erp5_full_text_groonga_catalog/bt/revision
bt5/erp5_full_text_groonga_catalog/bt/revision
+1
-0
bt5/erp5_full_text_groonga_catalog/bt/template_catalog_full_text_key_list
...xt_groonga_catalog/bt/template_catalog_full_text_key_list
+2
-0
bt5/erp5_full_text_groonga_catalog/bt/template_catalog_method_id_list
...l_text_groonga_catalog/bt/template_catalog_method_id_list
+5
-0
bt5/erp5_full_text_groonga_catalog/bt/template_catalog_result_table_list
...ext_groonga_catalog/bt/template_catalog_result_table_list
+1
-0
bt5/erp5_full_text_groonga_catalog/bt/template_format_version
...erp5_full_text_groonga_catalog/bt/template_format_version
+1
-0
bt5/erp5_full_text_groonga_catalog/bt/title
bt5/erp5_full_text_groonga_catalog/bt/title
+1
-0
bt5/erp5_full_text_groonga_catalog/bt/version
bt5/erp5_full_text_groonga_catalog/bt/version
+1
-0
No files found.
bt5/erp5_full_text_groonga_catalog/CatalogFullTextKeyTemplateItem/full_text_key_list.xml
0 → 100644
View file @
d07637d3
<key_list>
<key>
SearchableText
</key>
<key>
full_text.SearchableText
</key>
</key_list>
\ No newline at end of file
bt5/erp5_full_text_groonga_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/SQLCatalog_makeFullTextQuery.catalog_keys.xml
0 → 100644
View file @
d07637d3
<catalog_method>
</catalog_method>
bt5/erp5_full_text_groonga_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/SQLCatalog_makeFullTextQuery.xml
0 → 100644
View file @
d07637d3
<?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>
bt5/erp5_full_text_groonga_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z0_drop_fulltext.catalog_keys.xml
0 → 100644
View file @
d07637d3
<catalog_method>
<item
key=
"sql_clear_catalog"
type=
"int"
>
<value>
1
</value>
</item>
</catalog_method>
bt5/erp5_full_text_groonga_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z0_drop_fulltext.xml
0 → 100644
View file @
d07637d3
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"SQL"
module=
"Products.ZSQLMethods.SQL"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
allow_simple_one_argument_traversal
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
arguments_src
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
cache_time_
</string>
</key>
<value>
<int>
0
</int>
</value>
</item>
<item>
<key>
<string>
class_file_
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
class_name_
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
connection_hook
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
connection_id
</string>
</key>
<value>
<string>
erp5_sql_connection
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
z0_drop_fulltext
</string>
</value>
</item>
<item>
<key>
<string>
max_cache_
</string>
</key>
<value>
<int>
100
</int>
</value>
</item>
<item>
<key>
<string>
max_rows_
</string>
</key>
<value>
<int>
1000
</int>
</value>
</item>
<item>
<key>
<string>
src
</string>
</key>
<value>
<string>
DROP TABLE IF EXISTS full_text
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_full_text_groonga_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z0_uncatalog_fulltext.catalog_keys.xml
0 → 100644
View file @
d07637d3
<catalog_method>
<item
key=
"sql_uncatalog_object"
type=
"int"
>
<value>
1
</value>
</item>
</catalog_method>
bt5/erp5_full_text_groonga_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z0_uncatalog_fulltext.xml
0 → 100644
View file @
d07637d3
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"SQL"
module=
"Products.ZSQLMethods.SQL"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
allow_simple_one_argument_traversal
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
arguments_src
</string>
</key>
<value>
<string>
uid
</string>
</value>
</item>
<item>
<key>
<string>
cache_time_
</string>
</key>
<value>
<int>
0
</int>
</value>
</item>
<item>
<key>
<string>
class_file_
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
class_name_
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
connection_hook
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
connection_id
</string>
</key>
<value>
<string>
erp5_sql_deferred_connection
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
z0_uncatalog_fulltext
</string>
</value>
</item>
<item>
<key>
<string>
max_cache_
</string>
</key>
<value>
<int>
100
</int>
</value>
</item>
<item>
<key>
<string>
max_rows_
</string>
</key>
<value>
<int>
1000
</int>
</value>
</item>
<item>
<key>
<string>
src
</string>
</key>
<value>
<string
encoding=
"cdata"
>
<![CDATA[
DELETE FROM full_text WHERE <dtml-sqltest uid op=eq type=int>
]]>
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_full_text_groonga_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_catalog_fulltext_list.catalog_keys.xml
0 → 100644
View file @
d07637d3
<catalog_method>
<item
key=
"sql_catalog_object_list"
type=
"int"
>
<value>
1
</value>
</item>
</catalog_method>
bt5/erp5_full_text_groonga_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_catalog_fulltext_list.xml
0 → 100644
View file @
d07637d3
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"SQL"
module=
"Products.ZSQLMethods.SQL"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
allow_simple_one_argument_traversal
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
arguments_src
</string>
</key>
<value>
<string>
uid\r\n
SearchableText
</string>
</value>
</item>
<item>
<key>
<string>
cache_time_
</string>
</key>
<value>
<int>
0
</int>
</value>
</item>
<item>
<key>
<string>
class_file_
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
class_name_
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
connection_hook
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
connection_id
</string>
</key>
<value>
<string>
erp5_sql_deferred_connection
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
z_catalog_fulltext_list
</string>
</value>
</item>
<item>
<key>
<string>
max_cache_
</string>
</key>
<value>
<int>
100
</int>
</value>
</item>
<item>
<key>
<string>
max_rows_
</string>
</key>
<value>
<int>
1000
</int>
</value>
</item>
<item>
<key>
<string>
src
</string>
</key>
<value>
<string
encoding=
"cdata"
>
<![CDATA[
REPLACE INTO\n
full_text\n
VALUES\n
<dtml-in prefix="loop" expr="_.range(_.len(uid))">
\n
(\n
<dtml-sqlvar
expr=
"uid[loop_item]"
type=
"int"
>
, \n
<dtml-sqlvar
expr=
"SearchableText[loop_item]"
type=
"string"
optional
>
\n
)\n
<dtml-if
sequence-end
>
\n
<dtml-else>
\n
,\n
</dtml-if>
\n
</dtml-in>
\n
]]>
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_full_text_groonga_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_create_fulltext.catalog_keys.xml
0 → 100644
View file @
d07637d3
<catalog_method>
<item
key=
"sql_clear_catalog"
type=
"int"
>
<value>
1
</value>
</item>
</catalog_method>
bt5/erp5_full_text_groonga_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_create_fulltext.xml
0 → 100644
View file @
d07637d3
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"SQL"
module=
"Products.ZSQLMethods.SQL"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_col
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
allow_simple_one_argument_traversal
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
arguments_src
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
cache_time_
</string>
</key>
<value>
<int>
0
</int>
</value>
</item>
<item>
<key>
<string>
class_file_
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
class_name_
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
connection_hook
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
connection_id
</string>
</key>
<value>
<string>
erp5_sql_connection
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
z_create_fulltext
</string>
</value>
</item>
<item>
<key>
<string>
max_cache_
</string>
</key>
<value>
<int>
100
</int>
</value>
</item>
<item>
<key>
<string>
max_rows_
</string>
</key>
<value>
<int>
1000
</int>
</value>
</item>
<item>
<key>
<string>
src
</string>
</key>
<value>
<string>
# Host:\n
# Database: test\n
# Table: \'full_text\'\n
#\n
CREATE TABLE `full_text` (\n
`uid` BIGINT UNSIGNED NOT NULL,\n
`SearchableText` MEDIUMTEXT,\n
PRIMARY KEY (`uid`),\n
FULLTEXT `SearchableText` (`SearchableText`)\n
) ENGINE=groonga;\n
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_full_text_groonga_catalog/CatalogResultTableTemplateItem/result_table_list.xml
0 → 100644
View file @
d07637d3
<key_list>
<key>
full_text
</key>
</key_list>
\ No newline at end of file
bt5/erp5_full_text_groonga_catalog/bt/change_log
0 → 100644
View file @
d07637d3
2011-11-01 kazuhiko
* initial commit that is quite close to erp5_full_text_myisam_catalog.
\ No newline at end of file
bt5/erp5_full_text_groonga_catalog/bt/copyright_list
0 → 100644
View file @
d07637d3
Copyright © 2011 Nexedi SA
\ No newline at end of file
bt5/erp5_full_text_groonga_catalog/bt/description
0 → 100644
View file @
d07637d3
This business template contains SQL methods etc. to use a groonga storage engine table as a fulltext storage.
\ No newline at end of file
bt5/erp5_full_text_groonga_catalog/bt/license
0 → 100644
View file @
d07637d3
GPL
\ No newline at end of file
bt5/erp5_full_text_groonga_catalog/bt/provision_list
0 → 100644
View file @
d07637d3
erp5_full_text_catalog
\ No newline at end of file
bt5/erp5_full_text_groonga_catalog/bt/revision
0 → 100644
View file @
d07637d3
1
\ No newline at end of file
bt5/erp5_full_text_groonga_catalog/bt/template_catalog_full_text_key_list
0 → 100644
View file @
d07637d3
SearchableText
full_text.SearchableText
\ No newline at end of file
bt5/erp5_full_text_groonga_catalog/bt/template_catalog_method_id_list
0 → 100644
View file @
d07637d3
erp5_mysql_innodb/SQLCatalog_makeFullTextQuery
erp5_mysql_innodb/z0_drop_fulltext
erp5_mysql_innodb/z0_uncatalog_fulltext
erp5_mysql_innodb/z_catalog_fulltext_list
erp5_mysql_innodb/z_create_fulltext
\ No newline at end of file
bt5/erp5_full_text_groonga_catalog/bt/template_catalog_result_table_list
0 → 100644
View file @
d07637d3
full_text
\ No newline at end of file
bt5/erp5_full_text_groonga_catalog/bt/template_format_version
0 → 100644
View file @
d07637d3
1
\ No newline at end of file
bt5/erp5_full_text_groonga_catalog/bt/title
0 → 100644
View file @
d07637d3
erp5_full_text_groonga_catalog
\ No newline at end of file
bt5/erp5_full_text_groonga_catalog/bt/version
0 → 100644
View file @
d07637d3
5.4.7
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment