Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
Using SearchContext for searching JournalArtcile using elastic search ?
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?
Can you give more detail about your problem?
For example:
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?
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.