Cris
08/07/2024, 2:24 AMuser_id
and user_id_b
are integer fields and from my understanding, they should return same results? that is excluding documents if at least one of them is equal to 1
1. user_id:!=1 && user_id_b:!=1
2. user_id:!=[1] && user_id_b:!=[1]
Harpreet Sangar
08/07/2024, 6:23 AMuser_id
and user_id_b
are not 1.Cris
08/07/2024, 6:27 AMuser_id
and user_id_b
are not 1, right?
e.g
Document A: {user_id: 1, user_id_b: 2}
Document B: {user_id: 1, user_id_b: 1}
Document C: {user_id: 3, user_id_b: 2}
Using those filters, it will return C only, right?Harpreet Sangar
08/07/2024, 6:28 AM1
in the document, it won't be returned.Cris
08/07/2024, 6:30 AMHarpreet Sangar
08/07/2024, 6:31 AMCris
08/07/2024, 6:32 AMHarpreet Sangar
08/07/2024, 6:33 AMuser_id:!=1
and user_id:!=[1]
too?Cris
08/07/2024, 6:35 AMCris
08/07/2024, 6:37 AMuser_id:!=1
does not return any hitsHarpreet Sangar
08/07/2024, 6:38 AMuser_id:!=[1]
return?Cris
08/07/2024, 6:38 AM..., {'document': {'id': '34568'}, 'highlight': {}, 'highlights': []}, {'document': {'id': '34466'}, 'highlight': {}, 'highlights': []}], 'out_of': 3692, 'page': 1, 'request_params': {'collection_name': 'forsale_development', 'first_q': '*', 'per_page': 15, 'q': '*'}, 'search_cutoff': False, 'search_time_ms': 13}
Cris
08/07/2024, 6:39 AM'found': 591,
Harpreet Sangar
08/07/2024, 6:40 AMuser_id:!=1
found is 0?Cris
08/07/2024, 6:40 AMCris
08/07/2024, 6:40 AMfilter_by
"(uploader_is_active: true || contact_is_active: true) && status_id:1 && (shared_future_updated_at:<=1477756652.0 && shared_future_organizations:=['ALL', 'C1', 'T1', 'C1T1', 'CL7', 'CL7C1'] || shared_organization_ids:=[68]) && (uploader_organization_id:!=[1])"
Cris
08/07/2024, 6:41 AMuploader_organization_id:!=[1]
to uploader_organization_id:!=1
, it wont return anythingHarpreet Sangar
08/07/2024, 6:44 AMuploader_organization_id:!=1
filter, right?Harpreet Sangar
08/07/2024, 6:44 AMCris
08/07/2024, 6:45 AMCris
08/07/2024, 6:46 AM'filter_by': 'uploader_organization_id:!=1'
, still the sameHarpreet Sangar
08/07/2024, 6:46 AMCris
08/07/2024, 6:46 AMCris
08/07/2024, 6:47 AMCris
08/07/2024, 6:47 AM{
"facet": false,
"index": true,
"infix": false,
"locale": "",
"name": "uploader_organization_id",
"optional": true,
"sort": false,
"stem": false,
"store": true,
"type": "int32"
},
Harpreet Sangar
08/07/2024, 6:48 AMCris
08/07/2024, 6:48 AMCris
08/07/2024, 6:58 AM[{'collection': 'forsale_development', 'q': '*', 'filter_by': 'uploader_organization_id:!=1', 'include_fields': 'id', 'per_page': 15, 'page': 1, 'prefix': False, 'max_facet_values': 500, 'facet_strategy': 'top_values', 'sort_by': 'validated_at:desc', 'facet_by': 'country_ids, sector_ids, customer_type_ids, equity_stake_ids, selling_reason_ids, contact_cluster_ids'}]
Harpreet Sangar
08/07/2024, 9:29 AMuploader_organization_id: [!=1]
also produces 0 resultsCris
08/07/2024, 9:40 AM:!=1
and :!=[1]
Harpreet Sangar
08/07/2024, 9:40 AM:!=[1]
works fine. [!=1]
and :!=1
do not.Cris
08/07/2024, 9:41 AM[!=1]
what does this filter do?Cris
08/07/2024, 9:41 AMCris
08/07/2024, 9:42 AMHarpreet Sangar
08/07/2024, 9:42 AM[>=50, !=30, <50]
Cris
08/07/2024, 9:42 AMHarpreet Sangar
08/07/2024, 9:43 AM