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
bd44a93a
Commit
bd44a93a
authored
Nov 21, 2011
by
Gasol Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avoid notice: undefined index
Conflicts: library/Solarium/Client/ResponseParser/MoreLikeThis.php
parent
5c2adfa1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
library/Solarium/Client/ResponseParser/MoreLikeThis.php
library/Solarium/Client/ResponseParser/MoreLikeThis.php
+2
-2
No files found.
library/Solarium/Client/ResponseParser/MoreLikeThis.php
View file @
bd44a93a
...
...
@@ -58,7 +58,7 @@ class Solarium_Client_ResponseParser_MoreLikeThis extends Solarium_Client_Respon
$query
=
$result
->
getQuery
();
$parseResult
=
parent
::
parse
(
$result
);
if
(
isset
(
$data
[
'interestingTerms'
])
&&
'none'
!=
$query
->
getInterestingTerms
())
{
if
(
isset
(
$data
[
'interestingTerms'
])
and
'none'
!=
$query
->
getInterestingTerms
())
{
$terms
=
$data
[
'interestingTerms'
];
if
(
'details'
==
$query
->
getInterestingTerms
())
{
$tempTerms
=
array
();
...
...
@@ -72,7 +72,7 @@ class Solarium_Client_ResponseParser_MoreLikeThis extends Solarium_Client_Respon
if
(
isset
(
$data
[
'match'
][
'docs'
][
0
])
&&
true
==
$query
->
getMatchInclude
())
{
$matchData
=
$data
[
'match'
][
'docs'
][
0
];
$documentClass
=
$query
->
getOption
(
'documentclass'
);
$fields
=
(
array
)
$matchData
;
$parseResult
[
'match'
]
=
new
$documentClass
(
$fields
);
...
...
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