Hello,
i am trying to search for a group of articles using the method
1
2List<JournalArticle> results = JournalArticleLocalServiceUtil.search(
3 themeDisplay.getCompanyId(),
4 themeDisplay.getScopeGroupId(),
5 0,
6 null,
7 null,
8 null,
9 "MY_STRUCTURE",
10 "MY_TEMPLATE",
11 startDateTime.toDate(), // startDate
12 endDateTime.toDate(), // endDate
13 0,
14 null,
15 QueryUtil.ALL_POS,
16 QueryUtil.ALL_POS,
17 null);
and this works fine, with an AND operator between all given values.
If I want to add some keywords (I have to search in the content, because I have a structure), then hard coded, the AND operator in the resulting SQL will change to a OR operator.
Is there a way to avoid this change? I need to filter my data in the SQL layer, so the keywords would be fine, only if there was also an AND operator.
Thank you in advance.