Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
Exclude folder from search
Hi All,
I have created IndexerPostProcessor project. In my code I have overriden below method
public void postProcessFullQuery(BooleanQuery fullQuery,
SearchContext searchContext) throws Exception {
}
I want to exclude all the folders in the search result. How can I alter the query?
Environment :
Liferay 7 / elastic search
Regards
Hamidul Islam