kaykay-dv / pocketsearch

A simple full-text search library for Python using SQLite and its FTS5 extension
https://pocketsearch.readthedocs.io/en/latest/
MIT License
1 stars 0 forks source link

add top_n parameter to .tokens method #62

Closed kaykay-dv closed 4 months ago

kaykay-dv commented 4 months ago

The .tokens method provides statistics on ALL tokens in the index. This can get considerably slow when the index is large. A top_n parameter should be introduced defaulting to 25 allowing developers to set the number of tokens they want to retrieve.

kaykay-dv commented 4 months ago

Added in 0.30.0