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
1dd0597b
Commit
1dd0597b
authored
Sep 12, 2013
by
Dorian Villet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ci skip] tmp commit fixing part of unwanted changes to tests data.
parent
48d685c9
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
26 additions
and
26 deletions
+26
-26
tests/Solarium/Tests/QueryType/MoreLikeThis/QueryTest.php
tests/Solarium/Tests/QueryType/MoreLikeThis/QueryTest.php
+2
-2
tests/Solarium/Tests/QueryType/Ping/ResultTest.php
tests/Solarium/Tests/QueryType/Ping/ResultTest.php
+1
-1
tests/Solarium/Tests/QueryType/Select/Query/Component/DisMaxTest.php
...ium/Tests/QueryType/Select/Query/Component/DisMaxTest.php
+2
-2
tests/Solarium/Tests/QueryType/Select/Query/Component/EDisMaxTest.php
...um/Tests/QueryType/Select/Query/Component/EDisMaxTest.php
+4
-4
tests/Solarium/Tests/QueryType/Select/Query/Component/Highlighting/HighlightingTest.php
.../Select/Query/Component/Highlighting/HighlightingTest.php
+1
-1
tests/Solarium/Tests/QueryType/Select/Query/Component/MoreLikeThisTest.php
...sts/QueryType/Select/Query/Component/MoreLikeThisTest.php
+4
-4
tests/Solarium/Tests/QueryType/Select/RequestBuilder/Component/DisMaxTest.php
.../QueryType/Select/RequestBuilder/Component/DisMaxTest.php
+4
-4
tests/Solarium/Tests/QueryType/Select/RequestBuilder/Component/EDisMaxTest.php
...QueryType/Select/RequestBuilder/Component/EDisMaxTest.php
+8
-8
No files found.
tests/Solarium/Tests/QueryType/MoreLikeThis/QueryTest.php
View file @
1dd0597b
...
...
@@ -666,7 +666,7 @@ class QueryTest extends \PHPUnit_Framework_TestCase
public
function
testSetAndGetMltFields
()
{
$value
=
'name,
description'
;
$value
=
'name,description'
;
$this
->
query
->
setMltFields
(
$value
);
$this
->
assertEquals
(
...
...
@@ -787,7 +787,7 @@ class QueryTest extends \PHPUnit_Framework_TestCase
public
function
testSetAndGetQueryFields
()
{
$value
=
'content,
name'
;
$value
=
'content,name'
;
$this
->
query
->
setQueryFields
(
$value
);
$this
->
assertEquals
(
...
...
tests/Solarium/Tests/QueryType/Ping/ResultTest.php
View file @
1dd0597b
...
...
@@ -42,7 +42,7 @@ class ResultTest extends \PHPUnit_Framework_TestCase
{
$client
=
new
Client
;
$query
=
new
Query
;
$response
=
new
Response
(
'{"responseHeader":{"status":1,
"QTime":12}}'
,
array
(
'HTTP 1.1 200 OK'
));
$response
=
new
Response
(
'{"responseHeader":{"status":1,"QTime":12}}'
,
array
(
'HTTP 1.1 200 OK'
));
$ping
=
new
Result
(
$client
,
$query
,
$response
);
$this
->
assertEquals
(
...
...
tests/Solarium/Tests/QueryType/Select/Query/Component/DisMaxTest.php
View file @
1dd0597b
...
...
@@ -58,7 +58,7 @@ class DisMaxTest extends \PHPUnit_Framework_TestCase
'queryphraseslop'
=>
4
,
'tie'
=>
2.1
,
'boostquery'
=>
'cat:1^3'
,
'boostfunctions'
=>
'funcA(arg1,
arg2)^1.2 funcB(arg3,
arg4)^2.2'
,
'boostfunctions'
=>
'funcA(arg1,
arg2)^1.2 funcB(arg3,
arg4)^2.2'
,
);
$this
->
disMax
->
setOptions
(
$options
);
...
...
@@ -197,7 +197,7 @@ class DisMaxTest extends \PHPUnit_Framework_TestCase
public
function
testSetAndGetBoostFunctions
()
{
$value
=
'funcA(arg1,
arg2)^1.2 funcB(arg3,
arg4)^2.2'
;
$value
=
'funcA(arg1,
arg2)^1.2 funcB(arg3,
arg4)^2.2'
;
$this
->
disMax
->
setBoostFunctions
(
$value
);
$this
->
assertEquals
(
...
...
tests/Solarium/Tests/QueryType/Select/Query/Component/EDisMaxTest.php
View file @
1dd0597b
...
...
@@ -62,8 +62,8 @@ class EdisMaxTest extends \PHPUnit_Framework_TestCase
'queryphraseslop'
=>
4
,
'tie'
=>
2.1
,
'boostquery'
=>
'cat:1^3'
,
'boostfunctions'
=>
'funcA(arg1,
arg2)^1.2 funcB(arg3,
arg4)^2.2'
,
'boostfunctionsmult'
=>
'funcC(arg5,
arg6)^4.3 funcD(arg7,
arg8)^3.4'
,
'boostfunctions'
=>
'funcA(arg1,
arg2)^1.2 funcB(arg3,
arg4)^2.2'
,
'boostfunctionsmult'
=>
'funcC(arg5,
arg6)^4.3 funcD(arg7,
arg8)^3.4'
,
'userfields'
=>
'date *_ul'
,
);
...
...
@@ -247,7 +247,7 @@ class EdisMaxTest extends \PHPUnit_Framework_TestCase
public
function
testSetAndGetBoostFunctions
()
{
$value
=
'funcA(arg1,
arg2)^1.2 funcB(arg3,
arg4)^2.2'
;
$value
=
'funcA(arg1,
arg2)^1.2 funcB(arg3,
arg4)^2.2'
;
$this
->
eDisMax
->
setBoostFunctions
(
$value
);
$this
->
assertEquals
(
...
...
@@ -258,7 +258,7 @@ class EdisMaxTest extends \PHPUnit_Framework_TestCase
public
function
testSetAndGetBoostFunctionsMult
()
{
$value
=
'funcC(arg5,
arg6)^4.3 funcD(arg7,
arg8)^3.4'
;
$value
=
'funcC(arg5,
arg6)^4.3 funcD(arg7,
arg8)^3.4'
;
$this
->
eDisMax
->
setBoostFunctionsMult
(
$value
);
$this
->
assertEquals
(
...
...
tests/Solarium/Tests/QueryType/Select/Query/Component/Highlighting/HighlightingTest.php
View file @
1dd0597b
...
...
@@ -199,7 +199,7 @@ class HighlightingTest extends \PHPUnit_Framework_TestCase
public
function
testAddsFieldsWithString
()
{
$fields
=
'test1,
test2'
;
$fields
=
'test1,test2'
;
$this
->
hlt
->
addFields
(
$fields
);
$this
->
assertEquals
(
array
(
'test1'
,
'test2'
),
array_keys
(
$this
->
hlt
->
getFields
()));
...
...
tests/Solarium/Tests/QueryType/Select/Query/Component/MoreLikeThisTest.php
View file @
1dd0597b
...
...
@@ -49,7 +49,7 @@ class MoreLikeThisTest extends \PHPUnit_Framework_TestCase
public
function
testConfigMode
()
{
$options
=
array
(
'fields'
=>
'fieldA,
fieldB'
,
'fields'
=>
'fieldA,fieldB'
,
'minimumtermfrequency'
=>
10
,
'minimumdocumentfrequency'
=>
2
,
'minimumwordlength'
=>
3
,
...
...
@@ -57,7 +57,7 @@ class MoreLikeThisTest extends \PHPUnit_Framework_TestCase
'maximumqueryterms'
=>
4
,
'maximumnumberoftokens'
=>
20
,
'boost'
=>
1.5
,
'queryfields'
=>
'fieldC,
fieldD'
,
'queryfields'
=>
'fieldC,fieldD'
,
'count'
=>
5
,
);
...
...
@@ -97,7 +97,7 @@ class MoreLikeThisTest extends \PHPUnit_Framework_TestCase
public
function
testSetAndGetFields
()
{
$value
=
'name,
description'
;
$value
=
'name,description'
;
$this
->
mlt
->
setFields
(
$value
);
$this
->
assertEquals
(
...
...
@@ -196,7 +196,7 @@ class MoreLikeThisTest extends \PHPUnit_Framework_TestCase
public
function
testSetAndGetQueryFields
()
{
$value
=
'content,
name'
;
$value
=
'content,name'
;
$this
->
mlt
->
setQueryFields
(
$value
);
$this
->
assertEquals
(
...
...
tests/Solarium/Tests/QueryType/Select/RequestBuilder/Component/DisMaxTest.php
View file @
1dd0597b
...
...
@@ -45,9 +45,9 @@ class DisMaxTest extends \PHPUnit_Framework_TestCase
$component
=
new
Component
();
$component
->
setQueryParser
(
'dummyparser'
);
$component
->
setQueryAlternative
(
'test'
);
$component
->
setQueryFields
(
'content,
name'
);
$component
->
setQueryFields
(
'content,name'
);
$component
->
setMinimumMatch
(
'75%'
);
$component
->
setPhraseFields
(
'content,
description'
);
$component
->
setPhraseFields
(
'content,description'
);
$component
->
setPhraseSlop
(
1
);
$component
->
setQueryPhraseSlop
(
2
);
$component
->
setTie
(
0.5
);
...
...
@@ -60,9 +60,9 @@ class DisMaxTest extends \PHPUnit_Framework_TestCase
array
(
'defType'
=>
'dummyparser'
,
'q.alt'
=>
'test'
,
'qf'
=>
'content,
name'
,
'qf'
=>
'content,name'
,
'mm'
=>
'75%'
,
'pf'
=>
'content,
description'
,
'pf'
=>
'content,description'
,
'ps'
=>
1
,
'qs'
=>
2
,
'tie'
=>
0.5
,
...
...
tests/Solarium/Tests/QueryType/Select/RequestBuilder/Component/EDisMaxTest.php
View file @
1dd0597b
...
...
@@ -45,13 +45,13 @@ class EdisMaxTest extends \PHPUnit_Framework_TestCase
$component
=
new
Component
();
$component
->
setQueryParser
(
'dummyparser'
);
$component
->
setQueryAlternative
(
'test'
);
$component
->
setQueryFields
(
'content,
name'
);
$component
->
setQueryFields
(
'content,name'
);
$component
->
setMinimumMatch
(
'75%'
);
$component
->
setPhraseFields
(
'content,
description'
);
$component
->
setPhraseFields
(
'content,description'
);
$component
->
setPhraseSlop
(
1
);
$component
->
setPhraseBigramFields
(
'content,
description,
category'
);
$component
->
setPhraseBigramFields
(
'content,
description,
category'
);
$component
->
setPhraseBigramSlop
(
4
);
$component
->
setPhraseTrigramFields
(
'content2,
date,
subcategory'
);
$component
->
setPhraseTrigramFields
(
'content2,
date,
subcategory'
);
$component
->
setPhraseTrigramSlop
(
3
);
$component
->
setQueryPhraseSlop
(
2
);
$component
->
setTie
(
0.5
);
...
...
@@ -66,13 +66,13 @@ class EdisMaxTest extends \PHPUnit_Framework_TestCase
array
(
'defType'
=>
'dummyparser'
,
'q.alt'
=>
'test'
,
'qf'
=>
'content,
name'
,
'qf'
=>
'content,name'
,
'mm'
=>
'75%'
,
'pf'
=>
'content,
description'
,
'pf'
=>
'content,description'
,
'ps'
=>
1
,
'pf2'
=>
'content,
description,
category'
,
'pf2'
=>
'content,
description,
category'
,
'ps2'
=>
4
,
'pf3'
=>
'content2,
date,
subcategory'
,
'pf3'
=>
'content2,
date,
subcategory'
,
'ps3'
=>
3
,
'qs'
=>
2
,
'tie'
=>
0.5
,
...
...
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