Skip to content

Pleas add -n arg to search subcommand, equivalent to nhits query param #115

Description

@Boscop
$ tantivy search -i wikipedia-index -q "barack obama" -n 20
error: unexpected argument '-n' found

$ tantivy search --help                                                                                     
Search an index.

Usage: tantivy search [OPTIONS] --index <directory> --query <query>

Options:
  -i, --index <directory>  Tantivy index directory filepath
  -q, --query <query>      Query
  -a, --agg <agg>          Aggregation request as JSON
  -h, --help               Print help

Pleas add -n arg to search subcommand, equivalent to nhits query param 🙏 (http://localhost:3000/api/?q=barack+obama&nhits=20)

(Because by default, the search subcommand seems to return all matching docs which are way too many.)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions