on ‎2018 Mar 28 3:39 PM
Lets say i have 4 products two products with same name "test" and another two products with name "test1". I want a flexible query which will return two records i.e if duplicate records found then only one of them should be returned.
Request clarification before answering.
Hi, You can use DISTINCT keyword in the flexible query for getting unique results. Example : "SELECT DISTINCT {p.name} from {Product as p}
Thanks, Ram
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
As per my understanding what you can do is, you can get all the products using flexible search and then can filter out the results by taking into account java.util.Set for your requirement.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.