Search in title based on condition

  • 1 year, 4 months ago #31561

    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.

    1 year, 4 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.

    1 year, 4 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.