You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Varun Thacker <va...@gmail.com> on 2013/01/04 13:50:14 UTC

Removing terms from a search query with no results

I'm using edismax and the default operator is AND.

Now suppose i search for "foo bar" and there are 0 results for it but there
a results for "foo" then show results for "foo".

This is same as the feature on search engines where it says No results
found for "foo bar" and Showing results for "foo".


Is there a component which has this functionality?

-- 


Regards,
Varun Thacker
http://www.vthacker.in/

Re: Removing terms from a search query with no results

Posted by Jack Krupansky <ja...@basetechnology.com>.
Not at this time. That is something you would do at your app level - 
re-query with a looser query if zero results for the original query.

-- Jack Krupansky

-----Original Message----- 
From: Varun Thacker
Sent: Friday, January 04, 2013 7:50 AM
To: solr-user@lucene.apache.org
Subject: Removing terms from a search query with no results

I'm using edismax and the default operator is AND.

Now suppose i search for "foo bar" and there are 0 results for it but there
a results for "foo" then show results for "foo".

This is same as the feature on search engines where it says No results
found for "foo bar" and Showing results for "foo".


Is there a component which has this functionality?

-- 


Regards,
Varun Thacker
http://www.vthacker.in/ 


Re: Removing terms from a search query with no results

Posted by dede341123 <de...@gmail.com>.
Yes



--
View this message in context: http://lucene.472066.n3.nabble.com/Removing-terms-from-a-search-query-with-no-results-tp4030539p4042442.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: Removing terms from a search query with no results

Posted by Otis Gospodnetic <ot...@gmail.com>.
Hi Varun,

I don't think this exists in Solr...

But have a look at http://sematext.com/products/dym-researcher/index.html .
 Look at the screenshot and you will spot something labeled as "Relaxer" in
the blue area.  This (Query) Relaxer is DYM ReSearcher's cousin and can be
seen in action on http://search-lucene.com/ .

Let's try with a typo in your name:
http://search-lucene.com/?q=varun+thicker

Here's another interesting variant with a phrase:
http://search-lucene.com/?q=%22hi+varun+thacker%22

Or:
http://search-lucene.com/?q=thisisbogus+solr+cloud

Is this the behaviour you are looking for?

Otis
--
Solr & ElasticSearch Support
http://sematext.com/





On Fri, Jan 4, 2013 at 7:50 AM, Varun Thacker <va...@gmail.com>wrote:

> I'm using edismax and the default operator is AND.
>
> Now suppose i search for "foo bar" and there are 0 results for it but there
> a results for "foo" then show results for "foo".
>
> This is same as the feature on search engines where it says No results
> found for "foo bar" and Showing results for "foo".
>
>
> Is there a component which has this functionality?
>
> --
>
>
> Regards,
> Varun Thacker
> http://www.vthacker.in/
>