Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
S
solarium
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
common
solarium
Commits
bf7fa1c2
Commit
bf7fa1c2
authored
Feb 14, 2012
by
Bas de Nooijer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Comment fix
parent
c04a677b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
examples/7.6-plugin-prefetchiterator.php
examples/7.6-plugin-prefetchiterator.php
+1
-1
No files found.
examples/7.6-plugin-prefetchiterator.php
View file @
bf7fa1c2
...
...
@@ -12,7 +12,7 @@ $query->setFields(array('id'));
// get a plugin instance and apply settings
$prefetch
=
$client
->
getPlugin
(
'prefetchiterator'
);
$prefetch
->
setPrefetch
(
2
);
//fetch
5
rows per query (for real world use this can be way higher)
$prefetch
->
setPrefetch
(
2
);
//fetch
2
rows per query (for real world use this can be way higher)
$prefetch
->
setQuery
(
$query
);
// display the total number of documents found by solr
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment