-
Notifications
You must be signed in to change notification settings - Fork 594
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#3308 - Add fulltext search to redirect manager #3309
#3308 - Add fulltext search to redirect manager #3309
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #3309 +/- ##
============================================
- Coverage 55.34% 55.28% -0.06%
- Complexity 5543 5545 +2
============================================
Files 728 728
Lines 29705 29769 +64
Branches 3875 3880 +5
============================================
+ Hits 16440 16458 +18
- Misses 11722 11767 +45
- Partials 1543 1544 +1 ☔ View full report in Codecov by Sentry. |
@davidjgonzalez Thanks! It looks very cool. The original limit of 1000 is an overkill, we can surely drop it down to 100. I think the last touch would be to warn users if the Oak index is missing. I think we can catch the exception and show an alert. Can't we? |
@YegorKozlov I just made the page sizes (browse and search) configurable under Options; just incase someone likes the big pages. Wrt to the missing - no exception is thrown -- i believe a WARN is just logged (atleast if there are not MAX_TRAVERSE_RESULTS are not there) ... I think the only ways to check this is:
I updated the Options field for the checkbox, it display inline text stating an index is required. Open to other ideas .. just not sure there are any great ones. |
@YegorKozlov also - i originally was doing a jcr:contains fulltext search over the redirect row resource itself; however i could not figure out how to exclude the node name/path from the aggregate (yes - i tried excludeNodeName :)) .. .which is why it search on specific properties (which might be better anyhow?) |
bundle/src/main/java/com/adobe/acs/commons/redirects/models/Redirects.java
Outdated
Show resolved
Hide resolved
3432936
into
Adobe-Consulting-Services:master
This performs a fulltext search over:
For this to work the checkbox needs to be toggled on; and you need a supporting Oak index deployed (example below). If this is not checked, then it falls back to orginal search. When search is enabled, you cannot re-arrange rows.
I also made some cosmetic changes to the size of the table, and change the sling resource include for each row, to use the HTL template w/ RequestAttribute in SlingModel which i think speeds up the page rendering.
Oak index required