Skip to content
Snippets Groups Projects
Commit 3cc656eb authored by Gaëlle FOURNIER's avatar Gaëlle FOURNIER
Browse files

TULEAP 24209 : Fix search rules with adapted query

parent ff65fa2c
No related branches found
No related tags found
1 merge request!51Merge mis a jour vitam-ui
......@@ -119,14 +119,28 @@ public class VitamQueryHelper {
case IDENTIFIER:
case ID:
case PUID:
case RULE_ID:
case RULE_VALUE:
case RULE_TYPE:
// string equals operation
final String stringValue = (String) entry.getValue();
queryOr.add(eq(searchKey, stringValue));
haveOrParameters = true;
break;
case RULE_TYPE:
// string equals operation filter as a and
final String ruleType = (String) entry.getValue();
query.add(eq(searchKey, ruleType));
break;
case RULE_ID:
// string wildward operation
final String ruleId = (String) entry.getValue();
queryOr.add(wildcard(searchKey, "*"+ruleId+"*"));
haveOrParameters = true;
break;
case RULE_VALUE:
// string match phrase prefix operation
final String ruleValue = (String) entry.getValue();
queryOr.add(matchPhrasePrefix(searchKey, ruleValue));
haveOrParameters = true;
break;
case EV_TYPE_PROC:
// string equals operation
final String evTypeProc = (String) entry.getValue();
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment