Liferay boolean query for searching
By default liferay supports lucene, so how to retrieve entries Code as follows , BooleanQuery fullQuery = BooleanQueryFactoryUtil.create(searchContext); BooleanQuery searchQuery = BooleanQueryFactoryUtil.create(searchContext); Searching the blog searchQuery.addRequiredTerm(Field.ENTRY_CLASS_NAME, BlogsEntry.class.getName()); Adding required terms to search query searchQuery.addRequiredTerm(Field.ASSET_CATEGORY_IDS, CategoryId); fullQuery.add(searchQuery, BooleanClauseOccur.MUST); Adding optional terms where the content should belong to at lease one of these categories BooleanQuery categ...