Reputation: 11
[i'm a apache solr 4.3 newbie] Hey, I want to show possibly related results rather than writing "no results found". Let say the user searches for "xxxxx", then solr return no results, I want to have a default search for "software engineer" or something like that. TIA.
Upvotes: 0
Views: 546
Reputation: 52799
You have to handle it on the Client side to fire a Second Query in case of No results found in Solr.
You can use the Spell Check components/Did You mean based on the Index dictionary to provide suitable suggestions to the User instead of firing a default search.
Upvotes: 1