- pridigitalParticipant11 months ago #36951
Hi there,
I’ve encountered a problem while attempting to utilize facets, specifically when the term name includes the word “or.” For example, consider “Influenza (Inactivated or Recombinant).” I’ve included the WPSolr query output below. Could you kindly assist me in resolving this issue? Thanks!{ "options": { "handler": "select", "resultclass": "Solarium\\QueryType\\Select\\Result\\Result", "documentclass": "Solarium\\QueryType\\Select\\Result\\Document", "query": "text:(*)", "start": 0, "rows": 20, "fields": "*,score", "omitheader": true, "querydefaultoperator": "AND" }, "query": "text:(*)", "highlighting": [], "sorts": { "the_title_s": "asc" }, "grouping": { "fields": [], "options": { "resultquerygroupclass": "Solarium\\Component\\Result\\Grouping\\QueryGroup", "resultvaluegroupclass": "Solarium\\Component\\Result\\Grouping\\ValueGroup" } }, "fields": [ "id", "PID", "type", "meta_type_s", "title", "numcomments", "comments", "displaydate", "displaymodified", "*categories_str", "author", "*post_thumbnail_href_str", "*post_href_str", "snippet_s" ], "facets": { "flat_hierarchy_imm_adverse_event_str": { "type": "field", "excludes": [] }, "flat_hierarchy_imm_contraindication_precaution_str": { "type": "field", "excludes": [] }, "flat_hierarchy_imm_disease_str": { "type": "field", "excludes": [] }, "flat_hierarchy_imm_document_format_str": { "type": "field", "excludes": [] }, "flat_hierarchy_imm_document_type_str": { "type": "field", "excludes": [] }, "flat_hierarchy_imm_im_admin_site_str": { "type": "field", "excludes": [] }, "flat_hierarchy_imm_language_str": { "type": "field", "excludes": [] }, "flat_hierarchy_imm_occupational_educational_or_str": { "type": "field", "excludes": [] }, "flat_hierarchy_imm_other_str": { "type": "field", "excludes": [] }, "flat_hierarchy_imm_patient_age_str": { "type": "field", "excludes": [] }, "flat_hierarchy_imm_patient_health_condition_str": { "type": "field", "excludes": [] }, "flat_hierarchy_imm_patient_population_str": { "type": "field", "excludes": [] }, "flat_hierarchy_imm_patient_sex_str": { "type": "field", "excludes": [] }, "flat_hierarchy_imm_reason_for_vaccination_str": { "type": "field", "excludes": [] }, "flat_hierarchy_imm_schedule_str": { "type": "field", "excludes": [] }, "flat_hierarchy_imm_vacccine_platform_immunoglob_str": { "type": "field", "excludes": [] }, "flat_hierarchy_imm_vaccine_administration_str": { "type": "field", "excludes": [] }, "flat_hierarchy_imm_vaccine_or_disease_str": { "type": "field", "excludes": [] }, "flat_hierarchy_imm_vaccine_storage_and_handling_str": { "type": "field", "excludes": [] }, "audiences_str": { "type": "field", "excludes": [] }, "or_year_str": { "type": "field", "excludes": [] }, "acip_rec_status_str": { "type": "field", "excludes": [] }, "flat_hierarchy_honor_roll_name_str": { "type": "field", "excludes": [] }, "badge_str": { "type": "field", "excludes": [] }, "month_s": { "type": "field", "excludes": [] }, "year_i": { "type": "field", "excludes": [] }, "us_state_s": { "type": "field", "excludes": [] }, "facility_type_s": { "type": "field", "excludes": [] } }, "filters": { "authorized indexed types": { "query": "type:(\"imm_fdapi\")", "tags": [ "" ] }, "bad_statuses": { "query": "-post_status_s:(\"draft\" OR \"pending\" OR \"trash\" OR \"future\" OR \"private\" OR \"auto-draft\")", "tags": [] }, "flat_hierarchy_imm_vaccine_or_disease_str:Influenza (Inactivated or Recombinant)flat_hierarchy_imm_vaccine_or_disease_str": { "query": "flat_hierarchy_imm_vaccine_or_disease_str:(\"\"Influenza (Inactivated or Recombinant)\"\")", "tags": [ "" ] }, "type:imm_fdapitype": { "query": "type:(\"imm_fdapi\")", "tags": [ "" ] }, "front-end exclusion 1": { "query": "(*:* -is_excluded_s:[* TO *]) OR is_excluded_s:(n)", "tags": [] } }, "edismax": [] }
pridigitalParticipant11 months ago #36952PS: The same issue occurs if the word “and” is used.
wpsolrKeymaster11 months ago #36957A fix will be included in WPSOLR 23.5
pridigitalParticipant11 months ago #36986Thanks! That solved the issue.
You must be logged in to reply to this topic.