Skip to content

Extend default indexed file types and support extension-less files#292

Open
alfredsgenkins wants to merge 3 commits intozilliztech:masterfrom
alfredsgenkins:fix/extend-default-extensions
Open

Extend default indexed file types and support extension-less files#292
alfredsgenkins wants to merge 3 commits intozilliztech:masterfrom
alfredsgenkins:fix/extend-default-extensions

Conversation

@alfredsgenkins
Copy link
Copy Markdown

@alfredsgenkins alfredsgenkins commented Mar 27, 2026

Summary

Two related improvements to file indexing coverage:

1. Extend DEFAULT_SUPPORTED_EXTENSIONS

The existing list covered programming languages and markdown but left out common project files. Extensions like .yaml, .yml, .json, .sql, .css, .prisma, .graphql, .tf etc. were commented out in the source. This PR uncomments and expands them so K8s manifests, CI/CD workflows, database migrations, schemas, and stylesheets are indexed by default.

2. Support extension-less files (fixes #191)

Files like Dockerfile, Makefile, Jenkinsfile, and Vagrantfile have no extension, so path.extname() returns '' and they were silently skipped. This PR adds:

  • DEFAULT_EXTENSIONLESS_FILENAMES — a Set of well-known extension-less files checked during traversal
  • CUSTOM_EXTENSIONLESS_FILENAMES env var — comma-separated list so users can add their own (e.g. Dockerfile.dev,Containerfile)

🤖 Generated with Claude Code

alfredsgenkins and others added 3 commits March 27, 2026 15:01
Uncomment and extend the DEFAULT_SUPPORTED_EXTENSIONS list to include
file types commonly found in real projects: YAML, JSON, SQL, CSS, HTML,
shell scripts, Prisma schemas, GraphQL, Protobuf, Terraform, and
Dockerfiles (by extension).

Without these, Kubernetes manifests, CI/CD workflows, database
migrations, and styling are invisible to semantic search.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
The default MilvusClient gRPC timeout (15s) is too short for Zilliz
Serverless clusters, causing DEADLINE_EXCEEDED errors during indexing.

Two changes:
1. Set MilvusClient timeout to 60s (configurable via MILVUS_TIMEOUT_MS)
2. Replace expensive dummy collection create/drop in checkCollectionLimit
   with a lightweight listCollections call

Fixes zilliztech#289

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Adds a DEFAULT_EXTENSIONLESS_FILENAMES set of well-known files that
have no extension but should be indexed. When the file traversal
encounters a file with no extension, it checks this set before skipping.

Configurable via CUSTOM_EXTENSIONLESS_FILENAMES env var (comma-separated).

Fixes zilliztech#191

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
@alfredsgenkins alfredsgenkins force-pushed the fix/extend-default-extensions branch from aec92d6 to a8b3f04 Compare March 27, 2026 13:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Claude Context Indexer Cannot Process Extension-less Files

1 participant