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

Support multiple types of documents in one collection [DATASOLR-350] #474

Open
spring-projects-issues opened this issue Dec 30, 2016 · 0 comments
Assignees
Labels
in: core type: enhancement

Comments

@spring-projects-issues
Copy link

@spring-projects-issues spring-projects-issues commented Dec 30, 2016

jefferyyuan opened DATASOLR-350 and commented

It's very common that we store multiple related types of documents in one collections. It would be great if spring-solr-data support this natively.

One approach is to add an annotation @DocumentType, then change SolrTemplate's methods such as save,findXXX to check whether @DocumentType exists and handle it accordingly.

class Type1 {
@DocumentType(fieldName="type", fieldValue="type2")
private String type;
}

class Type2 {
@DocumentType(fieldName="type", fieldValue="type2")
private String type;
}


No further details from DATASOLR-350

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: core type: enhancement
Projects
None yet
Development

No branches or pull requests

2 participants