Selecting Multiple Facets Issue with cross-domain

  • duck
    Participant
    2 years 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 for

    Nothing 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 ago by wpsolr.
    duck
    Participant
    2 years ago #29521

    To 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.

    wpsolr
    Keymaster
    2 years ago #29527

    Did you select a ‘OR’ between items on the facet settings?

    duck
    Participant
    2 years ago #29530

    I tried both, still produced same result.

    wpsolr
    Keymaster
    duck
    Participant
    2 years ago #29551

    When 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}}

    wpsolr
    Keymaster
    2 years ago #29552

    And the query?

    duck
    Participant
    2 years ago #29553

    The 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

    wpsolr
    Keymaster
    2 years ago #29554

    Try to catch the query on Solr’s admin error log.

    duck
    Participant
    duck
    Participant
    2 years ago #29556

    Not 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”: [] } } }

    wpsolr
    Keymaster
    2 years ago #29557

    is “wptb-tables” a post type, or a custom table? And is it defined on each site?

    wpsolr
    Keymaster
    2 years ago #29558

    What Solr version is it?

    duck
    Participant
    2 years ago #29559

    Here 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”: []
    }
    }

    duck
    Participant
    2 years ago #29560

    wptb-tables is a tables plugin, should be a post type and on each subsite, I could remove it from indexing if that is the issue.

    Solr version is 7

Viewing 15 posts - 1 through 15 (of 43 total)

You must be logged in to reply to this topic.