fixed guid bugs
This commit is contained in:
parent
2b6eb201a9
commit
0779cfe397
3 changed files with 10 additions and 9 deletions
|
|
@ -1,5 +1,6 @@
|
||||||
6.2.3
|
6.2.3
|
||||||
- Changed to new POD format.
|
- Changed to new POD format.
|
||||||
|
- Fixed GUID related bugs in search indexer and passive profiling.
|
||||||
|
|
||||||
|
|
||||||
6.2.2
|
6.2.2
|
||||||
|
|
|
||||||
|
|
@ -112,7 +112,7 @@ sub summarizeAOI {
|
||||||
d.value
|
d.value
|
||||||
from metaData_values d , metaData_properties f
|
from metaData_values d , metaData_properties f
|
||||||
where f.fieldId = d.fieldId
|
where f.fieldId = d.fieldId
|
||||||
and d.wobjectId = ".$data->{wobjectId};
|
and d.wobjectId = ".quote($data->{wobjectId});
|
||||||
|
|
||||||
my $sth = WebGUI::SQL->read($sql);
|
my $sth = WebGUI::SQL->read($sql);
|
||||||
while (my $field = $sth->hashRef) {
|
while (my $field = $sth->hashRef) {
|
||||||
|
|
|
||||||
|
|
@ -106,8 +106,8 @@ sub getIndexerParams {
|
||||||
fieldsToIndex => ["synopsis" , "title"],
|
fieldsToIndex => ["synopsis" , "title"],
|
||||||
contentType => 'page',
|
contentType => 'page',
|
||||||
url => '$data{urlizedTitle}',
|
url => '$data{urlizedTitle}',
|
||||||
headerShortcut => 'select title from page where pageId = $data{pageId}',
|
headerShortcut => 'select title from page where pageId = \'$data{pageId}\'',
|
||||||
bodyShortcut => 'select synopsis from page where pageId = $data{pageId}',
|
bodyShortcut => 'select synopsis from page where pageId = \'$data{pageId}\'',
|
||||||
},
|
},
|
||||||
wobject => {
|
wobject => {
|
||||||
sql => "select wobject.namespace as namespace,
|
sql => "select wobject.namespace as namespace,
|
||||||
|
|
@ -130,8 +130,8 @@ sub getIndexerParams {
|
||||||
fieldsToIndex => ["title", "description"],
|
fieldsToIndex => ["title", "description"],
|
||||||
contentType => 'wobject',
|
contentType => 'wobject',
|
||||||
url => '$data{urlizedTitle}."#".$data{wid}',
|
url => '$data{urlizedTitle}."#".$data{wid}',
|
||||||
headerShortcut => 'select title from wobject where wobjectId = $data{wid}',
|
headerShortcut => 'select title from wobject where wobjectId = \'$data{wid}\'',
|
||||||
bodyShortcut => 'select description from wobject where wobjectId = $data{wid}',
|
bodyShortcut => 'select description from wobject where wobjectId = \'$data{wid}\'',
|
||||||
},
|
},
|
||||||
wobjectDiscussion => {
|
wobjectDiscussion => {
|
||||||
sql => "select forumPost.forumPostId,
|
sql => "select forumPost.forumPostId,
|
||||||
|
|
@ -159,8 +159,8 @@ sub getIndexerParams {
|
||||||
fieldsToIndex => ["username", "subject", "message"],
|
fieldsToIndex => ["username", "subject", "message"],
|
||||||
contentType => 'discussion',
|
contentType => 'discussion',
|
||||||
url => 'WebGUI::URL::append($data{urlizedTitle},"func=view&wid=$data{wid}&forumId=$data{forumId}&forumOp=viewThread&forumPostId=$data{forumPostId}")',
|
url => 'WebGUI::URL::append($data{urlizedTitle},"func=view&wid=$data{wid}&forumId=$data{forumId}&forumOp=viewThread&forumPostId=$data{forumPostId}")',
|
||||||
headerShortcut => 'select subject from forumPost where forumPostId = $data{forumPostId}',
|
headerShortcut => 'select subject from forumPost where forumPostId = \'$data{forumPostId}\'',
|
||||||
bodyShortcut => 'select message from forumPost where forumPostId = $data{forumPostId}',
|
bodyShortcut => 'select message from forumPost where forumPostId = \'$data{forumPostId}\'',
|
||||||
},
|
},
|
||||||
userProfileData => {
|
userProfileData => {
|
||||||
sql => "select distinct(userProfileData.userId),
|
sql => "select distinct(userProfileData.userId),
|
||||||
|
|
@ -184,11 +184,11 @@ sub getIndexerParams {
|
||||||
and userProfileField.visible=1
|
and userProfileField.visible=1
|
||||||
and userProfileData.fieldName = userProfileField.fieldName
|
and userProfileData.fieldName = userProfileField.fieldName
|
||||||
and fieldData <> ''
|
and fieldData <> ''
|
||||||
and userProfileData.userId = $data{userId}
|
and userProfileData.userId = \'$data{userId}\'
|
||||||
/ ],
|
/ ],
|
||||||
url => '"?op=viewProfile&uid=$data{userId}"',
|
url => '"?op=viewProfile&uid=$data{userId}"',
|
||||||
contentType => 'profile',
|
contentType => 'profile',
|
||||||
headerShortcut => 'select username from users where userId = $data{userId}',
|
headerShortcut => 'select username from users where userId = \'$data{userId}\'',
|
||||||
#bodyShortcut => q/select concat(fieldName,': ',fieldData) from userProfileData where userId = $data{userId}/
|
#bodyShortcut => q/select concat(fieldName,': ',fieldData) from userProfileData where userId = $data{userId}/
|
||||||
bodyShortcut => '$textToIndex',
|
bodyShortcut => '$textToIndex',
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue