Custom Query support for wpsolr ?

  • prakashreddy.imduri
    Participant
    4 months, 3 weeks 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
    4 months, 3 weeks 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.

    prakashreddy.imduri
    Participant
    4 months, 3 weeks ago #30894

    Can this code be added in this plugin files ?

    wpsolr
    Keymaster
    4 months, 3 weeks 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.