Updated Search Indexer definition
This commit is contained in:
parent
076715697e
commit
8e52f79717
1 changed files with 24 additions and 39 deletions
|
|
@ -258,50 +258,35 @@ sub getIndexerParams {
|
||||||
sql => "select DataForm_field.label as label,
|
sql => "select DataForm_field.label as label,
|
||||||
DataForm_field.subtext as subtext,
|
DataForm_field.subtext as subtext,
|
||||||
DataForm_field.possibleValues as possibleValues,
|
DataForm_field.possibleValues as possibleValues,
|
||||||
DataForm_field.wobjectId as wid,
|
DataForm_field.assetId as assetId,
|
||||||
DataForm_field.DataForm_fieldId as fid,
|
DataForm_field.DataForm_fieldId as fid,
|
||||||
wobject.namespace as namespace,
|
asset.ownerUserId as ownerId,
|
||||||
wobject.addedBy as ownerId,
|
asset.url as url,
|
||||||
page.urlizedTitle as urlizedTitle,
|
asset.groupIdView as groupIdView
|
||||||
page.languageId as languageId,
|
from DataForm_field, asset
|
||||||
page.pageId as pageId,
|
where DataForm_field.assetId = asset.assetId
|
||||||
page.groupIdView as page_groupIdView,
|
and asset.startDate < $now
|
||||||
wobject.groupIdView as wobject_groupIdView,
|
and asset.endDate > $now",
|
||||||
7 as wobject_special_groupIdView
|
|
||||||
from DataForm_field, wobject, page
|
|
||||||
where DataForm_field.wobjectId = wobject.wobjectId
|
|
||||||
and wobject.pageId = page.pageId
|
|
||||||
and wobject.startDate < $now
|
|
||||||
and wobject.endDate > $now
|
|
||||||
and page.startDate < $now
|
|
||||||
and page.endDate > $now",
|
|
||||||
fieldsToIndex => ["label", "subtext", "possibleValues"],
|
fieldsToIndex => ["label", "subtext", "possibleValues"],
|
||||||
contentType => 'wobjectDetail',
|
contentType => 'assetDetail',
|
||||||
url => '$data{urlizedTitle}."#".$data{wid}',
|
url => 'WebGUI::URL::gateway($data{url})',
|
||||||
headerShortcut => 'select label from DataForm_field where DataForm_fieldId = \'$data{fid}\'',
|
headerShortcut => 'select label from DataForm_field where DataForm_fieldId = \'$data{fid}\'',
|
||||||
bodyShortcut => 'select subtext from DataForm_field where DataForm_fieldId = \'$data{fid}\'',
|
bodyShortcut => 'select subtext, possibleValues from DataForm_field where DataForm_fieldId = \'$data{fid}\'',
|
||||||
},
|
},
|
||||||
DataForm_entryData => {
|
DataForm_entryData => {
|
||||||
sql => "select distinct(DataForm_entryData.wobjectId) as wid,
|
sql => "select distinct(DataForm_entryData.assetId) as assetId,
|
||||||
wobject.namespace as namespace,
|
asset.ownerUserId as ownerId,
|
||||||
wobject.addedBy as ownerId,
|
asset.url as url,
|
||||||
page.urlizedTitle as urlizedTitle,
|
asset.groupIdView as groupIdView,
|
||||||
page.languageId as languageId,
|
asset.groupIdEdit as special_groupIdView
|
||||||
page.pageId as pageId,
|
from DataForm_entryData, asset
|
||||||
page.groupIdView as page_groupIdView,
|
where DataForm_entryData.assetId = asset.assetId
|
||||||
wobject.groupIdView as wobject_groupIdView,
|
and asset.startDate < $now
|
||||||
wobject.groupIdEdit as wobject_special_groupIdView
|
and asset.endDate > $now",
|
||||||
from DataForm_entryData, wobject, page
|
fieldsToIndex => ['select distinct(value) from DataForm_entryData where assetId = \'$data{assetIid}\''],
|
||||||
where DataForm_entryData.wobjectId = wobject.wobjectId
|
contentType => 'assetDetail',
|
||||||
and wobject.pageId = page.pageId
|
url => 'WebGUI::URL::append($data{url}, "func=view&entryId=list}")',
|
||||||
and wobject.startDate < $now
|
headerShortcut => 'select title from asset where assetId = \'$data{assetId}\'',
|
||||||
and wobject.endDate > $now
|
|
||||||
and page.startDate < $now
|
|
||||||
and page.endDate > $now",
|
|
||||||
fieldsToIndex => ['select distinct(value) from DataForm_entryData where wobjectId = \'$data{wid}\''],
|
|
||||||
contentType => 'wobjectDetail',
|
|
||||||
url => 'WebGUI::URL::append($data{urlizedTitle}, "func=view&entryId=list&wid=$data{wid}")',
|
|
||||||
headerShortcut => 'select title from wobject where wobjectId = \'$data{wid}\'',
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue