Discussions
Categories
Choose a Product
THRUST SERVICES
CORE APPS
CE PRODUCTS
...
Quick Links
POPULAR
HELPFUL TIPS
Groups
My Links
FOR SIGNED IN MEMBERS:
Back to website
Home
TeamSite
TeamSite, LiveSite and OpenDeploy
LSCS query partial metadata match
Migrateduser
Hi Techies,
my env:
Linux 5.5. Teamsite 7.3, Livesite: 3.0
I would like to retrieve the lscs results by using lscs api.
my requirement something like if I send the "Page Mill Rd" from the input query and some content dcr is tagged with "Page Mill Rd California", then this should return. That is , if the input word from metadata matches with any one word in the tagged metadata that item should return.
I have used following query to retrieve the lscs results.
Constraint isConstraint = new FieldConstraint(TeamSite/Metadata/Postal_address, Operator.EQUALS,"Page Mill Rd");
postalAddORList.add(isConstraint);
queryConstraintList.add(new OrConstraint((Constraint[]) postalAddORList.toArray(new Constraint[0])));
AndConstraint andConstraint=new AndConstraint((Constraint[]) queryConstraintList.toArray(new Constraint[0]));
query =new Query(andConstraint, sortFieldArray );
LSCSIterator iter = client.getDocuments(query.toString(), 0, Integer.parseInt(maxContentCount));
Please let us know there is any other operators can we b use for comparing partial metadata other than Operator.EQUALS.
Regards,
Nageswar
Find more posts tagged with
Comments
There are no comments yet