Update of /cvsroot/openinteract/OpenInteract2/doc/Manual
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3524/Manual
Modified Files:
SearchResults.pod
Log Message:
inline search results examples
Index: SearchResults.pod
===================================================================
RCS file: /cvsroot/openinteract/OpenInteract2/doc/Manual/SearchResults.pod,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** SearchResults.pod 14 Jul 2004 01:34:49 -0000 1.6
--- SearchResults.pod 30 Nov 2004 02:14:17 -0000 1.7
***************
*** 22,26 ****
L<OpenInteract2::ResultsIterator|OpenInteract2::ResultsIterator>,
which is an implementation of L<SPOPS::Iterator|SPOPS::Iterator> that
! works with the first class to get results one at a time.
=head2 Example
--- 22,26 ----
L<OpenInteract2::ResultsIterator|OpenInteract2::ResultsIterator>,
which is an implementation of L<SPOPS::Iterator|SPOPS::Iterator> that
! works with the first class to kick out results one at a time.
=head2 Example
***************
*** 29,42 ****
(it doesn't matter what this is) and serialize them:
! [% INCLUDE examples/searchres_save_search | indent 4 %]
Next, we'll use that same search ID to retrieve the resultset and get
the first 50 entries back:
! [% INCLUDE examples/searchres_retrieve_first | indent 4 %]
Later we'll retrieve results 51 to 100 from the resultset:
! [% INCLUDE examples/searchres_retrieve_second | indent 4 %]
=head1 SEE ALSO
--- 29,52 ----
(it doesn't matter what this is) and serialize them:
! my $object_list = perform_search( ... );
! my $results = OpenInteract2::ResultsManage->new();
! my $search_id = $results->save( $object_list );
Next, we'll use that same search ID to retrieve the resultset and get
the first 50 entries back:
! my $search_id = $request->param( 'search_id' );
! my $results = OpenInteract2::ResultsManage->new({
! search_id => $search_id
! });
! my $iterator = $results->retrieve({ max => 50 });
Later we'll retrieve results 51 to 100 from the resultset:
! my $search_id = $request->param( 'search_id' );
! my $results = OpenInteract2::ResultsManage->new({
! search_id => $search_id
! });
! my $iterator = $results->retrieve({ min => 51, max => 100 });
=head1 SEE ALSO
|