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
1597eee7
Commit
1597eee7
authored
Nov 04, 2014
by
Emanuele Panzeri
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added ExtractOnly parameter for Extractor Handler
parent
e4e93eba
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
0 deletions
+21
-0
library/Solarium/QueryType/Extract/Query.php
library/Solarium/QueryType/Extract/Query.php
+20
-0
library/Solarium/QueryType/Extract/RequestBuilder.php
library/Solarium/QueryType/Extract/RequestBuilder.php
+1
-0
No files found.
library/Solarium/QueryType/Extract/Query.php
View file @
1597eee7
...
...
@@ -72,6 +72,7 @@ class Query extends BaseQuery
'resultclass'
=>
'Solarium\QueryType\Extract\Result'
,
'documentclass'
=>
'Solarium\QueryType\Update\Query\Document\Document'
,
'omitheader'
=>
true
,
'extractonly'
=>
false
,
);
/**
...
...
@@ -387,6 +388,25 @@ class Query extends BaseQuery
return
$this
->
getOption
(
'documentclass'
);
}
/**
* Set the ExtractOnly parameter of SOLR Extraction Handler
*
* @param bool $value
* @return self Provides fluent interface
*/
public
function
setExtractOnly
(
$value
)
{
return
$this
->
setOption
(
'extractonly'
,
(
bool
)
$value
);
}
/**
* Get the ExtractOnly parameter of SOLR Extraction Handler
*
* @return boolean
*/
public
function
getExtractOnly
()
{
return
$this
->
getOption
(
'extractonly'
);
}
/**
* Create a document object instance
*
...
...
library/Solarium/QueryType/Extract/RequestBuilder.php
View file @
1597eee7
...
...
@@ -75,6 +75,7 @@ class RequestBuilder extends BaseRequestBuilder
$request
->
addParam
(
'uprefix'
,
$query
->
getUprefix
());
$request
->
addParam
(
'lowernames'
,
$query
->
getLowernames
());
$request
->
addParam
(
'defaultField'
,
$query
->
getDefaultField
());
$request
->
addParam
(
'extractOnly'
,
$query
->
getExtractOnly
());
foreach
(
$query
->
getFieldMappings
()
as
$fromField
=>
$toField
)
{
$request
->
addParam
(
'fmap.'
.
$fromField
,
$toField
);
...
...
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