Commit aa647e79 authored by Ivan Tyagov's avatar Ivan Tyagov

With sphinx based "full text" search full text table change its type from...

With sphinx based "full text" search full text table change its type from "MyISAM" to "InnoDB" (i.e. not possible use MySQL's built in full text search).
Adjust respective ZSQL Methods to use sphinx instead.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@44421 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 7569b342
<?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>reference\n
</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>ZSQLCatalog.zsqlbrain</string> </value>
</item>
<item>
<key> <string>class_name_</string> </key>
<value> <string>ZSQLBrain</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>Base_zGetImplicitPredecessorValueList</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>0</int> </value>
</item>
<item>
<key> <string>src</string> </key>
<value> <string encoding="cdata"><![CDATA[
SET @current_path = NULL; <dtml-var sql_delimiter>\n
SET @current_reference = NULL; <dtml-var sql_delimiter>\n
\n
<dtml-let query="portal_catalog.buildSQLQuery(query=portal_catalog.getSecurityQuery(), portal_type=getPortalDocumentTypeList())">\n
<dtml-let user_language="Localizer.get_selected_language()">\n
\n
SELECT path, uid\n
FROM\n
(\n
SELECT DISTINCT\n
path,\n
(select uid from catalog where catalog.path=sub.path) as uid\n
FROM\n
( SELECT\n
@current_path:=IF(@current_reference = reference, @current_path, path) AS path,\n
@current_reference:=reference AS reference\n
FROM (\n
SELECT\n
reference,\n
path,\n
catalog.uid,\n
CASE language WHEN <dtml-sqlvar user_language type=string> THEN 1 WHEN \'en\' THEN 0 ELSE -1 END as language_order\n
FROM\n
catalog, versioning, sphinxse_index\n
WHERE\n
catalog.uid = versioning.uid\n
AND\n
catalog.uid = sphinxse_index.uid\n
<dtml-if "query[\'where_expression\']">\n
AND <dtml-var "query[\'where_expression\']">\n
</dtml-if>\n
AND\n
sphinxse_index.sphinxse_query="<dtml-sqlvar reference type=string>;mode=ext2"\n
AND\n
<dtml-sqltest reference op=ne type=string>\n
ORDER BY reference, language_order DESC, version DESC, revision DESC\n
) AS innersub\n
)\n
AS sub\n
)\n
AS main\n
WHERE\n
<dtml-sqltest "getUid()" column=uid op=ne type=int>\n
LIMIT 1000\n
\n
</dtml-let>\n
</dtml-let>\n
]]></string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
14
\ No newline at end of file
15
\ No newline at end of file
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