@@ -13,21 +13,26 @@ import (
1313func newSearchCmd () * cobra.Command {
1414 cmd := & cobra.Command {
1515 Use : "search" ,
16- Short : "Search for datasets across the Dune catalog" ,
16+ Short : "Search for tables and datasets across the Dune catalog" ,
17+ Long : "Natural-language table discovery across the Dune catalog. Use this command\n " +
18+ "to find concrete table names for use in SQL queries.\n \n " +
19+ "Filter by category (canonical for chain primitives, decoded for ABI-level\n " +
20+ "events/calls, spell for curated datasets, community for user-contributed),\n " +
21+ "by blockchain, schema, dataset type, or ownership scope." ,
1722 RunE : runSearch ,
1823 }
1924
20- cmd .Flags ().String ("query" , "" , "search query text " )
21- cmd .Flags ().StringArray ("categories" , nil , "filter by category ( canonical, decoded, spell, community)" )
22- cmd .Flags ().StringArray ("blockchains" , nil , "filter by blockchain " )
23- cmd .Flags ().StringArray ("dataset-types" , nil , "filter by dataset type" )
24- cmd .Flags ().StringArray ("schemas" , nil , "filter by schema " )
25- cmd .Flags ().String ("owner-scope" , "" , "ownership filter ( all, me, team) " )
26- cmd .Flags ().Bool ("include-private" , false , "include private datasets" )
27- cmd .Flags ().Bool ("include-schema" , false , "include column schema in results " )
28- cmd .Flags ().Bool ("include-metadata" , false , "include metadata in results " )
29- cmd .Flags ().Int32 ("limit" , 20 , "maximum number of results" )
30- cmd .Flags ().Int32 ("offset" , 0 , "pagination offset" )
25+ cmd .Flags ().String ("query" , "" , "natural-language search intent or entity hints (e.g. 'uniswap v3 swaps'); use '*' to browse without keyword bias " )
26+ cmd .Flags ().StringArray ("categories" , nil , "filter by table family: canonical (chain primitives) , decoded (ABI-level events/calls) , spell (curated datasets) , community (user-contributed )" )
27+ cmd .Flags ().StringArray ("blockchains" , nil , "chain scope to reduce ambiguity and improve ranking (e.g. ethereum, solana) " )
28+ cmd .Flags ().StringArray ("dataset-types" , nil , "fine-grained dataset type filter: dune_table, decoded_table, spell, uploaded_table, transformation_table, transformation_view " )
29+ cmd .Flags ().StringArray ("schemas" , nil , "schema/namespace constraint for high precision (e.g. dex, uniswap_v3_ethereum) " )
30+ cmd .Flags ().String ("owner-scope" , "" , "ownership filter: all, me, or team; does NOT automatically include private datasets " )
31+ cmd .Flags ().Bool ("include-private" , false , "widen results to include private datasets visible to the authenticated user/team alongside public ones " )
32+ cmd .Flags ().Bool ("include-schema" , false , "include column-level schema (name, type, nullable) for every result; useful when preparing SQL " )
33+ cmd .Flags ().Bool ("include-metadata" , false , "include category-specific metadata (page_rank_score, description, abi_type, contract_name, project_name, etc.) " )
34+ cmd .Flags ().Int32 ("limit" , 20 , "number of results per page; use 5-15 for quick checks, 20-50 for deeper exploration " )
35+ cmd .Flags ().Int32 ("offset" , 0 , "pagination offset; use previous response pagination info for next page " )
3136 output .AddFormatFlag (cmd , "text" )
3237
3338 return cmd
0 commit comments