alfiebesin
alfiebesin

Reputation: 11

apache solr - show possibly related search results if no results found

[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

Answers (1)

Jayendra
Jayendra

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

Related Questions