누군가가 기본 검색을 도와 줄 수 있습니까? 나는 그것을 알아낼 수 없다. 1 단어를 입력 할 때만 내 검색이 작동합니다. 하지만 2,3,4, ... 단어를 입력하면 작동하지 않습니다.Symfony/Doctrine - 검색
예 : I는 입력을 검색 입력하면 POLYKARBONÁTOVÉ POUZDRO NA MACBOOK (맥북에 대한 폴리 카보네이트 커버)
그냥 "pouzdro는"그것은 모든 덮개를 반환합니다. "Polykarbonátové pouzdro"라고 입력하면 아무 것도 반환하지 않습니다. "Polykarbonátové"를 입력하면 아무 것도 반환하지 않습니다. 로그에서 쿼리 (내가 PostgreSQL을 사용하고 있습니다) : 그래서
[2016-10-26 16:47:11] doctrine.DEBUG: SELECT p0_.id AS id_0, p0_.serial_number AS serial_number_1, p0_.title AS title_2, p0_.url AS url_3, p0_.note AS note_4, p0_.views AS views_5, p0_.price AS price_6, p0_.bought_price AS bought_price_7, p0_.old_price AS old_price_8, p0_.is_active AS is_active_9, p0_.is_accessory AS is_accessory_10, p0_.is_special AS is_special_11, p0_.quantity AS quantity_12, p0_.created_at AS created_at_13, p0_.updated_at AS updated_at_14, p0_.details_id AS details_id_15, p0_.accessory_category_id AS accessory_category_id_16 FROM products p0_ WHERE p0_.title LIKE ? ["%polykarbonatove%"] []
[2016-10-26 16:53:52] doctrine.DEBUG: SELECT p0_.id AS id_0, p0_.serial_number AS serial_number_1, p0_.title AS title_2, p0_.url AS url_3, p0_.note AS note_4, p0_.views AS views_5, p0_.price AS price_6, p0_.bought_price AS bought_price_7, p0_.old_price AS old_price_8, p0_.is_active AS is_active_9, p0_.is_accessory AS is_accessory_10, p0_.is_special AS is_special_11, p0_.quantity AS quantity_12, p0_.created_at AS created_at_13, p0_.updated_at AS updated_at_14, p0_.details_id AS details_id_15, p0_.accessory_category_id AS accessory_category_id_16 FROM products p0_ WHERE p0_.title LIKE ? AND p0_.title LIKE ? ["%polykarbonatove%","%pouzdro%"] []
나는 내 질문을 편집했습니다. –