Skip to content

search_indexed inconsistency? #11

Description

@pietro-lopes

I was just testing the CLI and came with this issue:

minecraft-dev-cli search_indexed --query "spiralAround" --types='[\"method\"]' --version 26.1.2 --mapping mojmap --limit 1
{
  "success": true,
  "tool": "search_indexed",
  "result": {
    "query": "spiralAround",
    "version": "26.1.2",
    "mapping": "mojmap",
    "count": 0,
    "results": []
  }
}

and tested with search_minecraft_code

minecraft-dev-cli search_minecraft_code --query "spiralAround" --searchType method --version 26.1.2 --mapping mojmap --limit 1
{
  "success": true,
  "tool": "search_minecraft_code",
  "result": {
    "query": "spiralAround",
    "searchType": "method",
    "version": "26.1.2",
    "mapping": "mojmap",
    "count": 1,
    "results": [
      {
        "type": "method",
        "name": "net\\minecraft\\core\\BlockPos",
        "file": "net\\minecraft\\core\\BlockPos.java",
        "line": 425,
        "context": "public static Iterable<BlockPos.MutableBlockPos> spiralAround(BlockPos center, int radius, Direction firstDirection, Direction secondDirection) {"
      }
    ]
  }
}

So I opened search_index.db to check, and the method was really not there, and also noticed more also missing, like some fields etc.
And noticed that it was indexing methods from anonymous classes like decode and encode from the field STREAM_CODEC at BlockPos class

Since i'm new to this type of indexing, are those intended?

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions