Followup on Partial Word Search

This topic contains 12 replies, has 3 voices, and was last updated by  Alex Rollin 4 years, 3 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #528744

    Jonathan
    Lifetime Member
    Post count: 79

    Hello:

    I requested in early September 2019 for WpGeoDirectory to consider some Partial Word Search Changes. The ticket is https://wpgeodirectory.com/support/topic/partial-word-search/

    Is this in the roadmap yet? I am trying to decide if WPGeoDirectory will be good for the use case I have. I need to be able to search Listing Titles by Partial Words (i.e. BlueberryMuffin (no space for this example) Recipe should showup for Recipe, Muffin, Blue, or even Berry.

    Please advise. Thank you.

    #528798

    Alex Rollin
    Moderator
    Post count: 27815

    Hello,

    the developers will take a look at your topic as soon as possible.

    #528845

    Kiran
    Moderator
    Post count: 7069

    Hi Jonathan,

    We implement things based on higher priority.

    Current searching shows best match results at top of the results. With use wild card search that you mentioned will loose this best match things.

    To show results for the logic you asked, try PHP snippet provided at here https://wpgeodirectory.com/support/topic/link-posts-search-left-to-right-only/#post-516591

    Regards,
    Kiran

    #528864

    Jonathan
    Lifetime Member
    Post count: 79

    Hello Alex & Kiran:

    Thank you BOTH for your help. You guys really saved the day. Thank you to Alex for getting me in touch with the dev staff. Thank you Kiran for providing the link to the PHP snippet.

    Will this snipper look intrastring or just interstring for matches? Meaning if the string “ChocolateBlueBerryScone .Recipe” was the title of the post, would this post be included in the search results if I searched Blue or Blueberry or Scone or even .Recipe?

    I agree with the other member who posted that said this would be awesome if it could be a check box in the core code in the setting that says “Allow Wild Card Matching for Post Titles” (compatible with custom post types if purchased of course)

    If I may provide my opinion I would disagree with you Kiran. The truly best match is giving directory owner with the other for left to right search and wildcard match. Therefore websites that do better with left to right and sites that do better with wild card search could select which provides a better option for their specific user base. Not having this option in WPGeoDirectory therefore provides a non optimal search result for sites that would provide better results using wild card matching. Better results on average for all of the installations of WPGeoDirectory. Could we please add this to the Feature Road Map?

    Thank you all for your help and I look forward to your reply regarding the inter-string matching and the addition to the road map for WPGeoDirectory.

    #528866

    Kiran
    Moderator
    Post count: 7069

    Meaning if the string “ChocolateBlueBerryScone .Recipe” was the title of the post, would this post be included in the search results if I searched Blue or Blueberry or Scone or even .Recipe?

    “ChocolateBlueBerryScone .Recipe” will be included in results if searched Blue or Blueberry or Scone or even .Recipe.

    I agree with the other member who posted that said this would be awesome if it could be a check box in the core code in the setting that says “Allow Wild Card Matching for Post Titles”

    Not all customers want this feature, so we provided snippet. So those who wants search keyword within word can use this snippet.

    Better results on average for all of the installations of WPGeoDirectory. Could we please add this to the Feature Road Map?

    This type of search also affect query run time. Searching matched results with keyword of both side may show unexpected results. Ex: searching “eat” will return “Feature” and possible that it is not related to what user is searching for.

    We implement feature on priority base. So if more customers requests then we will provide option to enable/disable this searching.

    Thanks,
    Kiran

    #528958

    Jonathan
    Lifetime Member
    Post count: 79

    I implemented your snippet into a working installation. It only shows me search suggestion and NOT search results. I can search ne and see search result but if I try cone it does not work, if I search Berry it does not show result. It does not seem to be searching within the text string, only at the end for 2 characters (right to left) and I believe as many as I want for (left to right).

    Suggested list does not work for my case as I need dozens of search results or more to be displayed so I need the search results to show not just suggested lists in search box.

    I need to be able to search string as complicated as ascd.efgh.ijkl for scd, or gh.i , or cd.e and they all show in search results not just kl or ascd. I am sorry if my original inquiry or subsequest messages were not clear enough. When reading the referred post you sent me, it seemed not exactly the same question as mine. Is this only affecting the search suggestions in the box and not the search results?

    I understand not everyone wants it, which is why I requested a toggle/check box.

    I understand it would require more resources and may lead to undesired results.

    I hope more customers request this feature.

    #528983

    Kiran
    Moderator
    Post count: 7069
    This reply has been marked as private.
    #528995

    Jonathan
    Lifetime Member
    Post count: 79
    This reply has been marked as private.
    #529010

    Kiran
    Moderator
    Post count: 7069

    Hi Jonathan,

    To show searched results try PHP snippet provided at here: https://wpgeodirectory.com/support/topic/mixed-japanese-language-search-working-in-content-but-not-in-title-tags/#post-515977

    In this snippet there are two functions one searching in title & another is searching description. If you want to use for title only then don’t add second part with function gd_snippet_191105_search_content_where().

    Kiran

    #529015

    Jonathan
    Lifetime Member
    Post count: 79

    Hello Kiran:

    It works like a charm. I really appreciate your time and your timely reply.

    I finally have the search working to search keywords in the listings.

    What about the plural versus singular in the URL? If looking at a detail page, I would presume the URL should be singular as it focuses on that one listing.

    Is this a bug?

    Thanks

    Jonathan

    #529020

    Kiran
    Moderator
    Post count: 7069

    What about the plural versus singular in the URL? If looking at a detail page, I would presume the URL should be singular as it focuses on that one listing.

    Is this a bug?

    If you talking about slug “/domains/” then it is a post type base & can’t be different for plural listings & singular listing page. For post type base you can only use one slug.

    Kiran

    #529035

    Jonathan
    Lifetime Member
    Post count: 79

    Hello Kiran:

    Thank you for clarifying this is a WordPress Bug. Listings of multiple should have a plural but then when I go to one detail page then it should be singular. I was wondering why GD even asks for a singular if it wasnt used but apparently you use it for the add listing page or other places when referring to a single listing, am I correct?

    also any thoughts and help on another concern I have would be greatly appreciated (opened a different thread to track the solution) : https://wpgeodirectory.com/support/topic/payments-for-mass-imported-listings/#post-529033

    Warmest regards,

    Jonathan

    #529170

    Alex Rollin
    Moderator
    Post count: 27815

    They are used in text replacements like the prefix to the title field, autopopulated when a new CPT is used. There is only the single slug option.

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

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket