0
是否可以像OR條件那樣做AND條件?思維與獅身人面像中的AND和OR條件
這是我簡單的獅身人面像的查詢只AND
...
Job.search('', {with: {canonical_type: Zlib::crc32('SubCategory')}, conditions: { sub_category_ids: [4]}})
Sphinx Query (22.8ms) SELECT * FROM `job_core`, `job_delta` WHERE MATCH('@sub_category_ids [4]') AND `canonical_type` = 1916160457 AND `sphinx_deleted` = 0 LIMIT 0, 20 OPTION max_matches=50000
Sphinx Found 1 results
我想補充的或者......像......
WHERE (MATCH('@sub_category_ids [4]') AND `canonical_type` = 1916160457 OR MATCH('@sub_category_ids [4]') AND `canonical_type` = 4282022807)
這樣我就可以搜索不同canonical_type
的ID。
不知道如何去思考獅身人面像。
謝謝!