Hi,
I am trying to implement a CQ(5.4) search where the search text provided by user has to go through a validation to check whether the user has entered three meaning full words. A word is said to be meaningful if it is not a stop word.
I have seen in previous posts that CQ doesn't come with stop words enabled search functionality, so I have added standard analyzer in search-index tag of repository.xml and workspace.xml. So now CQ is filtering out stop words from search.
Now, I need to get the stop words list used by CQ/jacrabbit while searching to validate the search text provided by user.
I understood that Standard analyzer(used in search-index) has a ENGLISH_STOPWORDS array which holds the stop words list, but I am not sure how to get the analyzer used in search-index tag in java/jsp programatically.
If any one can tell me how I can get the instance of search-index or analyzer instance used by CQ while searching, it would be of great help.
Thanks.