added search indexer
This commit is contained in:
parent
cb5e059b2e
commit
fd3fb924f3
12 changed files with 214 additions and 16 deletions
|
|
@ -28,6 +28,7 @@ use WebGUI::AdminConsole;
|
|||
use WebGUI::Cache;
|
||||
use WebGUI::Form;
|
||||
use WebGUI::HTMLForm;
|
||||
use WebGUI::Search::Index;
|
||||
use WebGUI::TabForm;
|
||||
use WebGUI::Utility;
|
||||
|
||||
|
|
@ -741,18 +742,6 @@ sub getImportNode {
|
|||
return WebGUI::Asset->newByDynamicClass($session, "PBasset000000000000002");
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
||||
=head2 getIndexerParams ( )
|
||||
|
||||
Override this method and return a hash reference that includes the properties necessary to index the content of the wobject.
|
||||
Currently does nothing.
|
||||
|
||||
=cut
|
||||
|
||||
sub getIndexerParams {
|
||||
return {};
|
||||
}
|
||||
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
|
@ -993,6 +982,20 @@ sub getValue {
|
|||
}
|
||||
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
||||
=head2 indexContent ( )
|
||||
|
||||
Returns an indexer object for this asset. When this method is called the asset's base content gets stored in the index. This method is often overloaded so that a particular asset can insert additional content other than the basic properties. Such uses include indexing attached files or collateral data.
|
||||
|
||||
=cut
|
||||
|
||||
sub indexContent {
|
||||
my $self = shift;
|
||||
return WebGUI::Search::Index->create($self);
|
||||
}
|
||||
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
||||
=head2 new ( session, assetId [, className, revisionDate ] )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue