Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MappingBuilderImpl.getInnerFields() doesn't work with inner classes #3

Open
fprochazka opened this issue Nov 12, 2017 · 1 comment
Open

Comments

@fprochazka
Copy link
Contributor

Executing

mappingBuilder.build(ProductDocument.class)

Over similar document definition

@ElasticDocument(value = "product")
public class ProductDocument
{
    @ElasticTextField
    private String name;

    @ElasticNestedField
    private List<ProductPriceDocument> prices;

    public static class ProductPriceDocument
    {
        private String type;
        private NumberValue value;
        private CurrencyUnit currency;
    }
}

produces

org.frekele.elasticsearch.mapping.exceptions.InvalidDocumentClassException
	at org.frekele.elasticsearch.mapping.MappingBuilderImpl.getInnerFields(MappingBuilderImpl.java:766)
	at org.frekele.elasticsearch.mapping.MappingBuilderImpl.recursiveFields(MappingBuilderImpl.java:801)
	at org.frekele.elasticsearch.mapping.MappingBuilderImpl.innerBuild(MappingBuilderImpl.java:877)
	at org.frekele.elasticsearch.mapping.MappingBuilderImpl.build(MappingBuilderImpl.java:90)
	at org.frekele.elasticsearch.mapping.MappingBuilderImpl.build(MappingBuilderImpl.java:78)

image

@frekele
Copy link
Owner

frekele commented Jan 17, 2018

I will implement this feature.
Thank you for your feedback.

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

No branches or pull requests

2 participants