Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
erp5_rtl_support
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Romain Courteaud
erp5_rtl_support
Commits
016dbc15
Commit
016dbc15
authored
Sep 29, 2014
by
Tristan Cavelier
Committed by
Kazuhiko Shiozaki
Oct 23, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add a hack to allow `*` and `~` characters in fulltext search
parent
1e2fd051
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
product/ERP5/bootstrap/erp5_mysql_innodb_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/SQLCatalog_makeDescriptionFullTextQuery.xml
..._mysql_innodb/SQLCatalog_makeDescriptionFullTextQuery.xml
+1
-1
product/ERP5/bootstrap/erp5_mysql_innodb_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/SQLCatalog_makeTitleFullTextQuery.xml
...g/erp5_mysql_innodb/SQLCatalog_makeTitleFullTextQuery.xml
+2
-1
No files found.
product/ERP5/bootstrap/erp5_mysql_innodb_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/SQLCatalog_makeDescriptionFullTextQuery.xml
View file @
016dbc15
...
...
@@ -55,7 +55,7 @@
"""\n
from Products.ZSQLCatalog.SQLCatalog import SimpleQuery\n
\n
query = SimpleQuery(**{\'catalog_full_text.fulltext_description\': \'*D+ %s\' % value, \'comparison_operator\': \'match_boolean\'} )\n
query = SimpleQuery(**{\'catalog_full_text.fulltext_description\': \'*D+ %s\' % value
.replace(r\'*\', r\'\\*\').replace(r\'~\', r\'\\~\')
, \'comparison_operator\': \'match_boolean\'} )\n
return query\n
</string>
</value>
</item>
...
...
product/ERP5/bootstrap/erp5_mysql_innodb_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/SQLCatalog_makeTitleFullTextQuery.xml
View file @
016dbc15
...
...
@@ -55,7 +55,8 @@
"""\n
from Products.ZSQLCatalog.SQLCatalog import SimpleQuery\n
\n
query = SimpleQuery(**{\'catalog_full_text.fulltext_title\': \'*D+ %s\' % value, \'comparison_operator\': \'match_boolean\'} )\n
query = SimpleQuery(**{\'catalog_full_text.fulltext_title\': \'*D+ %s\' % value.replace(r\'*\', r\'\\*\').replace(r\'~\', r\'\\~\'), \'comparison_operator\': \'match_boolean\'} )\n
\n
return query\n
</string>
</value>
</item>
...
...
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