Search in title based on condition

  • 1 year, 3 months ago #31561

    Hi,
    Is there any hook to restrict search to title, when get query params contain a specific word
    eg : ?s=trial&title=true
    Currently search is happening across, title and content. Along with that, Can you provide some function or hook to query results based on title match.

    wpsolr
    Keymaster
    1 year, 3 months ago #31563

    I am able to get desired result if this function is modified : public function search_engine_client_set_query_fields(), but is there any hook to modify it, without editing plugin code.

    wpsolr
    Keymaster
    1 year, 3 months ago #31564

    There is no hook for updating the query fields.

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

You must be logged in to reply to this topic.