Details
-
Bug
-
Resolution: Invalid
-
Medium
-
5.4.1
-
None
-
eZ Publish 5.4.1, eZ Find 5.4.1, Solr admin interface
Description
Steps to reproduce:
1. Create new content class:
Name: Profile
Identifier: profile
Add one attribute:
Attribute Type: Text line
- Name: Title
- Identifier: title
- Is required: checked
- Searchable: checked
2. Create a new content in content tree for the new class. Called it "Jeune Journaliste":
Home Tests Jeune Journaliste
3. Duplicate "Article" class, and add a new attribute of type "Object relations" to the new class. The new class is called "Article 2", and the new attribute is called "Profiles":
Name: Article 2
Identifier: article_2
Attribute Type: Object relations
- Name: Profiles
- Identifier: profiles
- Selection method: List with checkboxes
- Allowed classes: profile
- Is required: not checked
- Searchable: checked
- Default location: Tests
4. Create a content for the new "article_2" class. Called it "13140 Test 1", and associated "Jeune Journaliste" content defined in step 2 to the "profile" object relations attribute:
Home Tests 13140 Test 1
5. On Solr admin interface, execute this query:
/select?q=*:*&fq=meta_class_identifier_ms:article_2&wt=json&indent=true&facet=true&facet.field=attr_profiles_t
Result:
{ "responseHeader": { "status": 0, "QTime": 8, "params": { "q": "*:*", "facet.field": "attr_profiles_t", "indent": "true", "fq": "meta_class_identifier_ms:article_2", "wt": "json", "facet": "true", "_": "1423594692695" } }, "response": { "numFound": 1, "start": 0, "docs": [ {} ] }, "facet_counts": { "facet_queries": {}, "facet_fields": { "attr_profiles_t": [ "jeun", 1, "journalist", 1 ] }, "facet_dates": {}, "facet_ranges": {}, "facet_intervals": {} } }
This is not correct, since the values of "attr_profiles_t" are truncated - "jeun" should be "jeune", and "journalist" should be "journaliste".