Content search doesn't return results for indexinghint=exact atoms
You search content but do not get any results although you have the content. The search should return a value for an atom which has indexinghint="exact."
You used the SearchService.createQuery method.
Use SearchService.createExactQuery instead of SearchService.createQuery.
SearchService ss = ServiceManager.getSearchService(); Query q = ss.createExactQuery(ticket, "word1_word2"); ResultSet res = q.execute();
This issue occurs when the word that is indexed has a special character in it (for example an underscore). When you use the createQuery method, CQ parses the search term into different words (in the underscore case) and searches in the index. However, since your atom is indexed as an exact string, the query doesn't return any results.
Увійдіть до облікового запису