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

Commit

Permalink
Fix #92 parameters that can be set in the dashboard shouldn't have de…
Browse files Browse the repository at this point in the history
…faults
  • Loading branch information
Alexandre Stanislawski committed Jun 3, 2015
1 parent 795f9ca commit 7e46daf
Showing 1 changed file with 4 additions and 3 deletions.
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 7e46daf

Please sign in to comment.