how to allow apostrophes in virtuemart2 product search? - joomla

I have used virtuemart 2.6.6 in joomla 2.5.22
virtuemart product search works good except the search keyword having single quotes.
When i search for a keyword with single quotes it displays no results.
eg. Daniel's product
i have tried using
return mb_ereg_replace('-/[^\w'.preg_quote($custom).']/-', $replace, $source);
in config.php of virtuemart.
but still the problem occurs.
how to overcome this issue?
Thanks in advance

Try debugging the search by printing the sql-code generated in the virtuemart search plugin, located in plugins/search/virtuemart/virtuemart.php. This should provide you with clues as to why the search is not working when there is an apostrophe in the search query.

Related

sphinx search without space not working in magento

sphinx search not working without space between product name. for example if my product name is "LINEN BLAZER" and i am trying to search like
"LINENBLAZER" result is not showing. can anybody resolve my issue or give me any suggesion to resolve this.
There is no reall mangic solution to this. Sphinx can't know how to split words.
But there is
http://sphinxsearch.com/blog/2013/01/29/a-new-tool-in-the-trunk-wordbreaker/
which potentially can be used to build a system that can 'autosplit' works for searching. Don't know anyone used it with the magento plugin

MediaWiki search in <syntaxhighlight> tag (SyntaxHighlight GeSHi extension)

How to enable searching in <syntaxhighlight> tag (SyntaxHighlight GeSHi extension)? I'm trying to search for com.android.chrome in it, but no result found :-(. String is IMHO long enough to be found.
<syntaxhighlight lang="java">
supproclist.add("com.whatsapp");
supproclist.add("com.android.chrome");
</syntaxhighlight>
You don't need to do anything special; everything within <syntaxhighlight> tags is already included in the normal site-wide search system (based on MySQL search).
Edit: You definitely should be getting a match on com.android.chrome. Is this on a public wiki? Can you provide a link?
You won't get a result when searching for com.android however, because the search system only finds whole words, and the dot is considered part of the word. This is quite separate from, and not changed by, the SyntaxHightlight extension.

magento top searches - trailing slashes

“5 Most Recent Searches” and popular searches page is full of search terms that have “slashes” appended to them:
’{search_term}’, ’{search_term}/’, \’{search_term}//’ ... ’{search_term}///////////////////////’
does anyone know if its a Magento bug?
any idea what may cause this problem?
I'm using Magento 1.7
We are running a number of shops on v 1.7 and never encounter such issue. My guess is that some crawler attacks your search form with a list of poorly generated searches.
I don't really know why my previous post with solution was deleted, but anyway... This is problem with web crawler. Try to find which one is messing your search function in your store and try to block it.

Multiple synonym(s) for search terms

I'm in need to have more than 1 synonym for a search term in magento (version 1.4.2.0 - can't upgrade it for now), but all my attempts to add multiple synonyms have failed.
I've been looking around without any solution, any of you had a similar need and managed to find a solution?
Thanks for any help,
Mat.
So you have people look for 'doodad' or 'dodad' and you want to show people the 'macguffin' instead.
So far you have tried to add these search terms in on the back-end but it has not worked.
The fix-workaround is surprisingly simple.
Type in 'dodad' in the frontend - no result given.
Now type 'doodad' in the frontend - again no results.
Now go into the backend and go to the last page of the search terms.
The entries for 'dodad' and 'doodad' will be in there. You can now put 'macguffin' in the synonym box.
Now go to the front and type in 'dodad' or 'doodad' into the search box and it will take you straight to the 'macguffin' item.

How to search usenet for programming questions?

I've been using usenet searches since about 1995 to get programming information, mostly for microsoft APIs. First searching via dejanews, and now google "groups" which bought out dejanews. Over the last few years I've noticed a steady decline in the quantity of search results for usenet from google, and today I find I'm completely unable to get a working usenet search on their advanced group search page. I'm used to searching on "microsoft.*" sometimes suplemented with "microsoft" or "microsoft*". Just try to find a post from 1996-1998 time period on "database" in either the comp.* or microsoft.* hierarchies, and if you can do it, please show your search expression. There should be thousands of results.
http://groups.google.com/groups/search?safe=off&q=database+group%3Amicrosoft*&btnG=Rechercher&as_mind=1&as_minm=1&as_miny=1996&as_maxd=1&as_maxm=1&as_maxy=1999&as_drrb=b&sitesearch=
seems to work nicely... 994 results (no thousands but still...)
It appears to be problem with the advanced search form. I can't get the one at
http://groups.google.fr/advanced_search?hl=fr&q=&hl=fr&
to work either. But I can use the basic form with "database group:microsoft*" and I get many results as expected.
http://www.google.ca/groups/search?safe=off&q=database+group%3Acomp.*&btnG=Search&sitesearch=
returns 3,000 results
The advanced search isn't working for me either:
Broken advanced search results URL
However, removing lr=selected from the query string in that URL makes it work, for some reason:
Working advanced search results URL
In fact, hitting the search button again on the broken advanced search results page will return those results as well for me.
Or actually, it's only partly working, since entering multiple comma-separated groups in the advanced search form (or using the group: search operator) doesn't quite work as expected and ends up adding all the words in the additional group names as search keywords too.
You could try learning Julian dates and use the daterange search operator:
Search results using daterange:

Resources