Skip to content

Fails to create Indexed subfields when indexing reference fields #677

@raphaeldelio

Description

@raphaeldelio

Reported originally by Stanislav on Stackoverflow

Reproduced locally by me using version 1.0.4

Description of the problem:
When a document references another document object and also expects this document to be indexed, the annotation processor fails to index the subfields of the referenced class.

The example above should create the metafield: Vehicle$.OWNER_NAME which it fails to do.

    @Document
    class Vehicle {
        @Id
        private String id;

        @Searchable
        private String model;

        @Reference
        @Indexed
        private Owner owner;

        // Constructors, getters, and setters...
    }
    
    @Document
    class Owner{
        @Id
        private String id;

        @Searchable
        private String name;

        // Constructors, getters, and setters...
    }

Expected behavior:
Vehicle$.OWNER_NAME metafield should be generated.

As documented in link

Metadata

Metadata

Assignees

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