all category search ecommerce suggest popular search - elasticsearch

I made a ecommerce app for learning purpose.
I have implement search box using elasticsearch, it can search and give suggestion item's name.
example :
input -> macbo
suggestion :
laptop macbook 14
laptop mackbok xxxxxx
now I want implement search box for "general" means nothing category selected so when we type a something it's not give us spesific item's name but something like most popular search query/terms.
I cannot figured out how the basic ideas behind this, can someone give me some advise.
Thanks

I guess you are looking for suggestions, not the actual search results and If I understand this correctly then you could use the term suggestor available in Elastisearch.

Related

Relevancy searching in elastic search,

Currently i am implementing product search in my application using elastic-search,i was able to implement basic search by applying steamers(to get root terms) and analyzers(remove 's' and stuff like that), but when searching for products like "Red Shrimp" i am getting "red shrimps" , "shrimps" and also some unrelated products which contain "Red"(Red gram,Red onion,Red battey) which shouldn't happen.
Can any one suggest me how to eliminate this irrelevant section of results,I am grateful to any valid suggestion.
Thanks,
I
you can use elastic "Common Terms Query" with minimum_should_match option
Reference Link : https://www.elastic.co/guide/en/elasticsearch/reference/6.1/query-dsl-common-terms-query.html

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

How to implement related searches with elasticsearch?

Is it possible to implement "people who searched for this, also searched for" feature with elasticsearch? Just like what we often see in the search result at the bottom of Google search. If possible, how can we achieve it?
There is this elasticsearch+Mahout based plugin available for implementing your solution. It may help you
https://github.com/codelibs/elasticsearch-taste.

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