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
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
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.
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
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
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
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
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.
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.
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..
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
Sure, I will test it! π
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 6 years, 9 months ago by
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
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://ww.wp.xz.cn/support/topic/search-only-the-given-characters/#post-11835111)