Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
How to specify fields to retrieve from database in LSCS query.
kaleemS
How to fetch only one metadata field from database instead of entire nodes under from LSCS data base through java component.
my JavaCode is:
list.add(new FieldConstraint("TeamSite/Metadata/ProductID", Operator.EQUALS, Id));
Query query = new Query(new AndConstraint(list.toArray(new Constraint[0])),
new SortField[]{new SortField("path", true),});
and which is returning set of documents and all its fields
Like
<metadata>
val1
val2
:
valn
:
Is it possible to fetch only one field by specifying in javacode?
I want result only for field "field1".
Like
<metadata>
val1
:
Thank you in advance
Find more posts tagged with
Comments
There are no comments yet