Selecting Multiple Facets Issue with cross-domain
- duckParticipant2 years, 5 months ago #29520
I have the option selected: “Do not use other items selections to calculate the items count” in order to select multiple facets. With no search in the search field or with text in the search field both when selecting multiple facets return this on the search results page in duplicate:
No results found for
No results found forNothing in the console, not sure what is causing multiple facet selections not to work. In section 2.4 at the moment I only have sort alphabetically and this options selected. I have tried every other combination of options and they still produce the same issue when attempting to select multiple facets.
- This topic was modified 2 years, 5 months ago by wpsolr.
duckParticipant2 years, 5 months ago #29521To add more to this issue. I am able to select multiple facets from the same subsite, just not when I choose two facets from two different subsites in our multisite cross-domain search page. At this moment I am just using facets provided by categories for each page from each subsite. No custom taxonomies or anything else unusual, just a single main category and one sub category from the same site is what works.
wpsolrKeymaster2 years, 5 months ago #29531You can investigate the Elasticsearch query with https://www.wpsolr.com/guide/configuration-step-by-step-schematic/activate-extensions/query-monitor-add-on/
duckParticipant2 years, 5 months ago #29551When enabling the Query Monitor extension it produces this error message when attempting to select multiple facets:
Solr HTTP error: Bad Request (400) {“error”:{“metadata”:[“error-class”,”org.apache.solr.common.SolrException”,”root-error-class”,”org.apache.solr.common.SolrException”],”msg”:”Specify at least one field, function or query to group by.”,”code”:400}}
duckParticipant2 years, 5 months ago #29553The page stops at the error and does not render the rest of the page, no Query Monitor available. Even the Query Monitor drop down at the top is broken, no drop down options. I can show you the query before that, but I am guessing that won’t help? I can provide the URL query string if that helps?
?wpsolr_q=student&wpsolr_sort=sort_by_relevancy_desc&wpsolr_fq%5B0%5D=categories%3AHospitality&wpsolr_fq%5B1%5D=categories%3ARoss%20IT
duckParticipant2 years, 5 months ago #29556Not sure if this helps, but here is the query upon selecting the first facet:
{ “options”: { “handler”: “select”, “resultclass”: “Solarium\\QueryType\\Select\\Result\\Result”, “documentclass”: “Solarium\\QueryType\\Select\\Result\\Document”, “query”: “(*)”, “start”: 0, “rows”: 25, “fields”: “*,score”, “omitheader”: true, “querydefaultoperator”: “AND” }, “query”: “(*)”, “highlighting”: [], “sorts”: { “date”: “desc” }, “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”: { “categories_str”: { “type”: “field”, “excludes”: [ “fct_excl_categories_str” ] } }, “filters”: { “authorized indexed types”: { “query”: “type:(\”wptb-tables\” OR \”post\” OR \”page\”)”, “tags”: [ “fct_excl_type” ] }, “bad_statuses”: { “query”: “-post_status_s:(\”draft\” OR \”pending\” OR \”trash\” OR \”future\” OR \”private\” OR \”auto-draft\”)”, “tags”: [] }, “front-end exclusion 1”: { “query”: “(*:* -is_excluded_s:[* TO *]) OR is_excluded_s:(n)”, “tags”: [] } } }
duckParticipant2 years, 5 months ago #29559Here is the query through the debug.log file:
[15-Apr-2022 15:58:56 UTC] WPSOLR Log query =>
Url: “/search/?wpsolr_sort=sort_by_relevancy_desc&wpsolr_fq%5B0%5D=categories%3AFinancial%20Aid&wpsolr_fq%5B1%5D=categories%3AHospitality”
Index: “/opt/data/solr/rossweb”
Nb results shown: 0
Total nb results: 0
Speed: 927 ms
Query: {
“options”: {
“handler”: “select”,
“resultclass”: “Solarium\\QueryType\\Select\\Result\\Result”,
“documentclass”: “Solarium\\QueryType\\Select\\Result\\Document”,
“query”: “(*)”,
“start”: 0,
“rows”: 25,
“fields”: “*,score”,
“omitheader”: true,
“querydefaultoperator”: “AND”
},
“query”: “(*)”,
“highlighting”: [],
“sorts”: {
“date”: “desc”
},
“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”: {
“categories_str”: {
“type”: “field”,
“excludes”: [
“fct_excl_categories_str”
]
}
},
“filters”: {
“authorized indexed types”: {
“query”: “type:(\”wptb-tables\” OR \”post\” OR \”page\”)”,
“tags”: [
“fct_excl_type”
]
},
“bad_statuses”: {
“query”: “-post_status_s:(\”draft\” OR \”pending\” OR \”trash\” OR \”future\” OR \”private\” OR \”auto-draft\”)”,
“tags”: []
},
“categories_str:\”Financial Aid\””: {
“query”: “categories_str:\”Financial\\ Aid\””,
“tags”: [
“fct_excl_categories_str”
]
},
“categories_str:\”Hospitality\””: {
“query”: “categories_str:\”Hospitality\””,
“tags”: [
“fct_excl_categories_str”
]
},
“front-end exclusion 1”: {
“query”: “(*:* -is_excluded_s:[* TO *]) OR is_excluded_s:(n)”,
“tags”: []
}
}
}
Results: {
“response”: {
“numFound”: 0,
“start”: 0,
“docs”: []
},
“facet_counts”: {
“facet_queries”: [],
“facet_fields”: {
“categories_str”: [
“Department Information”,
5,
“Financial Aid”,
45,
“Hospitality”,
16,
“Ross IT”,
123
]
},
“facet_ranges”: [],
“facet_intervals”: [],
“facet_heatmaps”: []
}
}
You must be logged in to reply to this topic.