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
5ec1044b
Commit
5ec1044b
authored
Sep 28, 2011
by
Bas de Nooijer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Code style fixes
parent
6542c720
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
3 deletions
+16
-3
library/Solarium/Client/ResponseParser/Analysis/Field.php
library/Solarium/Client/ResponseParser/Analysis/Field.php
+1
-1
library/Solarium/Client/ResponseParser/Select/Component/Spellcheck.php
...ium/Client/ResponseParser/Select/Component/Spellcheck.php
+13
-0
library/Solarium/Query/Select.php
library/Solarium/Query/Select.php
+2
-2
No files found.
library/Solarium/Client/ResponseParser/Analysis/Field.php
View file @
5ec1044b
...
@@ -100,7 +100,7 @@ class Solarium_Client_ResponseParser_Analysis_Field extends Solarium_Client_Resp
...
@@ -100,7 +100,7 @@ class Solarium_Client_ResponseParser_Analysis_Field extends Solarium_Client_Resp
foreach
(
$fieldData
as
$typeKey
=>
$typeData
)
{
foreach
(
$fieldData
as
$typeKey
=>
$typeData
)
{
// fix for extra level for key fields
// fix for extra level for key fields
if
(
count
(
$typeData
)
==
1
){
if
(
count
(
$typeData
)
==
1
)
{
$typeData
=
current
(
$typeData
);
$typeData
=
current
(
$typeData
);
}
}
...
...
library/Solarium/Client/ResponseParser/Select/Component/Spellcheck.php
View file @
5ec1044b
...
@@ -93,6 +93,12 @@ class Solarium_Client_ResponseParser_Select_Component_Spellcheck
...
@@ -93,6 +93,12 @@ class Solarium_Client_ResponseParser_Select_Component_Spellcheck
}
}
}
}
/**
* Parse collation data into a result object
*
* @param array $values
* @return Solarium_Result_Select_Spellcheck_Collation
*/
protected
function
_parseCollation
(
$values
)
protected
function
_parseCollation
(
$values
)
{
{
if
(
is_string
(
$values
))
{
if
(
is_string
(
$values
))
{
...
@@ -141,6 +147,13 @@ class Solarium_Client_ResponseParser_Select_Component_Spellcheck
...
@@ -141,6 +147,13 @@ class Solarium_Client_ResponseParser_Select_Component_Spellcheck
}
}
}
}
/**
* Parse suggestion data into a result object
*
* @param string $key
* @param array $value
* @return Solarium_Result_Select_Spellcheck_Suggestion
*/
protected
function
_parseSuggestion
(
$key
,
$value
)
protected
function
_parseSuggestion
(
$key
,
$value
)
{
{
$numFound
=
(
isset
(
$value
[
'numFound'
]))
?
$value
[
'numFound'
]
:
null
;
$numFound
=
(
isset
(
$value
[
'numFound'
]))
?
$value
[
'numFound'
]
:
null
;
...
...
library/Solarium/Query/Select.php
View file @
5ec1044b
...
@@ -853,7 +853,7 @@ class Solarium_Query_Select extends Solarium_Query
...
@@ -853,7 +853,7 @@ class Solarium_Query_Select extends Solarium_Query
return
$this
->
getComponent
(
Solarium_Query_Select
::
COMPONENT_GROUPING
,
true
);
return
$this
->
getComponent
(
Solarium_Query_Select
::
COMPONENT_GROUPING
,
true
);
}
}
/*
/*
*
* Get a spellcheck component instance
* Get a spellcheck component instance
*
*
* This is a convenience method that maps presets to getComponent
* This is a convenience method that maps presets to getComponent
...
@@ -865,7 +865,7 @@ class Solarium_Query_Select extends Solarium_Query
...
@@ -865,7 +865,7 @@ class Solarium_Query_Select extends Solarium_Query
return
$this
->
getComponent
(
Solarium_Query_Select
::
COMPONENT_SPELLCHECK
,
true
);
return
$this
->
getComponent
(
Solarium_Query_Select
::
COMPONENT_SPELLCHECK
,
true
);
}
}
/*
/*
*
* Get a DistributedSearch component instance
* Get a DistributedSearch component instance
*
*
* This is a convenience method that maps presets to getComponent
* This is a convenience method that maps presets to getComponent
...
...
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