Skip to content

Filter by multiple person cause always empty result #696

@rhp-geisela

Description

@rhp-geisela
Q A
Bug? Yes
New Feature? no
SuluArticleBundle Version 2.6.1

If you want to filter articles by person, the result is always empty.

I think the problem is related to the used MatchQuery at ArticleController.php#L296.

Shouldn't this be like this?

$contactIds = explode(',', $filter['contactId']);
$boolQuery = new BoolQuery();
$boolQuery->add(new TermsQuery('changer_contact_id', $contactIds), BoolQuery::SHOULD);
$boolQuery->add(new TermsQuery('creator_contact_id', $contactIds), BoolQuery::SHOULD);
$boolQuery->add(new TermsQuery('author_id', $contactIds), BoolQuery::SHOULD);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions