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
747a3ea7
Commit
747a3ea7
authored
Aug 12, 2013
by
Bas de Nooijer
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #188 from andrelemos/develop
Upgrade to beat the rule of solr ...
parents
c2eb9af5
5115cef0
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
library/Solarium/QueryType/Update/Query/Document/Document.php
...ary/Solarium/QueryType/Update/Query/Document/Document.php
+1
-1
library/Solarium/QueryType/Update/RequestBuilder.php
library/Solarium/QueryType/Update/RequestBuilder.php
+3
-0
No files found.
library/Solarium/QueryType/Update/Query/Document/Document.php
View file @
747a3ea7
...
...
@@ -199,7 +199,7 @@ class Document extends AbstractDocument implements DocumentInterface
*/
public
function
setField
(
$key
,
$value
,
$boost
=
null
,
$modifier
=
null
)
{
if
(
$value
===
null
)
{
if
(
$value
===
null
&&
$modifier
==
null
)
{
$this
->
removeField
(
$key
);
}
else
{
$this
->
fields
[
$key
]
=
$value
;
...
...
library/Solarium/QueryType/Update/RequestBuilder.php
View file @
747a3ea7
...
...
@@ -169,6 +169,9 @@ class RequestBuilder extends BaseRequestBuilder
$xml
=
'<field name="'
.
$name
.
'"'
;
$xml
.=
$this
->
attrib
(
'boost'
,
$boost
);
$xml
.=
$this
->
attrib
(
'update'
,
$modifier
);
if
(
$value
===
null
){
$xml
.=
$this
->
attrib
(
'null'
,
'true'
);
}
$xml
.=
'>'
.
htmlspecialchars
(
$value
,
ENT_NOQUOTES
,
'UTF-8'
);
$xml
.=
'</field>'
;
...
...
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