Here's a sample search response for a query over an index alias ..
So the hit IDs in the search response would look like this ..
And because of this, the docID links on the UI wouldn't work either.
The fix is to decorate document hits for search responses from an index alias ..
- Strip collection bytes from the ID
- Add _$c to the hit.Fields, which is used to look up the source document by the document viewer.
|For Gerrit Dashboard: MB-48408|
|161275,1||MB-48408: Strip collection UID from hit IDs obtained for an index alias||master||cbft||Status: ABANDONED||0||+1|
|161276,3||MB-48408: Strip collection UID from hit IDs obtained for an index alias||cheshire-cat||cbft||Status: MERGED||+2||+1|
|161447,1||Merge remote-tracking branch 'couchbase/cheshire-cat'||master||cbft||Status: MERGED||+2||+1|
|161454,1||MB-48408: collID processing for multi-collection index alias||cheshire-cat||cbft||Status: ABANDONED||0||0|
|161455,2||MB-48408: collID processing for multi-collection index alias||cheshire-cat||cbft||Status: MERGED||+2||+1|
|161484,1||Merge remote-tracking branch 'couchbase/cheshire-cat'||master||cbft||Status: MERGED||+2||+1|