Skip to content
This repository has been archived by the owner on Jul 11, 2023. It is now read-only.

Commit

Permalink
Merge pull request #94 from algolia/fix/92
Browse files Browse the repository at this point in the history
Fix #92 parameters that can be set in the dashboard shouldn't have defaults
  • Loading branch information
bobylito committed Jun 3, 2015
2 parents 795f9ca + dee2384 commit 171eb56
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
CHANGELOG

UNRELEASED
* FIX : #92 Parameters that can be set in the dashboard shouldn't have
defaults
* FEATURE : Ability to modify any parameter of the state easily (#76 #84)
* FEATURE : #69 Ability to know if a facet is refined, whatever the value

Expand Down
7 changes: 4 additions & 3 deletions src/SearchParameters/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ var SearchParameters = function( newParameters ) {
* @member {string}
*/
this.query = params.query || "";

//Facets
/**
* All the facets that will be requested to the server
Expand All @@ -58,16 +59,16 @@ var SearchParameters = function( newParameters ) {
* @member {Object.<string, OperatorList>}
*/
this.numericRefinements = params.numericRefinements || {};

//Misc. parameters
/** @member {number} */
this.hitsPerPage = params.hitsPerPage || 20;
this.hitsPerPage = params.hitsPerPage;
/**
* @member {number}
**/
this.maxValuesPerFacet = params.maxValuesPerFacet || 10;
this.maxValuesPerFacet = params.maxValuesPerFacet;
/** @member {number} */
this.page = params.page || 0;

/**
* Possible values : prefixAll, prefixLast, prefixNone
* @see https://www.algolia.com/doc#queryType
Expand Down

0 comments on commit 171eb56

Please sign in to comment.