WPSOLR_Query did you mean and filter by date

  • matteo.cattelan
    Participant
    12 months ago #36948

    Hi,
    i use WPSOLR_Query inside my functions.php for direct query on open search index.
    I would like to know if there is a way to receive suggestions for the searched string and filter the results by date.

    Thanks a lot

    wpsolr
    Keymaster
    12 months ago #36950

    I don’t think so. You could use the OpenSearch php library to build your custom query.

    matteo.cattelan
    Participant
    12 months ago #36953

    For suggestions i solved.
    For the date filter however I cannot use the normal WordPress query_date functions. Is there a way to pass a query to Open search?

    Thanks again…
    Bye

    wpsolr
    Keymaster
    12 months ago #36954

    You cannot pass a query to Opensearch, you have to use the Opensearch library directly.

    matteo.cattelan
    Participant
    12 months ago #36955

    But in wpsolr_query i have a “q” parameter, i thought that was the parameter to use.
    Change the question. How pass to wpsolr_query a facet of date filter? In other words:
    Is it possible to create a personal filter that has a date?

    Many thanks

    wpsolr
    Keymaster
    12 months ago #36956

    WPSOLR provides a date slider facet and filter:

    Range Slider Layout

    matteo.cattelan
    Participant
    12 months ago #36974

    I’m only interested in the name of the parameters to pass to the wpsolr query

    wpsolr
    Keymaster
    12 months ago #36975

    This part is not supported in this forum, being an internal piece of code of the plugin.

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

You must be logged in to reply to this topic.