Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
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
alecs_myu
erp5
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 @@
#
##############################################################################
from
DefaultKey
import
DefaultKey
from
FullTextKey
import
FullTextKey
from
Products.ZSQLCatalog.Query.SimpleQuery
import
SimpleQuery
from
Products.ZSQLCatalog.interfaces.search_key
import
ISearchKey
...
...
@@ -89,10 +90,10 @@ class MroongaFullTextKey(FullTextKey):
append
(
SimpleQuery
(
search_key
=
self
,
comparison_operator
=
'match_boolean'
,
group
=
group
,
**
{
column
:
fulltext_query
}))
for
comparison_operator
,
value_list
in
operator_value_dict
.
iteritems
():
append
(
SimpleQuery
(
search_key
=
self
,
comparison_operator
=
comparison_operator
,
group
=
group
,
**
{
column
:
' '
.
join
(
value_list
)})
)
# other comparison operators are handled by DefaultKey.
if
operator_value_dict
:
query_list
+=
DefaultKey
.
_buildQuery
(
self
,
operator_value_dict
,
logical_operator
,
parsed
,
group
)
return
query_list
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