Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5-Boxiang
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Hamza
erp5-Boxiang
Commits
57f4f42c
Commit
57f4f42c
authored
Oct 27, 2014
by
Kazuhiko Shiozaki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
full_text: other comparison operators than match / match_boolean are handled by DefaultKey.
parent
55b7522c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
product/ZSQLCatalog/SearchKey/MroongaFullTextKey.py
product/ZSQLCatalog/SearchKey/MroongaFullTextKey.py
+5
-4
No files found.
product/ZSQLCatalog/SearchKey/MroongaFullTextKey.py
View file @
57f4f42c
...
@@ -26,6 +26,7 @@
...
@@ -26,6 +26,7 @@
#
#
##############################################################################
##############################################################################
from
DefaultKey
import
DefaultKey
from
FullTextKey
import
FullTextKey
from
FullTextKey
import
FullTextKey
from
Products.ZSQLCatalog.Query.SimpleQuery
import
SimpleQuery
from
Products.ZSQLCatalog.Query.SimpleQuery
import
SimpleQuery
from
Products.ZSQLCatalog.interfaces.search_key
import
ISearchKey
from
Products.ZSQLCatalog.interfaces.search_key
import
ISearchKey
...
@@ -89,10 +90,10 @@ class MroongaFullTextKey(FullTextKey):
...
@@ -89,10 +90,10 @@ class MroongaFullTextKey(FullTextKey):
append
(
SimpleQuery
(
search_key
=
self
,
append
(
SimpleQuery
(
search_key
=
self
,
comparison_operator
=
'match_boolean'
,
comparison_operator
=
'match_boolean'
,
group
=
group
,
**
{
column
:
fulltext_query
}))
group
=
group
,
**
{
column
:
fulltext_query
}))
for
comparison_operator
,
value_list
in
operator_value_dict
.
iteritems
():
# other comparison operators are handled by DefaultKey.
append
(
SimpleQuery
(
search_key
=
self
,
if
operator_value_dict
:
comparison_operator
=
comparison_operator
,
query_list
+=
DefaultKey
.
_buildQuery
(
group
=
group
,
**
{
column
:
' '
.
join
(
value_list
)})
)
self
,
operator_value_dict
,
logical_operator
,
parsed
,
group
)
return
query_list
return
query_list
verifyClass
(
ISearchKey
,
MroongaFullTextKey
)
verifyClass
(
ISearchKey
,
MroongaFullTextKey
)
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