Custom Query support for wpsolr ?

  • 1 year, 7 months ago #30891

    Hi, does this plugin support this queries ?
    $facetqry = $facetset->createFacetRange(‘pricerange’);
    $facetqry->setField(‘price’);
    $facetqry->setStart(0);
    $facetqry->setGap(2);
    $facetqry->setEnd(16);

    wpsolr
    Keymaster
    1 year, 7 months ago #30892

    This is how internally facet range queries are implemented with the Solarium PHP library

    But WPSOLR does not expose its Solarium client to actions and filters.

    1 year, 7 months ago #30894

    Can this code be added in this plugin files ?

    wpsolr
    Keymaster
    1 year, 7 months ago #30895

    Modyfying plugin files is not recommended, nor supported.

    But the code you mention is already part of the plugin, with the Numeric Range facet layout.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.