RE: Using SearchContext for searching JournalArtcile using elastic search ?

Vikram Singla, modified 5 Years ago. New Member Posts: 2 Join Date: 2/11/20 Recent Posts
I am using Liferay dependencies Journalarticleindexer  and elastic search features to search journalarticle and retreiving it's contents from dmmstructure. I am facing issues when DDM structure is having a nested object type fields instead of just a single text type data. in that case hits.getattribute isn't working. Anybody can help me on that?
thumbnail
Jorge Díaz, modified 5 Years ago. Liferay Master Posts: 753 Join Date: 1/9/14 Recent Posts
Can you give more detail about your problem?

For example:
  • Which Liferay version are you using?
  • What structure is the problematic one? Do you have any example?
  • How are you searching the Journal Article?
  • Where is the issue?
Vikram Singla, modified 5 Years ago. New Member Posts: 2 Join Date: 2/11/20 Recent Posts
I am using Liferay DXP 7.0 Like i have created a webcontent having a structure with fields like, Name, Roll no., Subjects(Language, Technical). In this structure, subjects is of type ,ddm-separator having the other two sub-fields. and Subjects is repeatable too.I am searching the jounral article using elastic search by extending journalarticleindexer.I am setting the fields of ddm structure and setting the same in QueryConfig. and using Booleanfilter for setting criteria of search.Then, after getting Hits. I am trying to get fileds using the Hit of type Document using, hit.get((string)queryconfig.getattribute(subjects)). this is giving me null.