console.log(`Found ${count} lawyers aged 9-11 whose first name begins with B`)
})
.catch(err=>console.log(err))
```
### Renaming query parameters
The main `search`, `find`, and `count` functions accept additional string parameters for `i` and `n`, which reflect respectively the current document and, as applicable, the number of matches.
By default these are simply `'i'` and `'n'` but if for whatever reason you want to change these, you can:
In case you need it, the `search` function actually returns three values; the third is the AQL query that is executed. If something seems wrong with your query, this may help explain why.
Tests are [work in progress](./tests). Run `npm test` to give them a whirl.
Please feel welcome to report any issues you encounter in [GitHub issues](https://github.com/annybs/arangosearch/issues).
> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
>
> The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
>
> THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.