diff --git a/README.md b/README.md index 1ad5d7c..c7384cc 100644 --- a/README.md +++ b/README.md @@ -261,7 +261,8 @@ $df = new DoofinderApi('6a9abc4dc17351123b1e0198af92e6e9', //hashid 'eu1-384fd8a73c7ff0859a5891f9f4083b1b9727f9c3', // api_key true, // get params from request array( - 'prefix' => 'sp_df_df_', // prefix to use with toQuerystring. CAN'T USE EMPTY STRINGS + 'prefix' => 'sp_df_df_', // prefix to use with toQuerystring. + 'queryParameter' => 'q', // parameter name to use for the query parameter (default: 'query') 'apiVersion' => '3.0', // api version of the search server 'restrictedRequest' => 'post' // use only params from 'post' or 'get' methods. )); @@ -344,14 +345,15 @@ One quick example ````html query(); // if no dfParam_query, +$df = new DoofinderApi('6azzz04dc173514cab1e0xxxxf92e6e9', 'eu1-384fd8a73c7ff0859a5891f9f4083b1b9727f9c3', true); +$dfResults = $df->query(null, null, array('transformer'=>'dflayer')); // if no dfParam_query, // fetch all the results, to fetch all possible facets ?>