[MGNLEESOLR-73] Allow magnolia-content-indexer to crawl in password restricted content Created: 23/Jul/15 Updated: 06/Jul/16 Resolved: 29/Apr/16 |
|
| Status: | Closed |
| Project: | Solr Search Provider |
| Component/s: | None |
| Affects Version/s: | 2.2.1 |
| Fix Version/s: | 5.0.2 |
| Type: | Improvement | Priority: | Neutral |
| Reporter: | Richard Gange | Assignee: | Milan Divilek |
| Resolution: | Fixed | Votes: | 1 |
| Labels: | support | ||
| Remaining Estimate: | 0d | ||
| Time Spent: | 0.5h | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
||||||||
| Issue Links: |
|
||||||||
| Template: |
|
||||||||
| Acceptance criteria: |
Empty
|
||||||||
| Task DoD: |
[ ]*
Doc/release notes changes? Comment present?
[ ]*
Downstream builds green?
[ ]*
Solution information and context easily available?
[ ]*
Tests
[ ]*
FixVersion filled and not yet released
[ ] 
Architecture Decision Record (ADR)
|
||||||||
| Sprint: | Kromeriz 41 | ||||||||
| Story Points: | 3 | ||||||||
| Description |
|
In our customer project we have requirement to be able to search in restricted content and show results based on user role (multiple roles possible). Current implementation of Crawler4J allow developer to specify login credentials and login url to get "logged-in" cookie and crawl in restricted content. Unfortunatelly content-indexer module doesn't support that. To solve that problem we modified magnolia-content-indexer code: CrawlerConfig.java - added credentials and other fields to read from magnolia crawler configuration This is not the best solution, but we are not able to use multiple Solr collections out-of-the-box, so additional parameter in ID allow us to have duplicated records in Solr index. In search fields we have additional query parameter to check type based on logged-in user. We have also introduced some new config values in magnolia config (/modules/content-indexer/config/crawlers/ANY_CRAWLER) : authentication - boolean value if authentication is required for that crawler
I have attached configuration screenshot and modified classes. Please check if you can introduce something like this in new version of solr-search-module. |