• Resolved attila73

    (@attila73)


    I’m using your plugin, but I have a big problem.
    I would like to use it the way that it finds only the exact and only characters I am searching for. For example if I write ‘sun’ in the search form it finds ‘sunset’, ‘sunflower’, ‘sunrise’, ‘sunglasses’, ‘bosun’, ‘samsung’, etc. but I would like it to find only the word ‘sun’.

    Can you make a checkbox (either in backend or in frontend) to choose does the exact search is needed or not?

    My other question is, can you make another option to be able to search ONLY in the 1. Names or 2. Description OR 3. BOTH fields by the plugin itself (not by WordPress, I know that you made it already)?

    Thank you in advance!

Viewing 15 replies - 1 through 15 (of 16 total)
  • Plugin Author Jeroen Peters

    (@jeroenpeters1986)

    Hi @attila73 ,

    Thanks for your message. I Will investigate. I am not sure if I will implement it all because the goal of my plugin is to keep it simple.

    I think it will become an admin-only option.

    You are talking about the search in the directories, right? Just checking because the plugin also integrates with the WordPress globaal site search.

    Kind regards,

    Jeroen Peters

    Thread Starter attila73

    (@attila73)

    Hi Jeroen!

    Thanks for your fast reply!
    Yes, I am talking about search in the directories!

    The first part of my request would be more important (I think for others too) to be able to search exact strings and if it’s going to be admin only option that would be fine also!

    Thank you,
    Attila

    Thread Starter attila73

    (@attila73)

    Hi!

    Just a tip: what if the string would be put between quotation marks if someone wants to search for an exact string? This could be written on the page in one sentence above or below the search field as an explanation.

    Plugin Author Jeroen Peters

    (@jeroenpeters1986)

    Hi @attila73,

    I’m sorry for the long quiettime, but I didn’t have personal time free for the plugin. Your last suggestion is a great one! Then there is nothing to be configured ??

    Kind regards,

    Jeroen Peters

    Plugin Author Jeroen Peters

    (@jeroenpeters1986)

    Hey @attila73 ,

    version 1.14 will be having this feature; when you search with quotes around it (double quotes), it will be looking for exactly that.

    I do hope this is what you need

    Kind regards,

    Jeroen Peters

    Thread Starter attila73

    (@attila73)

    Hi Jeroen!

    Thank you, thank you, thank you!
    Dandavat!

    Yes, this is exactly what I need, I often use it in Google searches too.

    Kind regards
    Attila

    Plugin Author Jeroen Peters

    (@jeroenpeters1986)

    Hi @attila73,

    great to hear! And a very good idea also. I also use it in Google, but before you suggested it, it didn’t come to mind to build it into the plugin haha.

    Thanks again!

    Kind regards,

    Jeroen Peters

    Thread Starter attila73

    (@attila73)

    Hi Jeroen!

    I’m sorry but I have a new problem with this feature.

    If I put the exact string between “” marks to search for, it doesn’t find Names nor Descriptions when there is any other character before or after it. So if I have a Name for example ‘media creator’ and I search for “media” it will not find it. Likewise it doesn’t find ‘media’ if it has comma after it. So if I have a Description for example ‘media, mediator” and I search for “media” it will not find it.

    The initial purpose of this feature should be to be able to find the exact words without finding the words with affixes, like media vs. mediator, but I think it should find the exact word if it has a space, a comma, or anything else before or after it.

    Thank you in advance if you will find some time to fix it.

    Thread Starter attila73

    (@attila73)

    Just a little correction about this sentence of mine: “…it doesn’t find Names nor Descriptions when there is any other character before or after it.”

    So it is good if it doesn’t find Names if there is any other character (a letter!) before or after the exact name, but it should find names if there are special characters around them like: space . , ; : / * – + – — ( ) < > ‘ ! @
    so by searching “media” it should find: media_ media, media. media: media& media@ (media) /media/ <media> -media- *media* media(1) ‘media player’ ‘shop media’ itc.

    Plugin Author Jeroen Peters

    (@jeroenpeters1986)

    hi @attila73, I understand what you mean now, by this comment, but I’m not sure if that’s an easy thing to implement. That would mean I still have to do a wildcard search, but only without [a-z0-9] ranges on it. I will have to think of how to solve this..

    Plugin Author Jeroen Peters

    (@jeroenpeters1986)

    Hey @attila73,

    I might be on to something. I let it tag along with v1.15 ??
    Would you please test it and let me know? I think it’s not perfect but I hope it’ll do

    Kind regards,

    Jeroen Peters

    Thread Starter attila73

    (@attila73)

    Sure, I will test it! ??

    Thread Starter attila73

    (@attila73)

    Hi!

    I’m going to test it more because I want to understand the algorithm, just one thing that I saw. It is better than it was, but now it doesn’t find the most obvious one:
    If I search for “media” it doesn’t find the Name ‘media’ (when it’s all alone) only when there is space after it, so when it’s in form like ‘media creator’.

    • This reply was modified 5 years, 7 months ago by attila73.
    Thread Starter attila73

    (@attila73)

    Here are two printscreens of the plugins behavior on the sanskrit-hungarian dictionary I am working on.
    The first is when I searched for eva (normal search, 15 hits), and the other is when I searched for “eva” (exact search 5 hits).

    Normal search

    Exact search

    Plugin Author Jeroen Peters

    (@jeroenpeters1986)

    Thanks for testing @attila73, and also for the screenshots. It’s not as I expected, especially the screenshots with Exact search.

    I can make it search for the exact match too (from your comment in https://www.ads-software.com/support/topic/search-only-the-given-characters/#post-11835111)

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘Search only the given set of characters’ is closed to new replies.