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
e1e34a59
Commit
e1e34a59
authored
Apr 18, 2011
by
Bas de Nooijer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- code style fixes
parent
1bb6ec64
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
library/Solarium/Client/Request/Update.php
library/Solarium/Client/Request/Update.php
+1
-2
library/Solarium/Query/Update.php
library/Solarium/Query/Update.php
+3
-1
No files found.
library/Solarium/Client/Request/Update.php
View file @
e1e34a59
...
@@ -129,8 +129,7 @@ class Solarium_Client_Request_Update extends Solarium_Client_Request
...
@@ -129,8 +129,7 @@ class Solarium_Client_Request_Update extends Solarium_Client_Request
foreach
(
$doc
->
getFields
()
AS
$name
=>
$value
)
{
foreach
(
$doc
->
getFields
()
AS
$name
=>
$value
)
{
$boost
=
$doc
->
getFieldBoost
(
$name
);
$boost
=
$doc
->
getFieldBoost
(
$name
);
if
(
is_array
(
$value
))
if
(
is_array
(
$value
))
{
{
foreach
(
$value
AS
$multival
)
{
foreach
(
$value
AS
$multival
)
{
$xml
.=
$this
->
_buildFieldXml
(
$name
,
$boost
,
$multival
);
$xml
.=
$this
->
_buildFieldXml
(
$name
,
$boost
,
$multival
);
}
}
...
...
library/Solarium/Query/Update.php
View file @
e1e34a59
...
@@ -94,7 +94,9 @@ class Solarium_Query_Update extends Solarium_Query
...
@@ -94,7 +94,9 @@ class Solarium_Query_Update extends Solarium_Query
$command
=
new
Solarium_Query_Update_Command_Rollback
(
$value
);
$command
=
new
Solarium_Query_Update_Command_Rollback
(
$value
);
break
;
break
;
case
'add'
:
case
'add'
:
throw
new
Solarium_Exception
(
"Adding documents is not supported in configuration, use the API for this"
);
throw
new
Solarium_Exception
(
"Adding documents is not supported in configuration, use the API for this"
);
}
}
$this
->
add
(
$key
,
$command
);
$this
->
add
(
$key
,
$command
);
...
...
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