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
d18fc115
Commit
d18fc115
authored
Dec 19, 2012
by
Bas de Nooijer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Small fixes in unittest and edismax example
parent
b0d1c3b7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
5 deletions
+2
-5
examples/2.1.5.5-edismax.php
examples/2.1.5.5-edismax.php
+1
-4
tests/Solarium/Tests/QueryType/Update/RequestBuilderTest.php
tests/Solarium/Tests/QueryType/Update/RequestBuilderTest.php
+1
-1
No files found.
examples/2.1.5.5-edismax.php
View file @
d18fc115
...
...
@@ -10,10 +10,7 @@ $client = new Solarium\Client($config);
$query
=
$client
->
createSelect
();
// get the dismax component and set a boost query
$dismax
=
$query
->
getDisMax
();
// override the default setting of 'dismax' to enable 'edismax'
$dismax
->
setQueryParser
(
'edismax'
);
$edismax
=
$query
->
getEDisMax
();
// this query is now a dismax query
$query
->
setQuery
(
'memory -printer'
);
...
...
tests/Solarium/Tests/QueryType/Update/RequestBuilderTest.php
View file @
d18fc115
...
...
@@ -72,7 +72,7 @@ class RequestBuilderTest extends \PHPUnit_Framework_TestCase
{
$request
=
$this
->
builder
->
build
(
$this
->
query
);
$this
->
assertEquals
(
'update?omitHeader=
tru
e&wt=json'
,
'update?omitHeader=
fals
e&wt=json'
,
$request
->
getUri
()
);
}
...
...
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