Răsfoiți Sursa

HUE-6007 [metadata] Parent filtering can conflict with facet type as they are ORed together

Seems the correct way to go, if not:
type:field default.sample_07.salary are ORed together

Does not affect other logic
Romain Rigaux 8 ani în urmă
părinte
comite
90ddba739c
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      desktop/libs/metadata/src/metadata/navigator_client.py

+ 1 - 1
desktop/libs/metadata/src/metadata/navigator_client.py

@@ -164,7 +164,7 @@ class NavigatorApi(object):
       if query_clauses:
         filter_query = 'OR'.join(['(%s)' % clause for clause in query_clauses])
 
-      user_filter_clause = 'OR '.join(['(%s)' % f for f in user_filters]) or '*'
+      user_filter_clause = 'AND '.join(['(%s)' % f for f in user_filters]) or '*'
       source_filter_clause = 'OR'.join(['(%s:%s)' % ('type', entity_type) for entity_type in default_entity_types])
       if 's3' in sources:
         source_type_filter.append('sourceType:s3')