Foren

Proposal: Flexible Operators Support in Asset Publisher

thumbnail
Jonas Yuan, geändert vor 14 Jahren.

Proposal: Flexible Operators Support in Asset Publisher

Liferay Master Beiträge: 993 Beitrittsdatum: 27.04.07 Neueste Beiträge
As you have been noticed, Asset Publisher supports assets advanced search based on multiple operators and tags (using tags to represent both tags and categories). This is cool feature!

For search criterion, it would be like “contain / does not contain” “any / all” tags. This is powerful for most use cases. Supposed that there are four tags: T1, T2, T3 and T4, we use three operators: and, or and not. By default Asset Publisher support four use cases in general.

Contain any tags: T1 or T2 or T3 or T4
Contain all tags: T1 and T2 and T3 and T4
Does not Contain any tags: not (T1 or T2 or T3 or T4)
Does not Contain all tags: not (T1 and T2 and T3 and T4)

Let’s go ahead and consider one more use case: uild search a criterion - find assets which contain any tags of T1 and T2, contain the tag T3, and doesn’t contain the tag T4. We could express this condition as follows.

(T1 or T2) and T3 and (not T4)

The above use case is just one example. You may have many use cases which need flexible operators support. Thus it would be nice that Asset Publisher could support flexible operators.

Refer to http://issues.liferay.com/browse/LPS-837

Any comments or suggestions?

Thanks

Jonas Yuan

-----------------
Liferay Books

Liferay Portal 5.2 Systems Development
Liferay Portal Enterprise Intranets
thumbnail
Jorge Ferrer, geändert vor 14 Jahren.

RE: Proposal: Flexible Operators Support in Asset Publisher

Liferay Legend Beiträge: 2871 Beitrittsdatum: 31.08.06 Neueste Beiträge
Hi Jonas,

Have you seen trunk lately? Asset Publisher's configuration is very much improved on its way to 5.3 and already allows what you're suggesting.
thumbnail
Jonas Yuan, geändert vor 14 Jahren.

RE: Proposal: Flexible Operators Support in Asset Publisher

Liferay Master Beiträge: 993 Beitrittsdatum: 27.04.07 Neueste Beiträge
Hi Jorge,

Thank you. I realized that Asset Publisher's configuration allows basic expression appearing as many times as possible in 5.3. That's cool!

For use case: build search a criterion - find assets which contain any tags of T1 and T2, contain the tag T3, and doesn’t contain the tag T4. We could express this condition as follows.

(T1 or T2) and T3 and (not T4)


It could be represented through three basic expressions via current UI.

Exp_1:  (T1 or T2)
Exp_2:  T3
Exp_1:  (not T4)

Final expression:
Exp_1 and Exp_2 and Exp_3

Considering current UI (a little bit complicated), I am curious: how to verify each basic expression (especially using categories with hierarchy structure)? how to verify all basic expressions together?

Thanks

Jonas Yuan

-----------------
Liferay Books

Liferay Portal 5.2 Systems Development
Liferay Portal Enterprise Intranets