diff --git a/lib/search.js b/lib/search.js index 0292043..e3b20e4 100644 --- a/lib/search.js +++ b/lib/search.js @@ -369,13 +369,20 @@ this.Searcher = (function() { var name = column.getName(); var join = column.getJoin(); var value = result.getValue(column); + var text = result.getText(column); var joinTitle = join; if (join) { if(!(joinTitle in newResult.columns)) newResult.columns[joinTitle] = {}; newResult.columns[joinTitle][name] = value; + if(text && text !== value) { + newResult.columns[joinTitle][name + '.text'] = text; + } } else { newResult.columns[name] = value; + if(text && text !== value) { + newResult.columns[name + '.text'] = text; + } } } newResultsBlock.push(newResult);